Use this however you like!
button 4: jump
button 5: reset
gaccel is gravity acceleration, not key :3 sorry my comment moved somehow
Here is a little addition with the key!
if you want to make a coyote time feature change line 93 to this:
- if (player.y > jumpbuffer + 2) then
Some ideas for beginners to implement:
-
Ensure the key and door are reachable, at least approximately so (like with simple distance constraint).
-
When player reaches door, increment score and generate a new level. Reset score on death.
-
Implement weird tiles like a bounce pad, an insta-kill platform for the player to avoid, a tile that prohibits the player from jumping, etc.
-
Start with more tiles. As player accumulates score, spawn fewer tiles or more random special tiles.
-
Every 3 or 5 points, the player earns a free level skip. This also gives the player an escape latch for impossible levels.
- To give the game some lipstick, create noncollidable grass/background sprites to place in the tile above each collidable tile to make it look more like floating islands of land or something.
It doesn't take much to make a fun little time-burner game. It's mostly a matter of getting surprisingly small details to feel right.
[Please log in to post a comment]