You can support the development on the Github Sponsors page.


Tech > PLATFORM ENGINE


Platform Engine to quickly start making a side scrolling platform game
made by Morokiane
uploaded by morokiane
added:
updated:
download cartridge
- CLICK TO PLAY -

6


The goal of Platform Engine is help quickly build and setup a side-scrolling platformer by having the most common mechanics setup; in an easy and extensive way. Enabling a programmer or designer to worry more about graphics and level design. The code is commented with how it is used/implemented to help make changes easier. It is best used for 16x16 sprites for the player, though with some changes to the collision variables it could be made to use 8x8.
Code includes:
A player that can move, jump, duck, and crawl.
Easy to adjust player collision detection.
Collectibles.
Sample enemies that damage the player.
Sample mouse code
Camera code for different scenarios (may break enemy placement)
State machine for title and gameplay screens
Win and none win conditions
--Update 1
Added multiple screens for Y
Improved collision detection
--Update 2
Added title screen with function as variable state machine
Added profpatonildo's extended print function
--Update 2.1
Bug fix on enemy collision not registering
--Update 2.2
Added a crawl mechanic to go through tight spaces. Press down to duck then move left or right.
Added screen shake when taking damage
--Update 3.0
Added Win condition and screen (collect all of the coins)
Added Game Over when the player runs out of hearts.

Comments


profpatonildo

Great job! This will be very useful!
However, the player isn't getting damaged by the enemies on this version. I know this worked on a previous version, so perhaps something was broken in the last update?
On another note, I'm glad the extended print was useful :D I have just released yesterday an animated sprite system you might want to integrate into this project.
Keep up the good work!

morokiane

Thanks for letting me know. That bug has been fixed.

profpatonildo

Nice!


Post comment