Zombie Game (Canvas JS)
A browser-based zombie survival game using a canvas-style render loop. I focused on smooth controls, collisions, and a responsive gameplay loop.
Code example
function step(dt) {
player.update(dt);
zombies.forEach(z => z.update(dt));
handleCollisions(player, zombies);
render();
}
requestAnimationFrame((t) => step(t - lastT));
Process
- Sketch gameplay loop + entity responsibilities
- Implement movement + hitboxes
- Tune collision feel (speed, push-back, response)
- Polish render and UI feedback
Photos (click)