So I've put together a whole bunch of functions from my framework and am essentially opening them up to the public. There's a little over 75 functions in this library and you can use them in commercial or non-commercial projects of yours. This library will continue to grow as time goes by. The library is quite broad and contains all kinds of stuff from 2D to data manipulation to the bizarre.
Anyway, I really hope some of you benefit from this. I put quite a bit of time into it. Any comments/feedback is greatly appreciated.
Download RPLib (Version 1.0 - 168kb)
Download Counter:
41 As of 2012-10-17 (yyyymmdd)
Changelog:
Questions and Answers:
This is going to act as a quick reference for
anyone looking for help so they don't have to
search through a ton of posts to see if their
question got asked and answered already.
Known Bugs:
This is the closet where RPLib's skeletons go.
--------------------- v1.0 ------------------------
o Help Bug: Wrong description of rpdCharAt() in "Functions By Category.htm"
Should be "Returns the a char's byte value".
Reported by: Me
o Help Bug: Wrong parameter type for rpHighestDivisor() in "Index.htm".
Should be "num1, num2", not "num1#, num2#".
Reported by: Me
Functions list:
+-----------------------------+
| Index: RPData Functions A-Z |
+-----------------------------+
C
rpdChar() - Create a C-aliike char-array
rpdCharAt$() - Return a single char from a char-array
rpdCharAt() - Return the byte value of a single char
rpdCharGet$() - Return a string of multiple chars from a char-array
rpdCharGet() - Return a string of chars cast as a value
rpdCharGetAll$() - Return all characters in a char-array (RPLib chars only)
rpdCharGetAll() - Return rpdCharGetAll$() cast as a value (RPLib chars only)
K
rpdKill() - Delete a basic RPLib data structure (rpd namespace only)
S
rpdSizeOf() - Return the vissible size of an RPLib basic data structure (rpd namespace only)
T
rpdTypeOf$() - Return the friendly-name of an RPLib basic data structure.
rpdTypeOf() - Return the numeric identifier of an RPLib basic data structure.
+----------------------------+
| Index: RPLib Functions A-Z |
+----------------------------+
0
rp() - A macro function. Use abbriviations to call commands and routines.
A
rpAppFile() - Perform a quick append to a file.
rpAvailableDrives$() - Return a list of mounted drives.
rpAverageEx() - Return the average of a list of numbers.
B
rpBetween() - Query if a number is within a range
rpBMid$() - MID$() backwards.
C
rpControlObjectUsingArrowkeys() - Object testing and ploacement.
rpCurrentDir$() - Return the name-only of the current folder.
D
rpDate$() - Return the date in any format with any delimiter.
rpDecFromBin() - Pointlessly return a value of an 8bit binary number.
rpDecFromBin$() - Pointlessly return a string containing rpDecFromBin().
rpDirFromPath$() - Return the folder path from a file path.
F
rpFileFromPath$() - Return the filename from a path.
rpFlo() - Casts an integer as a float. Redundant but still looks neater.
rpFolderAt$() - Return the folder name at a specific branch.
rpFrame() - Draw a frame with optional fill.
G
rpGetAngle() - Return the angle between two points.
rpGetInstances$() - Returns all instances of a string within another.
H
rpHighest() - Return the highest of three values passed.
rpHighestDivisor() - Return the highest divisor between two integers.
rpHighestEx() - Returns the highest value from a near infinite list of values.
I
rpItemCount() - Return the number of items in a delimited string.
K
rpKill2d() - Delete the sprite and image number for a range of graphics.
L
rpLowest() - Return the lowest of three values.
rpLowestEx() - Return the lowest value from a near-infinite list.
M
rpMouseBox() - Queries if the mouse cursor is within a specific boundary.
rpMouseOnSprite() - Queries if the mouse is on a sprite.
rpMoveSprites() - Moves an entire range of sprites in their facing direction.
N
rpNMid$() - Returns a range of characters from a string.
R
rpReadyDisplay() - Sets up screen for basic 3D-drawing basic on popular prefs.
rpRNDf() - Return a random float within any range.
rpRNDi() - Return a random int within any range.
rpRNDPick() - Returns a randomly chosen value from a list.
rpRNDPick$() - Returns a randomly chosen string from a list.
S
rpScrollSprites() - Scrolls a range of sprites in a specific direction and speed.
rpScrollSpritesX() - Scroll a range of sprites horizontally at a specific speed.
rpScrollSpritesY() - Scroll a range of sprites vertically at a specific speed.
rpSign() - Returns a 1 or -1 representing whether a value is positive or negative.
rpSlopeX() - Returns the number of x-increments per y-increment on a slope.
rpSlopeY() - Returns the number of y-increments per x-increment on a slope.
rpSpriteX() - Return the on-screen sprite's x-coordinate.
rpSpriteY() - Return the on-screen sprite's y-coordinate.
rpStringDataDelete$() - Remove a stringdata element.
rpStringDataInsert$() - Insert a stringdata element.
rpStringDataInsertRAW$() - Rawly insert a stringdata element (no checking).
rpStringDataItems() - Return number of items in a stringdata variable.
rpStringDataRead$() - Return a stringdata element at a specified index.
rpStringDataRead() - Return the value of a stringdata element at a specified index.
rpStringDataValid$()- Validate stringdata for format errors.
rpStringFind() - Find a string within another.
rpStringFromMemblock$() - Convert a memblock to a string.
rpStringReplace$() - Perform a Find & Replace on a string.
T
rpTileNumberX() - Return the horizontal tile number a coordinate falls on.
rpTileNumberY() - Return the vertical tile number a coordinate falls on.
rpTime$() - Return the current time in any format with any delimiter.
rpTrunc$() - Truncates a string.
rpTruncPath$() - Truncates paths.
V
rpVfileClose() - Close an opened virtual file and write it to disk.
rpVfileDelete() - Delete a virtual file or range of virtual files.
rpVfileDeleteTmp() - Delete a temp file created by rpVfileOpen().
rpVfileOpen() - Create a virtual file from one on disk to enable random-access.
rpVfileReadString$() - Grab a string from a virtual file.
rpVfileRestoreOriginal() - Revert a virtual file to its original state before opening.
rpVfileWriteString() - Write a string to an open virtual file.
W
rpWaitText() - Display text while waiting for the specified devices input.
rpWrap() - Wrap any real number to any real range.
