Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit


COSC 414 Project 2, 2021W1

“Super Bug Zapper”


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

1. The playing field starts as surface of a sphere centered at the origin.

2. The player can drag the sphere to rotate to look for bacteria (under interactive control).

3. 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.

4. The player needs to eradicate the bacteria by placing the mouse over the bacteria and hitting a button.

5. The effect of the poison administered is to immediately remove the poisoned bacteria.

6. The game can randomly generate up to a fixed number (say 10) of different bacteria (each with a different color).

7. The bacteria appear as a colored circular patch on the surface of the sphere.

8. 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).

9. 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%).

1. The effect of the poison administered also propagates outward from the point of insertion of the position until all the bacteria are destroyed.

2. When two bacteria cultures collide, the first one to appear on the surface dominates and consumes the later generated bacteria.

3. When a bacterial culture is hit, use a simple 2D particle system to simulate an explosion at the point where the poison is administered.

4. Lighting is used. Use GUI control to enable or disable lighting.


Notes:

1. A recorded demonstration is required for each team.

2. Students may work in teams of up to three.


Electronic submission of source code and documentation will be through Canvas:

1. Submit ONE compressed file (.zip only).

2. This .zip file should contain all your source files plus the files specified in 3 below and the files should be correctly placed so that the program runs from a browser.

3. Include in your submission two .doc (or .docx or .pdf) files: one for a user guide and one for a gallery of screen captures (with at most a 3-line explanation of each image). The screen captures should be complete and illustrate all aspects of the project requirements sufficient for marking needs.