Mobile BASIC Online Edition Documentation

Tutorials

Tutorial 1 - Getting Started
Tutorial 2 - Variables, Constants, Operators and Expressions
Tutorial 3 - Commands and Built-In Functions
Tutorial 4 - Prompting for Data Input
Tutorial 5 - Branching
Tutorial 6 - Loops
Tutorial 7 - Arrays
Tutorial 8 - String Manipulation
Tutorial 9 - Graphics
Tutorial 10 - I/O Commands
Tutorial 11 - Network Commands
Tutorial 12 - User Defined Functions
Tutorial 13 - Error Handling

Core Commands and Functions

Subroutine Declaration
Function Declaration
Variable Declaration
Expressions and Operators
TRY ... CATCH ... END TRY
IF ... THEN ... ELSEIF ... ELSE ... ENDIF
FOR ... ENDFOR
REPEAT ... UNTIL
WHILE ... ENDWHILE
DO ... LOOP
CALL (Calling Subroutines)
INPUT
PRINT
SLEEP

Type Conversion Functions

BYTE
SHORT
INTEGER
LONG
FLOAT
DOUBLE
STRING

I/O Commands

READRECORD
WRITERECORD
UPDATERECORD
DELETERECORD
DELETEFILE

Network Commands

HTTPGET
HTTPPOST

Mathematical Functions

PI
SQRT
RND

ACOS
ASIN
ATAN
COS
SIN
TAN

ACOSD
ASIND
ATAND
COSD
SIND
TAND

LOG
LOG10
EXP
EXP10

String Functions

LEFT$
MID$
RIGHT$
CHR$
STR$
VAL
LEN

Date and Time Functions

TIME
YEAR
MONTH
DAY
HOUR
MINUTE
SECOND
MILLISECOND

Keyboard Functions

INKEY
FIRE
UP
DOWN
LEFT
RIGHT
GAMEA
GAMEB
GAMEC
GAMED

Graphics Commands and Functions

CLS
COPYAREA
DRAWARC
DRAWLINE
DRAWRECT
DRAWROUNDRECT
DRAWSTRING
FILLARC
FILLRECT
FILLROUNDRECT
PLOT
REPAINT
SCREENHEIGHT
SCREENWIDTH
SETCOLOR
STRINGHEIGHT
STRINGWIDTH

Graphics Elements (GEL) Command and Functions

GELDRAW
GELHEIGHT
GELGRAB
GELLOAD
GELWIDTH

Sprite Graphics Command and Functions

SPRITEGEL
SPRITEMOVE
SPRITEHIT
SPRITEPRIORITY

Map and Tile Commands and Functions

MAPCREATE
MAPCREATE is used to create a Dynamic Map without using the Integrated Map Editor.
MAPLOAD
MAPLOAD is used to load the Map and Tiles created using the Map and Tile Editors.
MAPMOVETO
MAPMOVETO is used to define the top left pixel within the map that will be displayed in the top left of the viewport.
MAPLOADTILE
MAPLOADTILE is used to load an Image into the specified tile.
MAPGETCELL
MAPGETCELL is used to get the current tile number associated with a particular coordinate within the map.
MAPSETCELL
MAPSETCELL is used to set the current tile number associated with a particular coordinate within the map.
MAPNX
MAPNX is used to return the width of the map in tiles.
MAPNY
MAPNY is used to return the height of the map in tiles.
MAPHEIGHT
MAPHEIGHT is used to return the height of the map in pixels.
MAPWIDTH
MAPWIDTH is used to return the width of the map in pixels.
MAPX
MAPX is used to determine which column of the map is associated with a particular position on the screen.
MAPY
MAPY is used to determine which row of the map is associated with a particular position on the screen.
SETVIEWPORT
SETVIEWPORT is used to define the screen area where the map is to be displayed.