Description
Expand using WebGL and JavaScript (but not three.js), and the mathematics package that comes with the textbook, project 1 into a three-dimensional interactive game where now
- The playing field starts as surface of a sphere centered at the origin.
- The player can drag the sphere to rotate to look for bacteria (under interactive control).
- Bacteria grow on the surface of the sphere starting at an arbitrary spot on the surface and growing out uniformly in all directions 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 colored circular patch on the surface of the sphere.
- The game gains points through the delays in the user responding and by any specific bacteria reaching a threshold (for example, a diameter of a 30-degree arc on a great circle of the sphere).
- 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 surface 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.
- Lighting is used. Use GUI control to enable or disable lighting.
Notes:
- A recorded demonstration is required for each team.
- Students may work in teams of up to three.



