player
The player's cube.
player.x
Where the cube is from left to right, in tiles.
player.y
Where the cube is from top to bottom, in tiles.
player.size
How big the cube is drawn (1 as always). What it touches stays its middle.
player.visible
Does the cube show?
player.trail
Does the cube leave its trail of sparkles?
player.crash
Does the cube burst into pieces when it dies?
player.god
God mode: while it is true nothing kills the cube.
player.sensitivity
How far the cube goes for a move of the mouse: 2 twice as far, 0.5 half as far.
player.influence
How much the camera takes the cube along, 0 to 1: at 1 it stays where it is on the screen, at 0 where it is in the level.
player.hurt
An event that happens in the moment the cube touches what kills it. Call player:revive() in it, and the cube lives.
player:revive
player:revive()Saves the cube in the moment it would die (in a function joined to player.hurt). Give it god mode for a while, or it dies the moment after.
player:kill
player:kill()The run fails, right now.
player:teleport
player:teleport(x, y)Puts the cube somewhere else in the level (the mouse goes along).
player:tween
player:tween(properties, seconds?, ease?, direction?)Glides the cube's numbers (its size, its sensitivity, its influence) to new values.