Moments of Inertia for Triangles and other Polygons In my previous two articles I discussed collision detection and response between rigid bodies. In order to do proper collision response between rotating objects, we needed to calculate the moment of inertia about
2D Rigid Body Collision Response This is a followup to my previous article regarding collision detection between arbitrary polygons. Today I'll be explaining how to update the linear and angular velocity of these polygons in response to that
2D Parametric Collision Detection Today I'm going to describe a method for detecting collisions between arbitrary polygons in 2D. This is part one of a two-part series, in the next post I will show how to make
Nightcrawlers Game Art Some original game art for my latest project, a survival platformer called Nightcrawlers. More to come!
Gravity Simulation of the Solar System I was curious about how easy this would be to do, so the other day I took the leap and wrote a simple gravity simulator with the Earth and Sun. I googled for
JavaScript Some Simple JavaScript Art I've been seeing this sort of art everywhere, with moving points connected by lines that are more solid the closer the points are to each other. It's fun to watch and seemed like
Verilog Consolite, a Tiny Game Console on an FPGA If you wish to make a game from scratch, you must first invent the universe. Hardware source | Tron source | Circles source | Emulator source | Assembler source | Compiler source For my latest project, I am
JavaScript Spaceship.codes - A Game for Programmers Source code (MIT License) After a few months of development, I'm proud to announce the first release of spaceship.codes! Spaceship.codes is a browser game for programmers, with a built in code
Art Dana Scully in Colored Pencil Click for larger image. In honor of the X-Files premiere tonight, here is my attempt at a portrait of one of my favorite characters — "The Skeptic", aka Special Agent Dana Scully.
Geometry Calculating Centroids of Non-Intersecting Polygons What Is a Centroid? The centroid is a geometric property of a shape, somewhat related to the center of mass. It is the point denoted (x̄, ȳ) that is the average of all
Consolite The Consolite Compiler In my previous post, I created Breakout in my custom assembly language, Consolite Assembly. Writing a game in assembly was a fun challenge, but I am used to writing code at a higher
Game Development Breakout in Assembly Technical details follow, and while I've tried my best to make it interesting and accessible I know that some of you just want to play the game. Here is a link to do
Art Scott Pilgrim in Colored Pencil Click for larger image This is my favorite frame from the Scott Pilgrim comics (originally drawn by Bryan Lee O'Malley). I recently got hold of some art supplies so I figured I'd immortalize
Verilog Tetris in Hardware Using the Nexys 3 board with Spartan 6 FPGA to output Tetris to a VGA display. Source Code | Full Technical Report I'm a computer science student at UCLA, and one of my most
JavaScript Planetary - Circular Platformer Concept Skip to playing the game! In my last post, I dipped my toes in the water with the Phaser game engine by making a simple game of Snake. I enjoyed using Phaser and
JavaScript Snake in JavaScript with the Phaser Game Engine I've been wanting to get back into game programming recently, so I decided to build the classic video game Snake. I chose Snake because it has simple mechanics and I had never programmed