Description
Using WebGL and JavaScript (but not three.js), and the mathematics package that comes with the textbook, develop a two-dimensional interactive game with the following features:
- The playing field starts as a circular disk centered at the origin.
- The player views the disk from above.
- Bacteria grow on the circumference of the disk starting at an arbitrary spot on the circumference and growing out uniformly in each direction from that spot at a speed determined by the game.
- The player needs to eradicate the bacteria by placing the mouse over the bacteria and hitting a button.
- The effect of the poison administered is to immediately remove the poisoned bacteria.
- The game can randomly generate up to a fixed number (say 10) of different bacteria (each with a different color).
- The bacteria appear as a crust on the circumference of the disk.
- The game gains points through the delays in the user responding and by any specific bacteria reaching a threshold (for example, a 30-degree arc).
- The player wins if all bacteria are poisoned before any two different bacteria reach the threshold mentioned above.
A well-developed implementation for the above will earn a grade of 80%. To get higher grade, two of the following should be completed in addition (each feature successfully completed adds 10%).
- The effect of the poison administered also propagates outward from the point of insertion of the position until all the bacteria are destroyed.
- When two bacteria cultures collide, the first one to appear on the circumference dominates and consumes the later generated bacteria.
- When a bacterial culture is hit, use a simple 2D particle system to simulate an explosion at the point where the poison is administered.
Notes:
- A class demonstration is required for each game.
- Students may work in teams of up to three



