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

  1. Simple walk
  2. Acceleration
  3. Drag
  4. Jumping
  5. Double jump

Bullets

  1. Bullet
  2. Rapidfire
  3. Aiming
  4. Artillery
  5. Trajectory

Spaceship motion

  1. Spaceship
  2. Spaceship with drag
  3. Spaceship with gravity
  4. Lunar lander

Following

  1. Simple follower
  2. Multiple followers
  3. Identical paths
  4. Multiple groups

Homing missiles

  1. Basic missile
  2. Wobble missile
  3. Smoke trails
  4. Exploding missile
  5. Multiple missiles
  6. Flocking

Effects

Raycasting and shadows

  1. Line of sight
  2. Shadows
  3. Optimized shadows
  4. Multiple lights

Lights

  1. Flashlight
  2. Soft edge

Warning: Cannot load module "http" because required module "raphf" is not loaded in Unknown on line 0