Bacteria is a game where you play as a bacteria infecting the blood stream. Dodge white blood cells as you attempt to reach the brain. Move the head of the bacteria to move around while your tail anchors you down. Switch which end is the head and tail in order to move around. If you aren't moving the head, it will be swept up by the blood stream and slide to the right.
Program Features:
Inverse Kinematics and hierarchical modeling:
Using Google's Ceres Solver, was able to use inverse kinematics for the movement of the bacteria. Ceres tries to move the head (the end you are currently moving) to a new point determined by WASD. Each link in the bacteria was hierarchically modeled, and Ceres adjusted the angle each link was to its parent to best reach the new point.
Particles:
The background and enemies are made of particles. The background particles represent blood moving in the blood stream, while the white ones represent white blood cells attacking you.
Object Collision:
Each of the links that make up the bacteria has a non-axis aligned bounding box that collides with the bounding sphere of the white blood cells.
Controls:
W: Move the head upwards
S: Move the head downwards
A: Move the head to the left
D: Move the head to the right
SPACE BAR: Toggle which end is the head
P: toggles a harder difficulty where the bacteria is always moved to the right. This causes the player to need to rush to the left.
Model and Textures:
Link model: link.obj came from a former lab and was provided by professor Sueda
Metal Texture: metal_texture_15_by_wojtar_stock.jpg came from a former lab and was provided by professor Sueda
Alpha texture: alpha.jpg came from a former lab and was provided by professor Sueda
There are other pictures I was going to test as alpha textures, but they aren't used.