Code Samples

Here are some small excerpts of code I have written for various projects. More specific examples are  available by request.

Drain Beam: C++ implementation of a Lua function used in Rev.Eng to invoke the titular weapon’s energy draining technique, firing a beam that steals energy from whatever enemy it strikes.

Granular Synthesis: Reads in a *.bmp file and, using a set of rules considering the RGB values of each pixel, generates a series of grains and uses granular synthesis to generate an output sound file. Written in C++.

Cooking: A simple interface into Nvidia  PhysX’s cooking process, used by a model exporter to export collision meshes for Rev.Eng. Written in C++.

Music: A basic audio engine used in Dance Assassin that  controls the background music, ensuring that the music remains in-sync with the gameplay and can be used to control aspects of game logic.