Nitin Duseja
Résumé
Case 09 · 2024 Free Web App · Private Source

GameForge

High-performance browser gaming platform & custom 60fps canvas engine

Year
2024
Role
Game Engine Architect & Lead Engineer
Team
Independent Web Platform
Duration
Ongoing
Launch GameForge Web Platform

The problem

What was being asked

Context

Modern browser gaming often suffers from sluggish web performance, intrusive ad clutter, mandatory paywalls, and heavy third-party engine bundles that fail offline. Players demand instantaneous, responsive gameplay without friction.

The solution

What was built

Slip 1

Engineered GameForge as a 100% free and open-to-play web platform with private engine source code, built with Astro and vanilla TypeScript

Slip 2

Architected a decoupled 60 FPS HTML5 Canvas rendering engine separating pure game rule simulations from rendering loops

Slip 3

Delivered an installable Progressive Web App (PWA) with complete offline-first caching for zero-latency gameplay anywhere

Slip 4

Implemented games like 'Chain Reaction' with recursive cascade resolution logic and responsive multi-touch input support

The architecture

How it holds together

Decoupled Game Loop & Simulation Core

Framework-agnostic simulation core executing mathematical board state evaluations independently of the RAF rendering cycle for deterministic frame pacing.

Offline-First Service Worker Cache

Custom Workbox precaching layer storing core game binaries, canvas assets, and audio sprites locally for instantaneous offline loading.

Key Metrics & Impact

Demonstrated Results

Challenges

The parts that tried to break it

Recursive critical-mass explosion logic

Recursive cell bursts in Chain Reaction risked call-stack overflow on large grid layouts. Resolved using an iterative breadth-first queue with microsecond yield timers.

Responsive viewport canvas scaling

Handling diverse device aspect ratios without blurry DPI scaling was addressed by dynamically querying window.devicePixelRatio and auto-resizing the backbuffer.

Decisions

Calls somebody owns

Vanilla Canvas over heavy game frameworks

Opted for native Canvas 2D rather than heavy Phaser or PixiJS bundles to maintain a sub-50KB bundle size and instantaneous initial load.

Free public access with private source

Provided 100% unrestricted public access to all games on the web while keeping the core game engine repository private.

Learning carried forward

A great web application removes every possible friction point between the user and their enjoyment. Zero sign-up gates, instant loads, and responsive tactile controls create lasting engagement.