Prototypes, mostly

Game side projects and the code behind them, since 2010

Latest posts

All posts →
  • B-Spline Noise

    Java code for generating B-spline noise.

  • Advancing Front Triangulation

    Generating low poly meshes from implicit surfaces: from 2.5D Delaunay via surface nets and dual marching cubes to an advancing front triangulator.

  • Dynamic hard shadows in 2d

    How the shadows in Shadowess are made: light geometries with the shadows carved out, rendered on the GPU. With interactive demos.

  • Shooting at a moving target as3

    Leading a target: solving for the time of impact with the quadratic formula, so a tower can hit a moving enemy. With AS3 code.

  • Random direction in 2d

    Three ways to generate a uniformly random direction in 2D, and one intuitive way that is subtly biased.

  • Simple Shadow Casting in 2D

    Drawing a flashlight-style light cone and casting 2D shadows from walls, with a demo you can walk around in.