Menu

Demos

jododo

Demos in the demo folder. The following list is ordered by difficulty with the simplest demo first (from the demo writing perspecitve):

  • keyboarddemo
  • scrollingdemo
  • animationdemo
  • animationdemo2
  • collisiondemo
  • aidemo

keyboarddemo
Visualize keyboard input. Demonstrates that the engine forwards the last direction key event to the game as if just one direction key was pressed at a time. This allows for easy key press release processing and solves the problem where the user holds down more than one key at a time, a situation that typically happens in intermediate phases, for example, during fast key press release press ... sequences.

scrollingdemo
Vertical and horizontal scrolling for a tile based game. Demonstrates how tiles are loaded from a sprite sheet to compose a simple scrollable world. The world and the scrolling, however, is implemented in the game not in the engine.

animationdemo
Throw a rotating axe. Demonstrates sprite animation.

animationdemo2
Pumpkins, rolling and bouncing, with horizontal scrolling. Demonstrates sprite animation together with scrolling.

collisiondemo
Throw an axe at stationary obstacles. Demonstrates collision detection and collision response.

aidemo
Throw an axe at a target which trys to evade the approaching axe. Demonstrates a very simple AI.


Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.