ryedin/MojoJojo — reverse-engineered prompt
Reverse engineered prompt
I want a small JavaScript game engine aimed at Palm webOS, using the HTML5 canvas for simple 2D games. Keep it lightweight and organized, more like a clean foundation than a huge framework. It should have a basic game loop, a central game object, entities you can create and update, a simple event system, and support for switching between game states like loading, menu, playing, and paused. A few general language or utility helpers would be nice too if they make the core cleaner.
Please make it feel usable for someone building an arcade style canvas game on webOS, with clear class names and namespaces, and enough structure that it is easy to extend later. Since this looks like an early skeleton project, focus on getting the architecture and core behavior right rather than packing in lots of features. If it helps, include a tiny demo or sample scene that shows the loop, entity updates, drawing, and state changes working. You can look up old webOS canvas details online if you need to.
Want more depth? Deep Reverse