Functions
getPlayerX()
Returns player's x coordinate.
getPlayerY()
Returns player's y coordinate.
clearBlocks()
Clears all blocks.
setGravity(int)
Changes gravity of the player.
enablePlayer()
Enables player's movement.
disablePlayer()
Disables player's movement.
setPlayerX(int)
Changes player's x coordinate.
setPlayerY(int)
Changes player's y coordinate.
isPlayerMoving()
If player is moving returns true.
isPlayerJumping()
If player is jumping returns true.
isPlayerFalling()
If player is falling returns true.
killPlayer()
Kills player.
Text
drawText(int X, int Y, int fontsize, string)
Draws text on screen.
Returns text id.
editText(id, string)
Edits selected text.
deleteText(id)
Deletes selected text.
skipLevel()
Skips current level.
getLevelNumber()
Returns current level number.
jump()
Forces player to jump.
forceRight()
Forces player to move right.
forceLeft()
Forces player to move left.
placeBlock(string Block, int X, int Y)
Places block in selected position ("red","white","star")
Objects
newObject(string Path, int X, int Y)
Creates object with selected image.
Returns object ID.
setObjectX(int ID, int X)
Changes object X position.
setObjectY(int ID, int Y)
Changes object Y position.
deleteObject(int ID)
Deletes object.
setObjectCollision(int ID, int C)
0 - false; 1 = true
Changes object collision.
Last updated
Was this helpful?