THIS IS NOT A GAME!
This is for anyone to base their games on for a quick and easy collision and movement system.
This is a very easy 2d movement and collision engine for PICO-8.
All you need to include collision and movement in a scene is to just write 'engine()' in the update section.
It comes with a sample scene to see how it works.
Features listed here:
- 2d Top-Down Movement
- Collision system
- Camera options to suit your game (static, follow player, smart camera)
- Map Border options
- Easily print text to the center of the screen (when static) or the center of the camera (when following player)
How to implement:
- Copy this file into PICO-8 and edit it
- Remove all content in tab 1 (sample scene content, maybe keep the functions tho)
- When making a scene, type 'engine()' into the update function for that scene
- Configure options using 'centercam(true/false,true/false)' and 'mapborder(true/false)' in either the draw for the scene or the update function for the scene
- It should now work!
All the code is commented to the best of my ability to explain what each thing does.
If you have any questions or queries or bugs to report, please let me know.



@Coko yeah unfortunately :/ It's only supposed to be a basic collision system. I will fix it eventually, just gotta make a workaround.
[Please log in to post a comment]