Demos
Each of these demos showcases a small concept or feature of engo
, or even a more sizable sample game. They have been sorted into categories below.
Conceptual
Learn how entities are represented and what they do.
Run engo
without a graphical display. Useful for servers and testing.
Run some code, just before the window is actually closed (whenever the user presses the close button, for example).
Graphics
Render and display a single sprite.
Have multiple animations.
Hide sprites.
Use the camera features to create zooming in/out effects.
A simple sample game
Add HUD elements to your games. Learn about priorities.
It demonstrates how one can efficiently draw various shapes in solid colors (with/without border).
It demonstrates how one can manipulate the scale, by using a very simple custom System.
It demonstrates how one can create a rotating Entity.
It demonstrates how one can efficiently draw text onto the screen.
It demonstrates how one can use multiple Scenes, and switch between them.
It demonstrates how one can move the camera gradually, instead of instantaneously.
Audio
Play music and sounds on different events.
Scroll by using mouse movement.
Scroll using the keyboard.
Use the mouse to scroll in and out. (zooming)
It demonstrates how one can rotate the camera, using the middle mouse button.
Games
Engo implementation of the original pong game
Demonstrates basic keyboard input
It demonstrates how one can move the camera round, by pressing WASD.
Demonstrates basic mouse input
Move a sprite using the mouse
Tiled
It demonstrates how one can load and render a TMX file created from the TileMap Editor