April 15, 2019
Collision detection with QuadTree in 2D games
A quick primer on using QuadTrees as a broad-phase spatial partitioning strategy to reduce collision checks in 2D games, with references for deeper dives and implementations.
Blog
Long-form thoughts on programming, leadership, product design, and more.
April 15, 2019
Collision detection with QuadTree in 2D games
A quick primer on using QuadTrees as a broad-phase spatial partitioning strategy to reduce collision checks in 2D games, with references for deeper dives and implementations.
April 5, 2019
Notes on working with unimelb gitlab
A quick fix for a common GitLab push redirect issue: use the correct remote URL (including `.git`) and remove/re-add `origin` when you’ve set it wrong.
March 26, 2019
Practical HTML5 canvas performance tips for games: reduce draw calls, use dirty rectangles/offscreen canvases, batch paths, avoid expensive state changes, and more.
March 25, 2019
Differences between JS touches variables
A clear explanation of TouchEvent `touches`, `targetTouches`, and `changedTouches`, with practical scenarios for multi-touch and gesture-heavy interactions.
March 24, 2019
Why object pools help smooth performance in GC-heavy JavaScript apps, plus a simple pool implementation and usage pattern suited to games and real-time loops.
March 23, 2019
Setup search functionality for Jekyll
Add client-side search to a Jekyll blog using Simple-Jekyll-Search: generate `search.json`, add input/results markup, and wire up the JS configuration.
March 22, 2019
Setup categories for Jekyll posts and pages
Add categories to a Jekyll site with simple Liquid snippets, plus a categories index page that groups posts and links to per-category archives.
March 20, 2019
Include Jekyll blocks and highlight HTML in Jekyll
A clean way to show Liquid/Jekyll tags as code: wrap snippets with `{% raw %}` to prevent execution, then apply syntax highlighting (even for nested raw tags).
March 19, 2019
Simple word guessing game in JS
A simple JavaScript word guessing game spec: how words are chosen, how letters are hidden, and how scoring and remaining guesses drive the game loop.
March 18, 2019
Implement pagination functionality for Jekyll
How to add pagination to a Jekyll blog with `jekyll-paginate`: configuration, paginate paths, and Liquid templates for navigation and per-page post lists.