🏠
home
❔
about
📂
examples
✎
tutorial
📖
reference
💾
download
😸
GitHub
💬
forums
♯
chat
allegro.js
examples
exhello.js!
Hello World! in allegro.js. This example initialises graphics and displays a centred 'Hello World!' message in the middle of display. It only takes 4 lines to do all that, so check it out!
exbmp.js
Bitmap loading and blitting. This example loads a bitmap from files and displays it stretched on screen once it has loaded. It requires whooping six lines of code to make it happen.
exbounce.js
Motion, collision and sound. This example displays a ball bouncing across the screen making a sound every time it bounces.
exgame.js
Example game. This example is a simple game of picking up apples from the ground. Each apple gives you a point.
Bonus stuff
stress.js
allegro.js stress test. You wouldn't believe how many sprites you can display on your machine at 60 fps. Note that the performance may vary across browsers.
unittest.js
allegro.js unit test. You should not learn from this, it is used to make sure that everything inside allegro.js works fine and consistently across all browsers.