Sketches
The example source code is licensed under the terms of the MIT License. Art assets in the examples are licensed under the Creative Commons Attribution license (CC BY 3.0).
Examples borrowed, and re-written in processing.js, from: http://gamemechanicexplorer.com/
Assets: "Game Mechanic Explorer Assets" by John Watson is licensed under CC BY 3.0
http://gamemechanicexplorer.com/assets.zip
Mechanics
Walking and Jumping
- Simple walk
- Acceleration
- Drag
- Jumping
- Double jump
Bullets
- Bullet
- Rapidfire
- Aiming
- Artillery
- Trajectory
Spaceship motion
- Spaceship
- Spaceship with drag
- Spaceship with gravity
- Lunar lander
Following
- Simple follower
- Multiple followers
- Identical paths
- Multiple groups
Homing missiles
- Basic missile
- Wobble missile
- Smoke trails
- Exploding missile
- Multiple missiles
- Flocking
Effects
Raycasting and shadows
- Line of sight
- Shadows
- Optimized shadows
- Multiple lights
Lights
- Flashlight
- Soft edge