Game development: live code examples
5 examples for 1 library. Open one to read how it works, run it in your browser and change it, by hand or with AI.
All 231 examples UI components and icons Utilities Forms, validation and schemas Animation and motion 3D and graphics Web frameworks State and data fetching Markdown, editors and content Files, images and media Styling and CSS Auth and security libraries Charts and data visualisation HTTP clients and networking
Phaser 5 examples · usage and stats
Draw shapes in a Phaser sceneChange the colors or coordinates in create() to redraw the scene.
Arcade physics in PhaserClick anywhere to kick every ball upward again.
Tweens in PhaserAll three tweens start on load and loop; try another ease such as 'Bounce.easeOut'.
Keyboard and pointer input in PhaserClick inside the frame first so it has keyboard focus, then use the arrow keys; every click leaves a fading circle.
Particle effects in PhaserSparks start right away from the bottom centre; move the mouse over the frame to drag the fountain.