Reference no: EM132263877
Advanced Graphics Assignment - Using Physics, Ray casting and Texture to create a simple game
Objective for this assignment:
- To be able to setup threejs environment to use physijs.
- To use physiji objects
- Do all the assigned problems on your own.
The workflow for all of the labs in this will comprise of the following:
1. Create an appropriate folder structure for VS Code.
2. Add the necessary javascript libraries to the html page
3. Code the required javascript statements to complete the lab is a separate javascript file.
Tasks: Build a threejs game having:
3-D rectangular block stacked on a table when a block is clicked it is removed from the game provide an interface to change aspects of the game.
A game (position, size and color of each block) is described by an external json file.
Although a orbit controller is not necessary for the game playing, you might find it useful during application development.
A scene with different sizes and colors of blocks on a surface. (Red, blue and yellow).
A scene where a single block that disappears when clicked.
A scene of stacked blocks on a surface, where the higher blocks falls when the lower ones are clicked. You will have to remove the blocks that fall off the table.
Block configurations (which is actually a game) must be read from an external json file (minimum five files/games). These files should be read from the folder ../assets/games. Use the convention «firstname[1..5].json» for your block configurations.
Record and display score as the game is played. You decide how points are awarded
Detect end of game (either a win or loss). You decide what condition will result in a win or a loss.
Start a new game without restarting the application.
Your own innovation such as changing the allotted time, gravity, friction or restitution while the game is being played.
Attachment:- Assignment File.rar