Compare commits
109 Commits
RCBasic4-A
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af7ac75384 | ||
|
|
3a03aaa148 | ||
|
|
7181b6924a | ||
|
|
98e8257e4a | ||
|
|
d4aa4198af | ||
|
|
e05f4ff024 | ||
|
|
b01f3cfc01 | ||
|
|
119e6f5bfe | ||
|
|
39c5e4a9f2 | ||
|
|
0e2253ad02 | ||
|
|
6b8f078291 | ||
|
|
f392bdebfc | ||
|
|
447bc241d7 | ||
|
|
d0dc046c6b | ||
|
|
59e93b66d1 | ||
|
|
a4fca34d19 | ||
|
|
a07c6e8d15 | ||
|
|
588e866bad | ||
|
|
f827706734 | ||
|
|
1a574146af | ||
|
|
7c3d44b0ff | ||
|
|
82cbb6c73a | ||
|
|
d7b1440917 | ||
|
|
0c3cfde381 | ||
|
|
38021bf1fa | ||
|
|
d1d291d823 | ||
|
|
c354825638 | ||
|
|
072024fa41 | ||
|
|
bb03c0f9a3 | ||
|
|
10f225d14b | ||
|
|
b3667a70df | ||
|
|
4cdcf7aa24 | ||
|
|
31872c955c | ||
|
|
80c97f0a93 | ||
|
|
09ab7d76cd | ||
|
|
9fba7a380c | ||
|
|
a85bb304ea | ||
|
|
005d324a81 | ||
|
|
953b7b562d | ||
|
|
bea293d13c | ||
|
|
da3e4fbe36 | ||
|
|
3753e1a0d3 | ||
|
|
8e1686978c | ||
|
|
3cd9dde20d | ||
|
|
c4e2dc9d8e | ||
|
|
5a24dc445b | ||
|
|
32e1e0a00f | ||
|
|
fef3d682e6 | ||
|
|
4876640bf4 | ||
|
|
b7e4281352 | ||
|
|
0b66a9294f | ||
|
|
cfad58b99c | ||
|
|
f008cf839b | ||
|
|
2a78f8cf81 | ||
|
|
36cee820d3 | ||
|
|
adec3d0039 | ||
|
|
917a2a10eb | ||
|
|
26f89808ba | ||
|
|
a2363aa63a | ||
|
|
d79a8f9602 | ||
|
|
b56f0185cf | ||
|
|
f3c49b8a8b | ||
|
|
33ece2b755 | ||
|
|
5048597745 | ||
|
|
b9275b7d80 | ||
|
|
f35b940637 | ||
|
|
cf47eb2039 | ||
|
|
c085150def | ||
|
|
378c25ffde | ||
|
|
40ca65cb3f | ||
|
|
3f4a1ce1cc | ||
|
|
ac30b0f7bb | ||
|
|
370c2bed33 | ||
|
|
73fb1bded8 | ||
|
|
fc082973d2 | ||
|
|
a8c3f059cc | ||
|
|
89258b691d | ||
|
|
3972f8b927 | ||
|
|
5719ad1dbd | ||
|
|
a08ab8760c | ||
|
|
0b132399fc | ||
|
|
79ec4b5ae0 | ||
|
|
c506ea110c | ||
|
|
bac4a2734f | ||
|
|
5ff184aff6 | ||
|
|
ca2c818b25 | ||
|
|
229aebfec3 | ||
|
|
9e61ea1c5e | ||
|
|
78e3281bf3 | ||
|
|
cf6feab5c1 | ||
|
|
5221ac5e8f | ||
|
|
3e2b01d794 | ||
|
|
b4b18b4860 | ||
|
|
8fd6acbde3 | ||
|
|
a0b3025848 | ||
|
|
fe5b5bc389 | ||
|
|
ceee3fc5d0 | ||
|
|
34c023a976 | ||
|
|
74f9fc8969 | ||
|
|
a13d3de54f | ||
|
|
b66e458590 | ||
|
|
19f67fa883 | ||
|
|
f8296f44cf | ||
|
|
f30aaffc4c | ||
|
|
1e47d69e23 | ||
|
|
5c53e7067b | ||
|
|
de0101253d | ||
|
|
cbb578981a | ||
|
|
bffa478064 |
48
build_vm_scripts/build_rcbasic_all.sh
Normal file
@@ -0,0 +1,48 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
BASEDIR=$(dirname 0)
|
||||
cd $BASEDIR
|
||||
|
||||
RCBASIC_BUILD_ERROR=2
|
||||
RCBASIC_RUNTIME_ERROR=2
|
||||
|
||||
export RCBASIC_BUILD_MAIN_DIR=/home/n00bc0de/Projects
|
||||
|
||||
export RCBASIC_BUILD_JOURNAL=build_journal.sh
|
||||
|
||||
#RCBASIC_BUILD
|
||||
if [ -e $RCBASIC_BUILD_JOURNAL ]
|
||||
then
|
||||
rm $RCBASIC_BUILD_JOURNAL
|
||||
fi
|
||||
|
||||
touch build_journal.sh
|
||||
chmod +x build_journal.sh
|
||||
|
||||
pushd $BASEDIR/RCBASIC4/rcbasic_build
|
||||
./build.sh
|
||||
popd
|
||||
|
||||
source $RCBASIC_BUILD_JOURNAL
|
||||
|
||||
echo "RCBASIC_BUILD STATUS = $RCBASIC_BUILD_ERROR"
|
||||
|
||||
|
||||
#RCBASIC_RUNTIME
|
||||
if [ $RCBASIC_BUILD_ERROR == 0 ]
|
||||
then
|
||||
|
||||
pushd $BASEDIR/RCBASIC4/rcbasic_runtime
|
||||
./build.sh
|
||||
popd
|
||||
|
||||
source $RCBASIC_BUILD_JOURNAL
|
||||
|
||||
echo "RCBASIC_RUNTIME STATUS = $RCBASIC_RUNTIME_ERROR"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
echo "rcbasic_build status=$RCBASIC_BUILD_ERROR"
|
||||
echo "rcbasic_RUNTIME status=$RCBASIC_RUNTIME_ERROR"
|
||||
25
build_vm_scripts/rcbasic_build_auto.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
BASEDIR=$(dirname 0)
|
||||
|
||||
echo "build journal path: $RCBASIC_BUILD_JOURNAL"
|
||||
|
||||
codeblocks --clean rcbasic_build.cbp
|
||||
codeblocks --target=Release --build rcbasic_build.cbp
|
||||
|
||||
|
||||
if [ ! -e $BASEDIR/bin/Release/rcbasic_build ]
|
||||
then
|
||||
|
||||
pushd $RCBASIC_BUILD_MAIN_DIR
|
||||
echo "export RCBASIC_BUILD_ERROR=1" >> $RCBASIC_BUILD_JOURNAL
|
||||
popd
|
||||
|
||||
else
|
||||
|
||||
pushd $RCBASIC_BUILD_MAIN_DIR
|
||||
echo "export RCBASIC_BUILD_ERROR=0" >> $RCBASIC_BUILD_JOURNAL
|
||||
popd
|
||||
|
||||
fi
|
||||
|
||||
25
build_vm_scripts/rcbasic_runtime_auto.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
BASEDIR=$(dirname 0)
|
||||
|
||||
|
||||
echo "build journal path: $RCBASIC_BUILD_JOURNAL"
|
||||
|
||||
codeblocks --clean rcbasic_runtime.cbp
|
||||
codeblocks --target=Release --build rcbasic_runtime.cbp
|
||||
|
||||
if [ ! -e $BASEDIR/bin/Release/rcbasic_runtime ]
|
||||
then
|
||||
|
||||
pushd $RCBASIC_BUILD_MAIN_DIR
|
||||
echo "export RCBASIC_RUNTIME_ERROR=1" >> "$RCBASIC_BUILD_JOURNAL"
|
||||
popd
|
||||
|
||||
else
|
||||
|
||||
pushd $RCBASIC_BUILD_MAIN_DIR
|
||||
echo "export RCBASIC_RUNTIME_ERROR=0" >> "$RCBASIC_BUILD_JOURNAL"
|
||||
popd
|
||||
|
||||
fi
|
||||
|
||||
@@ -9,7 +9,42 @@
|
||||
<body>
|
||||
<p><h2>function CreateSprite( img ) </h2></p>
|
||||
<p>
|
||||
Returns new sprite
|
||||
This function returns a new sprite which you can place in a variable for use in your program.
|
||||
</p>
|
||||
<p>
|
||||
Here is an example of opening a sprite canvas layer, creating a sprite, setting it's position and finally displaying it.
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
isFullScreen = <span class="rc_keyword">false</span> <br>
|
||||
vSync = <span class="rc_keyword">true</span> <br>
|
||||
winWidth = <span class="rc_number">640</span> <br>
|
||||
winHeight = <span class="rc_number">480</span> <br>
|
||||
canViewPortX = <span class="rc_number">0</span> <br>
|
||||
canViewPortY = <span class="rc_number">0</span> <br>
|
||||
<br>
|
||||
OpenWindow<b>(</b><span class="rc_string">"CreateSprite"</span>, winWidth, winHeight, isFullScreen, vSync<b>)</b> <br>
|
||||
sCanvas = OpenCanvasSpriteLayer<b>(</b>canViewPortX, canViewPortY, winWidth, winHeight<b>)</b> <br>
|
||||
Canvas<b>(</b>sCanvas<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">DIM</span> eye <br>
|
||||
<span class="rc_keyword">DIM</span> eyeW <br>
|
||||
<span class="rc_keyword">DIM</span> eyeH <br>
|
||||
<br>
|
||||
eye = LoadImage<b>(</b><span class="rc_string">"theEye.png"</span><b>)</b> <br>
|
||||
GetImageSize<b>(</b>eye, eyeW, eyeH<b>)</b> <br>
|
||||
<br>
|
||||
eyeSprite = CreateSprite<b>(</b>eye, eyeW, eyeH<b>)</b> <br>
|
||||
SetSpritePosition<b>(</b>eyeSprite, <span class="rc_number">100</span>, <span class="rc_number">100</span><b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">While</span> <span class="rc_keyword">Not</span> Key<b>(</b>K_ESCAPE<b>)</b> <br>
|
||||
<span class="rc_comment">'ClearCanvas() For a sprite layer canvas, you don't need to call ClearCanvas. It's automatically called. </span><br>
|
||||
Update<b>(</b><b>)</b> <span class="rc_comment">'Update automatically deals with drawing the sprites on the sprite canvas. </span><br>
|
||||
<span class="rc_keyword">Wend</span> <br>
|
||||
</code></p>
|
||||
<p><img src="images/theEye.png" ></p>
|
||||
<br><p>Related:
|
||||
<a href="opencanvasspritelayer.html">OpenCanvasSpriteLayer</a>
|
||||
<a href="setspriteposition.html">SetSpritePosition</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
@@ -25,8 +25,67 @@
|
||||
tile_h - The height of each tile
|
||||
</li>
|
||||
</ul>
|
||||
<p id="rc_code"><code>
|
||||
isFullScreen = <span class="rc_keyword">false</span> <br>
|
||||
vSync = <span class="rc_keyword">true</span> <br>
|
||||
winWidth = <span class="rc_number">640</span> <br>
|
||||
winHeight = <span class="rc_number">480</span> <br>
|
||||
canViewPortX = <span class="rc_number">0</span> <br>
|
||||
canViewPortY = <span class="rc_number">0</span> <br>
|
||||
<br>
|
||||
OpenWindow<b>(</b><span class="rc_string">"TestTileset"</span>, winWidth, winHeight, isFullScreen, vSync<b>)</b> <br>
|
||||
mCanvas = OpenCanvas<b>(</b>winWidth, winHeight, canViewPortX, canViewPortY, winWidth, winHeight, <span class="rc_number">1</span><b>)</b> <br>
|
||||
Canvas<b>(</b>mCanvas<b>)</b> <br>
|
||||
<br>
|
||||
mAtlas = LoadImage<b>(</b><span class="rc_string">"testTileSet.png"</span><b>)</b> <span class="rc_comment">'Load in our atlas or tile set image </span><br>
|
||||
<br>
|
||||
mTileSet = CreateTileSet<b>(</b>mAtlas, <span class="rc_number">24</span>, <span class="rc_number">24</span><b>)</b> <span class="rc_comment">'Create a tile set and assign it a holder to access </span><br>
|
||||
<br>
|
||||
mTileMap = CreateTileMap<b>(</b>mTileSet, <span class="rc_number">20</span>, <span class="rc_number">20</span><b>)</b> <span class="rc_comment">'Create a tile map with our tile set holder "mTileSet" </span><br>
|
||||
<br>
|
||||
<span class="rc_comment">'Now we have a blacnk tilemap to fill with tiles, we now use the mAtlas image to fill in the map </span><br>
|
||||
<span class="rc_comment">'First we will assign a grass tile across our entire tile map. lets grab a grass tile to fill in. </span><br>
|
||||
<br>
|
||||
FillTile<b>(</b>mTileMap, <span class="rc_number">166</span>, <span class="rc_number">0</span>, <span class="rc_number">0</span>, <span class="rc_number">20</span>, <span class="rc_number">20</span><b>)</b> <span class="rc_comment">'The tile number goes by starting at the top left corner to the right edge of the image, </span><br>
|
||||
<span class="rc_comment">'then wraps around and comntinues the count, the image is 13 wide (0-12) so 166 would be </span><br>
|
||||
<span class="rc_comment">'2 in from the end of the last row of images on the tileset. </span><br>
|
||||
<br>
|
||||
SetTile<b>(</b>mTileMap, <span class="rc_number">15</span>, <span class="rc_number">0</span>, <span class="rc_number">0</span><b>)</b> <span class="rc_comment">'With the map filled with grass tiles we can change a single tile, to a little guy in the </span><br>
|
||||
<span class="rc_comment">'top left corner. </span><br>
|
||||
<br>
|
||||
<span class="rc_comment">'Before we begin our main loop, we need to make some variables for holding some important info </span><br>
|
||||
mOffsetX = <span class="rc_number">0</span> <br>
|
||||
mOffsetY = <span class="rc_number">0</span> <span class="rc_comment">'Offset values for where the tile is to be drawn from, used for scrolling. </span><br>
|
||||
mViewportX = <span class="rc_number">640</span> <br>
|
||||
mViewportY = <span class="rc_number">480</span> <span class="rc_comment">'How much of the tile map is to be drawn on the canvas </span><br>
|
||||
<br>
|
||||
<span class="rc_keyword">While</span> <span class="rc_keyword">Not</span> Key<b>(</b>K_ESCAPE<b>)</b> <br>
|
||||
ClearCanvas<b>(</b><b>)</b> <br>
|
||||
<br>
|
||||
DrawTileMap<b>(</b>mTileMap, <span class="rc_number">0</span>, <span class="rc_number">0</span>, mViewportX, mViewportY, mOffsetX, mOffsetY<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">If</span> Key<b>(</b>K_UP<b>)</b> <span class="rc_keyword">Then</span> <br>
|
||||
mOffsetY = mOffsetY - <span class="rc_number">0.5</span> <br>
|
||||
<span class="rc_keyword">ElseIf</span> Key<b>(</b>K_DOWN<b>)</b> <span class="rc_keyword">Then</span> <br>
|
||||
mOffsetY = mOffsetY + <span class="rc_number">0.5</span> <br>
|
||||
<span class="rc_keyword">ElseIf</span> Key<b>(</b>K_LEFT<b>)</b> <span class="rc_keyword">Then</span> <br>
|
||||
mOffsetX = mOffsetX - <span class="rc_number">0.5</span> <br>
|
||||
<span class="rc_keyword">ElseIf</span> Key<b>(</b>K_RIGHT<b>)</b> <span class="rc_keyword">Then</span> <br>
|
||||
mOffsetX = mOffsetX + <span class="rc_number">0.5</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
<br>
|
||||
Update<b>(</b><b>)</b> <br>
|
||||
<span class="rc_keyword">Wend</span> <br>
|
||||
<br>
|
||||
<span class="rc_comment">'As you can see this replaces the grass tile with a character tile, if we wanted to place the character or any other object or image ontop of the tile </span><br>
|
||||
<span class="rc_comment">'we would DrawImage() an image not using the tilemap. </span><br>
|
||||
</code></p>
|
||||
<p><img src="images/testTileSet.png" ></p>
|
||||
<br><p>Related:
|
||||
<a href="createtilemap.html">CreateTileMap</a>
|
||||
<a href="settile.html">SetTile</a>
|
||||
<a href="filltile.html">FillTile</a>
|
||||
<a href="drawtilemap.html">DrawTileMap</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
|
||||
20
doc/doc_files/getgravity2d.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>GetGravity2D [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub GetGravity2D(ByRef x, ByRef y) </h2></p>
|
||||
<p>
|
||||
Use this function for retrieving the global gravity vector. A sprite canvas layer must be open.
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="setgravity2d.html">SetGravity2D</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
BIN
doc/doc_files/images/DripOctober.ttf
Normal file
BIN
doc/doc_files/images/frowny1.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
doc/doc_files/images/frowny2.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
doc/doc_files/images/rcbasic_icon.png
Executable file
|
After Width: | Height: | Size: 48 KiB |
BIN
doc/doc_files/images/sword.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
doc/doc_files/images/testTileSet.png
Normal file
|
After Width: | Height: | Size: 212 KiB |
BIN
doc/doc_files/images/theEye.png
Normal file
|
After Width: | Height: | Size: 888 B |
BIN
doc/doc_files/images/window_gfx_structure.png
Executable file
|
After Width: | Height: | Size: 25 KiB |
@@ -7,7 +7,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function OpenCanvasSpriteLayer(w, h, viewport_x, viewport_y, viewport_w, viewport_h) </h2></p>
|
||||
<p><h2>function OpenCanvasSpriteLayer(viewport_x, viewport_y, viewport_w, viewport_h) </h2></p>
|
||||
<p>
|
||||
Returns a sprite layer. These canvases are used for rendering sprites with the integrated physics engine.
|
||||
</p>
|
||||
|
||||
20
doc/doc_files/setgravity2d.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>SetGravity2D [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub SetGravity2D(x, y) </h2></p>
|
||||
<p>
|
||||
Use this function for setting the global gravity vector. A sprite canvas layer must be active.
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="getgravity2d.html">GetGravity2D</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
17
doc/files/abs.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>Abs [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function Abs(n) </h2></p>
|
||||
<p>
|
||||
Returns the absolute value of n
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
17
doc/files/accelname.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>AccelName$ [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function AccelName$(accel_num) </h2></p>
|
||||
<p>
|
||||
Returns the name of an accelerometer
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
17
doc/files/acos.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>Acos [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function Acos(n) </h2></p>
|
||||
<p>
|
||||
Returns the Arcosine of n
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
33
doc/files/activecanvas.html
Normal file
@@ -0,0 +1,33 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ActiveCanvas [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function ActiveCanvas() </h2></p>
|
||||
<p>
|
||||
Returns the canvas that drawing commands are currently applied to
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
c1 = OpenCanvas<b>(</b><span class="rc_number">640</span>, <span class="rc_number">480</span>, <span class="rc_number">0</span>, <span class="rc_number">0</span>, <span class="rc_number">640</span>, <span class="rc_number">480</span>, <span class="rc_number">0</span><b>)</b> <br>
|
||||
c2 = OpenCanvas<b>(</b><span class="rc_number">640</span>, <span class="rc_number">480</span>, <span class="rc_number">0</span>, <span class="rc_number">0</span>, <span class="rc_number">640</span>, <span class="rc_number">480</span>, <span class="rc_number">0</span><b>)</b> <br>
|
||||
<br>
|
||||
Canvas<b>(</b>c1<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">If</span> ActiveCanvas<b>(</b><b>)</b> = c1 <span class="rc_keyword">Then</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"Active canvas is c1"</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
<br>
|
||||
Canvas<b>(</b>c2<b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">If</span> ActiveCanvas<b>(</b><b>)</b> = c2 <span class="rc_keyword">Then</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"Active canvas is now c2"</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
</code></p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
23
doc/files/actoranimationislooped.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ActorAnimationIsLooped [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function ActorAnimationIsLooped( actor ) </h2></p>
|
||||
<p>
|
||||
Returns true if an actors animation is set to looped.
|
||||
</p>
|
||||
<p>
|
||||
Note: Actor animation is set to looped with the LoopActorAnimation() function.
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="loopactoranimation.html">LoopActorAnimation</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,8 +1,8 @@
|
||||
#title actorAnimationIsLooped [RCBasic Doc]
|
||||
#header function actorAnimationIsLooped( actor )
|
||||
#title ActorAnimationIsLooped [RCBasic Doc]
|
||||
#header function ActorAnimationIsLooped( actor )
|
||||
|
||||
Returns true if an actors animation is set to looped.
|
||||
|
||||
Note: Actor animation is set to looped with the loopActorAnimation() function.
|
||||
Note: Actor animation is set to looped with the LoopActorAnimation() function.
|
||||
|
||||
#ref loopActorAnimation
|
||||
#ref LoopActorAnimation
|
||||
|
||||
20
doc/files/actoranimationisplaying.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ActorAnimationIsPlaying [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function ActorAnimationIsPlaying(actor) </h2></p>
|
||||
<p>
|
||||
Returns true if an actor is currently playing an animation
|
||||
</p>
|
||||
<p>
|
||||
Note: If the number of loops in the animation is set to -1 then this will always be true since it does not return false until it plays the last frame in the last loop
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
17
doc/files/actorexists.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ActorExists [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function ActorExists( actor ) </h2></p>
|
||||
<p>
|
||||
Returns true if the id passed is a valid actor
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,4 +1,4 @@
|
||||
#title ActorExists [RCBasic Doc]
|
||||
#header function ActorExists( actor )
|
||||
|
||||
|
||||
Returns true if the id passed is a valid actor
|
||||
|
||||
22
doc/files/actorisintransition.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ActorIsInTransition [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function ActorIsInTransition( actor ) </h2></p>
|
||||
<p>
|
||||
Returns true if actor is in a transition from its current frame to the frame set in the StartActorTransition() function
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="startactortransition.html">StartActorTransition</a>
|
||||
<a href="stopactortransition.html">StopActorTransition</a>
|
||||
<a href="getactortransitiontime.html">GetActorTransitionTime</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
28
doc/files/actorissolid.html
Normal file
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ActorIsSolid [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function ActorIsSolid(actor) </h2></p>
|
||||
<p>
|
||||
Returns true or false depending on if physics and collision response applies to an actor.
|
||||
</p>
|
||||
<p>
|
||||
Note: Collision is still able to be checked on an actor but the actor will be like a ghost able to go through wall and other objects.
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
SetActorSolid<b>(</b>actor, <span class="rc_keyword">true</span><b>)</b> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"Actor solid state: "</span>; ActorIsSolid<b>(</b>actor<b>)</b> <span class="rc_comment">'This will output 1 </span><br>
|
||||
SetActorSolid<b>(</b>actor, <span class="rc_keyword">false</span><b>)</b> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"Actor solid state: "</span>; ActorIsSolid<b>(</b>actor<b>)</b> <span class="rc_comment">'This will output 0 </span><br>
|
||||
#/<span class="rc_keyword">end</span> <br>
|
||||
<br>
|
||||
#ref SetActorSolid <br>
|
||||
<br>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
26
doc/files/actorisvisible.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ActorIsVisible [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function ActorIsVisible( actor ) </h2></p>
|
||||
<p>
|
||||
Returns true if an actor is visible
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
SetActorVisible<b>(</b>actor, <span class="rc_keyword">true</span><b>)</b> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"Actor solid state: "</span>; ActorIsVisible<b>(</b>actor<b>)</b> <span class="rc_comment">'Outputs 1 </span><br>
|
||||
SetActorSolid<b>(</b>actor, <span class="rc_keyword">false</span><b>)</b> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"Actor solid state: "</span>; ActorIsSolid<b>(</b>actor<b>)</b> <span class="rc_comment">'Outputs 0 </span><br>
|
||||
</code></p>
|
||||
<br><p>Related:
|
||||
<a href="setactorvisible.html">SetActorVisible</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
23
doc/files/addactorshadow.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>AddActorShadow [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub AddActorShadow( actor ) </h2></p>
|
||||
<p>
|
||||
Cast a shadow on an actor during lighting calculations
|
||||
</p>
|
||||
<p>
|
||||
Note: Also check the section on lights for more info
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="removeactorshadow.html">RemoveActorShadow</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
17
doc/files/addmatrix.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>AddMatrix [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function AddMatrix(mA, mB, mC) </h2></p>
|
||||
<p>
|
||||
Adds matrix mA to matrix mB and stores the results in mC
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
20
doc/files/addmeshbuffer.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>AddMeshBuffer [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub AddMeshBuffer( mesh, vertex_count, ByRef vertex_data, ByRef normal_data, ByRef uv_data, index_count, ByRef index_data ) </h2></p>
|
||||
<p>
|
||||
Sets the vertices, normals, and texture coordinates for a mesh
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="createmesh.html">CreateMesh</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
21
doc/files/addsceneskybox.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>AddSceneSkyBox [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub AddSceneSkyBox( img_top, img_bottom, img_left, img_right, img_front, img_back) </h2></p>
|
||||
<p>
|
||||
Generates a skybox based on the provided images.
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="addsceneskydome.html">AddSceneSkyDome</a>
|
||||
<a href="addsceneskydomeex.html">AddSceneSkyDomeEx</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
20
doc/files/addsceneskydome.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>AddSceneSkyDome [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub AddSceneSkyDome( img ) </h2></p>
|
||||
<p>
|
||||
Adds a sky dome to the scene
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="addsceneskydomeex.html">AddSceneSkyDomeEx</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
41
doc/files/addsceneskydomeex.html
Normal file
@@ -0,0 +1,41 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>AddSceneSkyDomeEx [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub AddSceneSkyDomeEx( img, horiRes, vertRes, txPercentage, spherePercentage, radius) </h2></p>
|
||||
<p>
|
||||
Adds a sky dome to the scene
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
img - The texture for the sky dome
|
||||
</li>
|
||||
<li>
|
||||
horiRes - Number of vertices of a horizontal layer of the sphere.
|
||||
</li>
|
||||
<li>
|
||||
vertRes - Number of vertices of a vertical layer of the sphere.
|
||||
</li>
|
||||
<li>
|
||||
txPercentage - How much of the height of the texture is used. Should be between 0 and 1.
|
||||
</li>
|
||||
<li>
|
||||
spherePercentage - How much of the sphere is drawn. Value should be between 0 and 2, where 1 is an exact half-sphere and 2 is a full sphere.
|
||||
</li>
|
||||
<li>
|
||||
radius - The Radius of the sphere
|
||||
</li>
|
||||
</ul>
|
||||
<br><p>Related:
|
||||
<a href="addsceneskybox.html">AddSceneSkyBox</a>
|
||||
<a href="addsceneskydome.html">AddSceneSkyDome</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
17
doc/files/adjointmatrix.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>AdjointMatrix [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function AdjointMatrix(mA, mB) </h2></p>
|
||||
<p>
|
||||
Stores the adjoint matrix of mA in mB
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
17
doc/files/andbit.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>AndBit [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function AndBit(a,b) </h2></p>
|
||||
<p>
|
||||
Returns the bitwise AND operation of 2 numbers
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
21
doc/files/android_getexternalstoragepath.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>Android_GetExternalStoragePath$ [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function Android_GetExternalStoragePath$() </h2></p>
|
||||
<p>
|
||||
Returns the designated external storage path
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="android_getexternalstoragestate.html">Android_GetExternalStorageState</a>
|
||||
<a href="android_getinternalstoragepath.html">Android_GetInternalStoragePath$</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
34
doc/files/android_getexternalstoragestate.html
Normal file
@@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>Android_GetExternalStorageState [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function Android_GetExternalStorageState() </h2></p>
|
||||
<p>
|
||||
Returns a bitmask of these values:
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
ANDROID_EXTERNAL_STORAGE_READ
|
||||
</li>
|
||||
<li>
|
||||
ANDROID_EXTERNAL_STORAGE_WRITE
|
||||
</li>
|
||||
</ul>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">If</span> AndBit<b>(</b> Android_GetExternalStorageState<b>(</b><b>)</b>, ANDROID_EXTERNAL_STORAGE_READ <b>)</b> <span class="rc_keyword">Then</span> <br>
|
||||
<span class="rc_keyword">Print</span> <span class="rc_string">"Can read from external storage"</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
</code></p>
|
||||
<br><p>Related:
|
||||
<a href="android_getexternalstoragepath.html">Android_GetExternalStoragePath$</a>
|
||||
<a href="android_getinternalstoragepath.html">Android_GetInternalStoragePath$</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
21
doc/files/android_getinternalstoragepath.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>Android_GetInternalStoragePath$ [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function Android_GetInternalStoragePath$() </h2></p>
|
||||
<p>
|
||||
Returns the internal storage path
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="android_getexternalstoragestate.html">Android_GetExternalStorageState</a>
|
||||
<a href="android_getexternalstoragepath.html">Android_GetExternalStoragePath$</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
20
doc/files/android_jni_message.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>Android_JNI_Message$ [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function Android_JNI_Message$(arg$) </h2></p>
|
||||
<p>
|
||||
Passes arg$ to the rcbasic_android_interface() method in the java code for your android app. The java method returns a string.
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="runtime_utility_message.html">Runtime_Utility_Message$</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
27
doc/files/applyactorcentralforcelocal.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ApplyActorCentralForceLocal [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub ApplyActorCentralForceLocal( actor, x, y, z) </h2></p>
|
||||
<p>
|
||||
Applies a force to the center of mass of an actor in local coordinate space. This force impacts the linear velocity of the object without affecting its rotation.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
x,y,z - direction of the force
|
||||
</li>
|
||||
</ul>
|
||||
<br><p>Related:
|
||||
<a href="applyactorcentralforceworld.html">ApplyActorCentralForceWorld</a>
|
||||
<a href="applyactorcentralimpulselocal.html">ApplyActorCentralImpulseLocal</a>
|
||||
<a href="applyactorcentralimpulseworld.html">ApplyActorCentralImpulseWorld</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
27
doc/files/applyactorcentralforceworld.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ApplyActorCentralForceWorld [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub ApplyActorCentralForceWorld( actor, x, y, z) </h2></p>
|
||||
<p>
|
||||
Applies a force to the center of mass of an actor in world coordinate space. This force impacts the linear velocity of the object without affecting its rotation.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
x,y,z - direction of the force
|
||||
</li>
|
||||
</ul>
|
||||
<br><p>Related:
|
||||
<a href="applyactorcentralforcelocal.html">ApplyActorCentralForceLocal</a>
|
||||
<a href="applyactorcentralimpulselocal.html">ApplyActorCentralImpulseLocal</a>
|
||||
<a href="applyactorcentralimpulseworld.html">ApplyActorCentralImpulseWorld</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
27
doc/files/applyactorcentralimpulselocal.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ApplyActorCentralImpulseLocal [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub ApplyActorCentralImpulseLocal( actor, x, y, z) </h2></p>
|
||||
<p>
|
||||
Applies an impulse directly to the center of mass of an actor. An impulse differs from a continuous force in that it applies an immediate, short-duration change to the velocity of the actor. It affects the linear velocity but does not generate rotational effects (since it's applied to the center of mass).
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
x,y,z - direction of the impulse
|
||||
</li>
|
||||
</ul>
|
||||
<br><p>Related:
|
||||
<a href="applyactorcentralforcelocal.html">ApplyActorCentralForceLocal</a>
|
||||
<a href="applyactorcentralforceworld.html">ApplyActorCentralForceWorld</a>
|
||||
<a href="applyactorcentralimpulseworld.html">ApplyActorCentralImpulseWorld</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
27
doc/files/applyactorcentralimpulseworld.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ApplyActorCentralImpulseWorld [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub ApplyActorCentralImpulseWorld( actor, x, y, z) </h2></p>
|
||||
<p>
|
||||
Applies an impulse directly to the center of mass of an actor. An impulse differs from a continuous force in that it applies an immediate, short-duration change to the velocity of the actor. It affects the linear velocity but does not generate rotational effects (since it's applied to the center of mass).
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
x,y,z - direction of the impulse
|
||||
</li>
|
||||
</ul>
|
||||
<br><p>Related:
|
||||
<a href="applyactorcentralforcelocal.html">ApplyActorCentralForceLocal</a>
|
||||
<a href="applyactorcentralforceworld.html">ApplyActorCentralForceWorld</a>
|
||||
<a href="applyactorcentralimpulselocal.html">ApplyActorCentralImpulseLocal</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
38
doc/files/applyactordamping.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ApplyActorDamping [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub ApplyActorDamping( actor, timeStep) </h2></p>
|
||||
<p>
|
||||
Reduces the velocity of an actor over time, simulating the effect of friction or air resistance.
|
||||
</p>
|
||||
<p>
|
||||
This function applies the linear and angular damping values set with the SetActorDamping() function.
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
init_damping = <span class="rc_keyword">False</span> <br>
|
||||
SetActorDamping<b>(</b>actor, <span class="rc_number">0.1</span>, <span class="rc_number">0.5</span><b>)</b> <br>
|
||||
ApplyActorCentralImpulse<b>(</b>actor, <span class="rc_number">300</span>, <span class="rc_number">0</span>, <span class="rc_number">0</span><b>)</b> <br>
|
||||
<br>
|
||||
<span class="rc_keyword">While</span> <span class="rc_keyword">True</span> <br>
|
||||
<span class="rc_keyword">If</span> <span class="rc_keyword">Not</span> init_damping <span class="rc_keyword">Then</span> <br>
|
||||
ApplyActorDamping<b>(</b>actor, <span class="rc_number">5.0</span><b>)</b> <span class="rc_comment">'Will apply the damping effect for 5 seconds </span><br>
|
||||
init_damping = <span class="rc_keyword">True</span> <br>
|
||||
<span class="rc_keyword">End</span> <span class="rc_keyword">If</span> <br>
|
||||
Update<b>(</b><b>)</b> <br>
|
||||
<span class="rc_keyword">Wend</span> <br>
|
||||
</code></p>
|
||||
<br><p>Related:
|
||||
<a href="setactordamping.html">setActorDamping</a>
|
||||
<a href="getactorlineardamping.html">getActorLinearDamping</a>
|
||||
<a href="getactorangulardamping.html">getActorAngularDamping</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
30
doc/files/applyactorforcelocal.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ApplyActorForceLocal [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub ApplyActorForceLocal( actor, x, y, z, rel_x, rel_y, rel_z) </h2></p>
|
||||
<p>
|
||||
Applies a force to an actor at a specific point. Unlike ApplyActorCentralForce(local/world), which applies force only at the center of mass (affecting linear velocity), this can generate both linear motion and rotation (torque), depending on where the force is applied relative to the center of mass.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
x,y,z - direction of the force
|
||||
</li>
|
||||
<li>
|
||||
rel_x, rel_y, rel_z - position to apply the force to relative to the center of mass
|
||||
</li>
|
||||
</ul>
|
||||
<br><p>Related:
|
||||
<a href="applyactorforceworld.html">ApplyActorForceWorld</a>
|
||||
<a href="applyactorcentralforcelocal.html">ApplyActorCentralForceLocal</a>
|
||||
<a href="applyactorcentralforceworld.html">ApplyActorCentralForceWorld</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
30
doc/files/applyactorforceworld.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ApplyActorForceWorld [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub ApplyActorForceWorld( actor, x, y, z, rel_x, rel_y, rel_z) </h2></p>
|
||||
<p>
|
||||
Applies a force to an actor at a specific point. Unlike ApplyActorCentralForce(local/world), which applies force only at the center of mass (affecting linear velocity), this can generate both linear motion and rotation (torque), depending on where the force is applied relative to the center of mass.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
x,y,z - direction of the force
|
||||
</li>
|
||||
<li>
|
||||
rel_x, rel_y, rel_z - position to apply the force to relative to the center of mass
|
||||
</li>
|
||||
</ul>
|
||||
<br><p>Related:
|
||||
<a href="applyactorforcelocal.html">ApplyActorForceLocal</a>
|
||||
<a href="applyactorcentralforcelocal.html">ApplyActorCentralForceLocal</a>
|
||||
<a href="applyactorcentralforceworld.html">ApplyActorCentralForceWorld</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
30
doc/files/applyactorimpulselocal.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ApplyActorImpulseLocal [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub ApplyActorImpulseLocal( actor, x, y, z, rel_x, rel_y, rel_z) </h2></p>
|
||||
<p>
|
||||
Applies an impulse to an actor at a specific point. Unlike ApplyActorCentralImpulse(local/world), which applies impulse only at the center of mass (affecting linear velocity), this can generate both linear motion and rotation (torque), depending on where the force is applied relative to the center of mass.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
x,y,z - direction of the impulse
|
||||
</li>
|
||||
<li>
|
||||
rel_x, rel_y, rel_z - position to apply the force to relative to the center of mass
|
||||
</li>
|
||||
</ul>
|
||||
<br><p>Related:
|
||||
<a href="applyactorimpulseworld.html">ApplyActorImpulseWorld</a>
|
||||
<a href="applyactorforcelocal.html">ApplyActorForceLocal</a>
|
||||
<a href="applyactorforceworld.html">ApplyActorForceWorld</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
30
doc/files/applyactorimpulseworld.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ApplyActorImpulseWorld [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>Sub ApplyActorImpulseWorld( actor, x, y, z, rel_x, rel_y, rel_z) </h2></p>
|
||||
<p>
|
||||
Applies an impulse to an actor at a specific point. Unlike ApplyActorCentralImpulse(local/world), which applies impulse only at the center of mass (affecting linear velocity), this can generate both linear motion and rotation (torque), depending on where the force is applied relative to the center of mass.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
x,y,z - direction of the impulse
|
||||
</li>
|
||||
<li>
|
||||
rel_x, rel_y, rel_z - position to apply the force to relative to the center of mass
|
||||
</li>
|
||||
</ul>
|
||||
<br><p>Related:
|
||||
<a href="applyactorimpulselocal.html">ApplyActorImpulseLocal</a>
|
||||
<a href="applyactorforcelocal.html">ApplyActorForceLocal</a>
|
||||
<a href="applyactorforceworld.html">ApplyActorForceWorld</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,5 +1,5 @@
|
||||
#title applyActorImpulseWorld [RCBasic Doc]
|
||||
#header sub applyActorImpulseWorld( actor, x, y, z, rel_x, rel_y, rel_z)
|
||||
#title ApplyActorImpulseWorld [RCBasic Doc]
|
||||
#header Sub ApplyActorImpulseWorld( actor, x, y, z, rel_x, rel_y, rel_z)
|
||||
|
||||
Applies an impulse to an actor at a specific point. Unlike ApplyActorCentralImpulse(local/world), which applies impulse only at the center of mass (affecting linear velocity), this can generate both linear motion and rotation (torque), depending on where the force is applied relative to the center of mass.
|
||||
|
||||
|
||||
26
doc/files/applyactortorqueimpulselocal.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ApplyActorTorqueImpulseLocal [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>Sub ApplyActorTorqueImpulseLocal( actor, x, y, z) </h2></p>
|
||||
<p>
|
||||
Applies an impulse that directly affects the angular velocity of an actor, causing it to rotate. This is similar to applying an impulse, but instead of changing the linear velocity (which applyActorCentralImpulse does), it alters the body's rotational motion (angular velocity) instantaneously.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
x, y, z - Direction of rotation
|
||||
</li>
|
||||
</ul>
|
||||
<br><p>Related:
|
||||
<a href="applyactortorque.html">ApplyActorTorque</a>
|
||||
<a href="applyactortorqueimpulseworld.html">ApplyActorTorqueImpulseWorld</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,5 +1,5 @@
|
||||
#title applyActorTorqueImpulseLocal [RCBasic Doc]
|
||||
#header sub applyActorTorqueImpulseLocal( actor, x, y, z)
|
||||
#title ApplyActorTorqueImpulseLocal [RCBasic Doc]
|
||||
#header Sub ApplyActorTorqueImpulseLocal( actor, x, y, z)
|
||||
|
||||
Applies an impulse that directly affects the angular velocity of an actor, causing it to rotate. This is similar to applying an impulse, but instead of changing the linear velocity (which applyActorCentralImpulse does), it alters the body's rotational motion (angular velocity) instantaneously.
|
||||
|
||||
|
||||
26
doc/files/applyactortorqueimpulseworld.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ApplyActorTorqueImpulseWorld [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>Sub ApplyActorTorqueImpulseWorld( actor, x, y, z) </h2></p>
|
||||
<p>
|
||||
Applies an impulse that directly affects the angular velocity of an actor, causing it to rotate. This is similar to applying an impulse, but instead of changing the linear velocity (which applyActorCentralImpulse does), it alters the body's rotational motion (angular velocity) instantaneously.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
x, y, z - Direction of rotation
|
||||
</li>
|
||||
</ul>
|
||||
<br><p>Related:
|
||||
<a href="applyactortorque.html">ApplyActorTorque</a>
|
||||
<a href="applyactortorqueimpulselocal.html">ApplyActorTorqueImpulseLocal</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,5 +1,5 @@
|
||||
#title applyActorTorqueImpulseWorld [RCBasic Doc]
|
||||
#header sub applyActorTorqueImpulseWorld( actor, x, y, z)
|
||||
#title ApplyActorTorqueImpulseWorld [RCBasic Doc]
|
||||
#header Sub ApplyActorTorqueImpulseWorld( actor, x, y, z)
|
||||
|
||||
Applies an impulse that directly affects the angular velocity of an actor, causing it to rotate. This is similar to applying an impulse, but instead of changing the linear velocity (which applyActorCentralImpulse does), it alters the body's rotational motion (angular velocity) instantaneously.
|
||||
|
||||
|
||||
27
doc/files/applyactortorquelocal.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ApplyActorTorqueLocal [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>Sub ApplyActorTorqueLocal( actor, x, y, z) </h2></p>
|
||||
<p>
|
||||
Applies a continuous torque to an actor, causing it to accelerate its rotational motion over time. Unlike applyActorTorqueImpulse, which causes an immediate change in angular velocity, this applies a torque force gradually, leading to a continuous rotational effect, similar to applying a force to linear motion.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
x, y, z - direction of rotation
|
||||
</li>
|
||||
</ul>
|
||||
<br><p>Related:
|
||||
<a href="applyactortorqueworld.html">ApplyActorTorqueWorld</a>
|
||||
<a href="applyactortorqueimpulselocal.html">ApplyActorTorqueImpulseLocal</a>
|
||||
<a href="applyactortorqueimpulseworld.html">ApplyActorTorqueImpulseWorld</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,5 +1,5 @@
|
||||
#title applyActorTorqueLocal [RCBasic Doc]
|
||||
#header sub applyActorTorqueLocal( actor, x, y, z)
|
||||
#title ApplyActorTorqueLocal [RCBasic Doc]
|
||||
#header Sub ApplyActorTorqueLocal( actor, x, y, z)
|
||||
|
||||
Applies a continuous torque to an actor, causing it to accelerate its rotational motion over time. Unlike applyActorTorqueImpulse, which causes an immediate change in angular velocity, this applies a torque force gradually, leading to a continuous rotational effect, similar to applying a force to linear motion.
|
||||
|
||||
|
||||
27
doc/files/applyactortorqueworld.html
Normal file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ApplyActorTorqueWorld [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>Sub ApplyActorTorqueWorld( actor, x, y, z) </h2></p>
|
||||
<p>
|
||||
Applies a continuous torque to an actor, causing it to accelerate its rotational motion over time. Unlike applyActorTorqueImpulse, which causes an immediate change in angular velocity, this applies a torque force gradually, leading to a continuous rotational effect, similar to applying a force to linear motion.
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
x, y, z - direction of rotation
|
||||
</li>
|
||||
</ul>
|
||||
<br><p>Related:
|
||||
<a href="applyactortorquelocal.html">ApplyActorTorqueLocal</a>
|
||||
<a href="applyactortorqueimpulselocal.html">ApplyActorTorqueImpulseLocal</a>
|
||||
<a href="applyactortorqueimpulseworld.html">ApplyActorTorqueImpulseWorld</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,5 +1,5 @@
|
||||
#title applyActorTorqueWorld [RCBasic Doc]
|
||||
#header sub applyActorTorqueWorld( actor, x, y, z)
|
||||
#title ApplyActorTorqueWorld [RCBasic Doc]
|
||||
#header Sub ApplyActorTorqueWorld( actor, x, y, z)
|
||||
|
||||
Applies a continuous torque to an actor, causing it to accelerate its rotational motion over time. Unlike applyActorTorqueImpulse, which causes an immediate change in angular velocity, this applies a torque force gradually, leading to a continuous rotational effect, similar to applying a force to linear motion.
|
||||
|
||||
|
||||
20
doc/files/applyspriteangularimpulse.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>applySpriteAngularImpulse [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub applySpriteAngularImpulse( spr_id, impulse) </h2></p>
|
||||
<p>
|
||||
Apply an angular impulse to a body. This method affects the body’s rotational motion, changing its angular velocity based on the impulse applied.
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="applyspritelinearimpulse.html">ApplySpriteLinearImpulse</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
17
doc/files/applyspritecentralforce.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>applySpriteCentralForce [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub applySpriteCentralForce( spr_id, x, y) </h2></p>
|
||||
<p>
|
||||
Apply a continuous force to a body at its center of mass, regardless of the body's current orientation. This method affects the body's linear motion and is useful for simulating forces like gravity, wind, or any other directional force.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
17
doc/files/applyspriteforce.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>applySpriteForce [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub applySpriteForce( spr_id, fX, fY, pX, pY) </h2></p>
|
||||
<p>
|
||||
Apply a force at a world point. If the force is not applied at the center of mass, it will generate a torque and affect the angular velocity. This wakes up the body.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
20
doc/files/applyspritelinearimpulse.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>applySpriteLinearImpulse [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub applySpriteLinearImpulse( spr_id, iX, iY, pX, pY) </h2></p>
|
||||
<p>
|
||||
Apply an instantaneous linear impulse to a body. This method directly affects the body’s linear motion by changing its velocity based on the impulse applied.
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="applyspriteangularimpulse.html">ApplySpriteAngularImpulse</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
17
doc/files/applyspritetorque.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>applySpriteTorque [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub applySpriteTorque( spr_id, torque) </h2></p>
|
||||
<p>
|
||||
Apply a torque. This affects the angular velocity without affecting the linear velocity of the center of mass.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
25
doc/files/arraycopy.html
Normal file
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ArrayCopy [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub ArrayCopy(ByRef src, ByRef dst) </h2></p>
|
||||
<p>
|
||||
Copies the contents of src array to dst array
|
||||
</p>
|
||||
<p>
|
||||
Note: This function is a special case in that it can take any type for src or dst
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="arraydim.html">ArrayDim</a>
|
||||
<a href="arraysize.html">ArraySize</a>
|
||||
<a href="arrayfill.html">ArrayFill</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
22
doc/files/arraydim.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ArrayDim [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function ArrayDim(Byref id) </h2></p>
|
||||
<p>
|
||||
Returns the number of dimensions in an array
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="arraycopy.html">ArrayCopy</a>
|
||||
<a href="arrayfill.html">ArrayFill</a>
|
||||
<a href="arraysize.html">ArraySize</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
22
doc/files/arrayfill.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ArrayFill [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>Sub ArrayFill(ByRef src, fdata) </h2></p>
|
||||
<p>
|
||||
Fills all the elements in an array with the value in fdata
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="arraycopy.html">ArrayCopy</a>
|
||||
<a href="arraydim.html">ArrayDim</a>
|
||||
<a href="arraysize.html">ArraySize</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,5 +1,5 @@
|
||||
#title ArrayFill [RCBasic Doc]
|
||||
#header sub ArrayFill(ByRef src, fdata)
|
||||
#header Sub ArrayFill(ByRef src, fdata)
|
||||
|
||||
Fills all the elements in an array with the value in fdata
|
||||
|
||||
|
||||
61
doc/files/arrays.html
Normal file
@@ -0,0 +1,61 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>RCBasic Arrays [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>ARRAYS </h2></p>
|
||||
<p>
|
||||
In complex programs there is often a need to be able to store large amounts of data. It would be unreasonable to have to create a variable for each piece of data we may need to store. This is where an array can come in handy. Arrays are simply ways of using one variable to store multiple different values. You can create arrays of numbers or strings. Look at the following:
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">Dim</span> A<b>[</b><span class="rc_number">5</span><b>]</b> <br>
|
||||
</code></p>
|
||||
<p>
|
||||
The above example creates an array of numbers called A. A can store five numbers which are retrieved using A[0] to A[4]. Notice that A[4] is the last element in the array and not A[5]. That is because the first index in the array is 0 and the array only stores 5 numbers. To set the values in this array you could do the following:
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
A<b>[</b><span class="rc_number">0</span><b>]</b> = <span class="rc_number">3</span> <br>
|
||||
A<b>[</b><span class="rc_number">1</span><b>]</b> = <span class="rc_number">2</span> <br>
|
||||
A<b>[</b><span class="rc_number">2</span><b>]</b> = <span class="rc_number">7</span> <br>
|
||||
A<b>[</b><span class="rc_number">3</span><b>]</b> = <span class="rc_number">1</span> <br>
|
||||
A<b>[</b><span class="rc_number">4</span><b>]</b> = <span class="rc_number">0</span> <br>
|
||||
</code></p>
|
||||
<p>
|
||||
You would access and array just like you would a variable. Look at the following:
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
X = A<b>[</b><span class="rc_number">0</span><b>]</b> + A<b>[</b><span class="rc_number">3</span><b>]</b> <span class="rc_comment">'( Based on the above example the variable X would be set to 4. ) </span><br>
|
||||
</code></p>
|
||||
<p>
|
||||
To make a string variable you would do the same thing you do to make a number variable except you would use the $ just like you would use to make a normal string variable. Look at the following:
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">Dim</span> B$<b>[</b><span class="rc_number">3</span><b>]</b> <br>
|
||||
<br>
|
||||
B<b>[</b><span class="rc_number">0</span><b>]</b> = <span class="rc_string">"ABC"</span> <br>
|
||||
B<b>[</b><span class="rc_number">1</span><b>]</b> = <span class="rc_string">"DEF"</span> <br>
|
||||
B<b>[</b><span class="rc_number">2</span><b>]</b> = <span class="rc_string">"I KNOW THE ALPHABET"</span> <br>
|
||||
</code></p>
|
||||
<p>
|
||||
Arrays can have up to 3 dimensions. Adding more dimensions to an array can make organizing data in the array easier depending on the situation. Look at the following:
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
<span class="rc_keyword">Dim</span> X<b>[</b><span class="rc_number">2</span>, <span class="rc_number">3</span><b>]</b> <br>
|
||||
<span class="rc_keyword">Dim</span> Y<b>[</b><span class="rc_number">3</span>, <span class="rc_number">4</span>, <span class="rc_number">5</span><b>]</b> <br>
|
||||
</code></p>
|
||||
<p>
|
||||
The above example creates a 2 dimensional array called X which has 2 indices in its first dimension. Its second dimension has 3 indices. This means that each of the 2 indices in the first dimension can store 3 different values. So X can store a total of 6 different values. The second line creates a 3 dimensional array called Y. Y has 3 indices in its first dimension. Each of those 3 indices has 4 indices in its 2nd dimension. Each of the 4 indices has 5 values it can store. This means that Y can store a total of 60 different values. Look at the following for an example on how to work with these multi-dimensional arrays:
|
||||
</p>
|
||||
<p id="rc_code"><code>
|
||||
X<b>[</b><span class="rc_number">0</span>, <span class="rc_number">2</span><b>]</b> = <span class="rc_number">5</span> <span class="rc_comment">'(This line sets the 3rd value in the first index to 5. Remember that the first index is always 0 so the 3rd index will be 2.) </span><br>
|
||||
<br>
|
||||
Y<b>[</b><span class="rc_number">1</span>, <span class="rc_number">2</span>, <span class="rc_number">3</span><b>]</b> = <span class="rc_number">6</span> <span class="rc_comment">'(This line sets the 4th value of the 3rd index in the 2nd index in the array to 6. That was a mouth full. ) </span><br>
|
||||
</code></p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
22
doc/files/arraysize.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ArraySize [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>Function ArraySize(Byref id, array_dim) </h2></p>
|
||||
<p>
|
||||
Returns the number of elements in the given dimension of an array
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="arraydim.html">ArrayDim</a>
|
||||
<a href="arraycopy.html">ArrayCopy</a>
|
||||
<a href="arrayfill.html">ArrayFill</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,5 +1,5 @@
|
||||
#title ArraySize [RCBasic Doc]
|
||||
#header function ArraySize(Byref id, array_dim)
|
||||
#header Function ArraySize(Byref id, array_dim)
|
||||
|
||||
Returns the number of elements in the given dimension of an array
|
||||
|
||||
|
||||
17
doc/files/asc.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>Asc [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>Function Asc(c$) </h2></p>
|
||||
<p>
|
||||
Returns the ASCII value of a character.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,4 +1,4 @@
|
||||
#title Asc [RCBasic Doc]
|
||||
#header function Asc(c$)
|
||||
#header Function Asc(c$)
|
||||
|
||||
Returns the ASCII value of a character.
|
||||
|
||||
17
doc/files/asin.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>Asin [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>Function Asin(n) </h2></p>
|
||||
<p>
|
||||
Returns the ArcSine of a number.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,4 +1,4 @@
|
||||
#title Asin [RCBasic Doc]
|
||||
#header function Asin(n)
|
||||
#header Function Asin(n)
|
||||
|
||||
Returns the ArcSine of a number.
|
||||
|
||||
17
doc/files/atan.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>Atan [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>Function Atan(n) </h2></p>
|
||||
<p>
|
||||
Returns the ArcTangent of a number.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,4 +1,4 @@
|
||||
#title Atan [RCBasic Doc]
|
||||
#header function Atan(n)
|
||||
#header Function Atan(n)
|
||||
|
||||
Returns the ArcTangent of a number.
|
||||
|
||||
17
doc/files/atan2.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ATan2 [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>Function ATan2(y, x) </h2></p>
|
||||
<p>
|
||||
Returns the ArcTangent of x and y
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
20
doc/files/augmentmatrix.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>AugmentMatrix [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function AugmentMatrix(mA, mB, mC) </h2></p>
|
||||
<p>
|
||||
Appends the columns of matrix mB onto matrix mA and stores the result in mC.
|
||||
</p>
|
||||
<p>
|
||||
NOTE: Must mA and mB must be the same number of rows.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
17
doc/files/bin.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>Bin$ [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function Bin$(n) </h2></p>
|
||||
<p>
|
||||
Returns the binary representation of a number.
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
17
doc/files/box3d.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>Box3D [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub Box3D(min_x, min_y, min_z, max_x, max_y, max_z) </h2></p>
|
||||
<p>
|
||||
Draws a box in 3D space
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
4
doc/files/box3d.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
#title Box3D [RCBasic Doc]
|
||||
#header sub Box3D(min_x, min_y, min_z, max_x, max_y, max_z)
|
||||
|
||||
Draws a box in 3D space
|
||||
14
doc/files/bufferfromimage.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>BufferFromImage [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub BufferFromImage(slot, byref buffer) </h2></p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
23
doc/files/bufferfrommatrix.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>BufferFromMatrix [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub BufferFromMatrix(ByRef buffer, mA) </h2></p>
|
||||
<p>
|
||||
Saves the matrix mA in an array
|
||||
</p>
|
||||
<p>
|
||||
NOTE: buffer must have the same number of dimensions as the desired matrix for the structure to remain intact.
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="matrixfrombuffer.html">MatrixFromBuffer</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
20
doc/files/bufferfromstring.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>BufferFromString [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function BufferFromString(s$, ByRef buffer) </h2></p>
|
||||
<p>
|
||||
Stores the byte value of a string into a number buffer
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="stringfrombuffer.html">StringFromBuffer$</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
20
doc/files/canvas.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>Canvas [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub Canvas(c_num) </h2></p>
|
||||
<p>
|
||||
Sets the active canvas for drawing commands to use
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="activecanvas.html">ActiveCanvas</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
20
doc/files/canvasclip.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>CanvasClip [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function CanvasClip(x, y, w, h) </h2></p>
|
||||
<p>
|
||||
Returns an image id with a selected portion of the active drawing canvas saved
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="windowclip.html">WindowClip</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
20
doc/files/canvasisvisible.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>CanvasIsVisible [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function CanvasIsVisible(c_num) </h2></p>
|
||||
<p>
|
||||
Returns true if a canvas is shown in the Window
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="setcanvasvisible.html">SetCanvasVisible</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
23
doc/files/canvasz.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>CanvasZ [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function CanvasZ(c_num) </h2></p>
|
||||
<p>
|
||||
Returns the Canvas Z Order.
|
||||
</p>
|
||||
<p>
|
||||
Note: Canvases with a higher Z order are drawn first and those with lower values will be drawn on top
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="setcanvasz.html">SetCanvasZ</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
30
doc/files/castray2d.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>CastRay2D [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function CastRay2D( from_x, from_y, to_x, to_y ) </h2></p>
|
||||
<p>
|
||||
Cast a ray and get the closest hit on the ray
|
||||
</p>
|
||||
<p>
|
||||
Returns 1 if there is a hit and 0 if not
|
||||
</p>
|
||||
<p>
|
||||
NOTE: GetRayHit2D is used to read each hit
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="getrayhit3d.html">GetRayHit3D</a>
|
||||
<a href="castray3d.html">CastRay3D</a>
|
||||
<a href="castray3d_all.html">CastRay3D_All</a>
|
||||
<a href="castray2d_all.html">CastRay2D_All</a>
|
||||
<a href="getrayhit2d.html">GetRayHit2D</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
10
doc/files/castray2d.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
#title CastRay2D [RCBasic Doc]
|
||||
#header function CastRay2D( from_x, from_y, to_x, to_y )
|
||||
|
||||
Cast a ray and get the closest hit on the ray
|
||||
|
||||
Returns 1 if there is a hit and 0 if not
|
||||
|
||||
NOTE: GetRayHit2D is used to read each hit
|
||||
|
||||
#ref GetRayHit3D CastRay3D CastRay3D_All CastRay2D_All GetRayHit2D
|
||||
30
doc/files/castray2d_all.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>CastRay2D_All [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function CastRay2D_All( from_x, from_y, to_x, to_y ) </h2></p>
|
||||
<p>
|
||||
Cast a ray and gets all hits on the ray
|
||||
</p>
|
||||
<p>
|
||||
Returns the number of hits from the ray cast
|
||||
</p>
|
||||
<p>
|
||||
NOTE: GetRayHit2D is used to read each hit
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="getrayhit3d.html">GetRayHit3D</a>
|
||||
<a href="castray3d.html">CastRay3D</a>
|
||||
<a href="castray3d_all.html">CastRay3D_All</a>
|
||||
<a href="castray2d.html">CastRay2D</a>
|
||||
<a href="getrayhit2d.html">GetRayHit2D</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
10
doc/files/castray2d_all.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
#title CastRay2D_All [RCBasic Doc]
|
||||
#header function CastRay2D_All( from_x, from_y, to_x, to_y )
|
||||
|
||||
Cast a ray and gets all hits on the ray
|
||||
|
||||
Returns the number of hits from the ray cast
|
||||
|
||||
NOTE: GetRayHit2D is used to read each hit
|
||||
|
||||
#ref GetRayHit3D CastRay3D CastRay3D_All CastRay2D GetRayHit2D
|
||||
30
doc/files/castray3d.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>CastRay3D [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function CastRay3D( from_x, from_y, from_z, to_x, to_y, to_z ) </h2></p>
|
||||
<p>
|
||||
Cast a ray and get the closest hit on the ray
|
||||
</p>
|
||||
<p>
|
||||
Returns 1 if there is a hit and 0 if not
|
||||
</p>
|
||||
<p>
|
||||
NOTE: GetRayHit3D is used to read each hit
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="getrayhit3d.html">GetRayHit3D</a>
|
||||
<a href="castray3d_all.html">CastRay3D_All</a>
|
||||
<a href="castray2d.html">CastRay2D</a>
|
||||
<a href="castray2d_all.html">CastRay2D_All</a>
|
||||
<a href="getrayhit2d.html">GetRayHit2D</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
10
doc/files/castray3d.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
#title CastRay3D [RCBasic Doc]
|
||||
#header function CastRay3D( from_x, from_y, from_z, to_x, to_y, to_z )
|
||||
|
||||
Cast a ray and get the closest hit on the ray
|
||||
|
||||
Returns 1 if there is a hit and 0 if not
|
||||
|
||||
NOTE: GetRayHit3D is used to read each hit
|
||||
|
||||
#ref GetRayHit3D CastRay3D_All CastRay2D CastRay2D_All GetRayHit2D
|
||||
30
doc/files/castray3d_all.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>CastRay3D_All [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function CastRay3D_All( from_x, from_y, from_z, to_x, to_y, to_z ) </h2></p>
|
||||
<p>
|
||||
Cast a ray and gets all hits on the ray
|
||||
</p>
|
||||
<p>
|
||||
Returns the number of hits from the ray cast
|
||||
</p>
|
||||
<p>
|
||||
NOTE: GetRayHit3D is used to read each hit
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="getrayhit3d.html">GetRayHit3D</a>
|
||||
<a href="castray3d.html">CastRay3D</a>
|
||||
<a href="castray2d.html">CastRay2D</a>
|
||||
<a href="castray2d_all.html">CastRay2D_All</a>
|
||||
<a href="getrayhit2d.html">GetRayHit2D</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
10
doc/files/castray3d_all.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
#title CastRay3D_All [RCBasic Doc]
|
||||
#header function CastRay3D_All( from_x, from_y, from_z, to_x, to_y, to_z )
|
||||
|
||||
Cast a ray and gets all hits on the ray
|
||||
|
||||
Returns the number of hits from the ray cast
|
||||
|
||||
NOTE: GetRayHit3D is used to read each hit
|
||||
|
||||
#ref GetRayHit3D CastRay3D CastRay2D CastRay2D_All GetRayHit2D
|
||||
17
doc/files/changedir.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ChangeDir [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>sub ChangeDir(p$) </h2></p>
|
||||
<p>
|
||||
Sets the working directory that the directory commands use
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
20
doc/files/channelispaused.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ChannelIsPaused [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function ChannelIsPaused(channel) </h2></p>
|
||||
<p>
|
||||
Returns true if an audio channel is currently paused
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="pausesound.html">PauseSound</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
22
doc/files/channelisplaying.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
|
||||
<title>ChannelIsPlaying [RCBasic Doc] </title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><h2>function ChannelIsPlaying(channel) </h2></p>
|
||||
<p>
|
||||
Returns true if an audio channel is playing
|
||||
</p>
|
||||
<br><p>Related:
|
||||
<a href="channelispaused.html">ChannelIsPaused</a>
|
||||
<a href="playsound.html">PlaySound</a>
|
||||
<a href="playsoundtimed.html">PlaySoundTimed</a>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||