联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp

您当前位置:首页 >> Java编程Java编程

日期:2019-05-07 11:13

You will develop a space shooting game as the final (A5) assignment of this course.

Please watch the demo carefully. A basic framework has been provided with all the

artwork needed, such as models, textures, audio clips and prefabs. You need to complete

the scripts and configure the objects. In each script, comments are added as a guideline.

There are seven scripts included in the package. You need to finish the first six:

1. Player: control the player ship, attach to the player object

2. Enemy: control the enemy ship, attach to the enemy ship prefab

3. Collision: define the collision of asteroids and enemy ship, attach to each of them

4. Asteroid: control the asteroids, attach to each asteroid prefab

5. GameManager: define the game logics, attach to the main camera

6. Boundary: destroy everything that enters the boundary trigger

7. Background: control the space background, already finished and attached

Game behaviors:

1. Asteroids: three kinds of asteroids (rocks) are provided in the package as prefab. You

do not need to change the art of them.

a) Created at the top side of the window periodically

b) Move vertically at constant speed; speed varies for different asteroids

c) Explode when hit by the bolts fired by player ship

d) Nothing happens when colliding with another asteroid or the enemy ship

2. Enemy ship: two kinds of enemy ship are provided as prefabs. You do not need to

change the art of them

a) Created at the top side periodically

b) Move BOTH vertically and horizontally

c) Fire vertically at a fixed speed

d) Explode when hit by the bolts fired by player ship

e) Nothing happens when colliding with another enemy ship or asteroids

3. Player ship

a) You need to drag the player prefab into the scene, set y = 0

b) Moves as keys (AWSD) pressed

c) Fires upward when left mouse button pressed

d) Explode when colliding with an asteroid or enemy ship

e) Explode when hit by bolts fired by an enemy ship

f) A specific score is earned when shooting down an asteroid or enemy ship ( for

example 5 for an asteroid and 10 for the enemy ship)

g) A life is cost when shot or collided (totally 3 lives)

4. All objects stay within the windows area, destroyed if outside. You need to create a

trigger object at the bottom of the camera window, similar as in A4. Objects are

destroyed if hitting this trigger

5. Particle system and audio effect are applied for all explosion and shooting events

6. A few GUIText objects should be created in the scene and linked to the variables in

scripts, to indicate the score and game state

7. Game is won when 100 score is warned; lost if all 3 lives are gone; In the state of

“won” or “lost”, game is paused and can be restarted when “R” key is pressed;

8. Your game is supposed to run exactly the same way as the demo game

Marking Scheme (150 total):

1. Three kinds of asteroids and one enemy ship are created

2. Asteroids move downward with self rotation

3. Asteroids explode when shot

4. The enemy ship moves correctly

5. The enemy ship fires periodically

6. Enemy ship explodes when shot

7. Player ship moves correctly by user’s input

8. Player ship fires correctly when left mouse button pressed

9. Player ship explodes when shot or collided

10. Objects do not move outside of the left & right boundary

11. Objects are destroyed if going beyond the bottom boundary

12. GUI displays to indicate current score and game state

13. The game is won or lost when conditioned reached, pauses and restarts correctly

14. All scripts are composed and applied properly (no errors, attach only once, etc)

15. Game runs smooth and the submission is complete

Note : “Explode” means the correct particle system and audio clips are applied

Extra features (Optional, 10 points):

Construct another level (a new scene file) with similar behaviors but with more difficulty.

Optional features to choose:

1. Asteroids and enemy ship are created at a shorter period of time

2. Asteroids and enemy ship move faster

3. New enemy ship with more deadly shots (one shot for two life?)

4. Higher score requirement

5. It takes multiple shots to shoot down an asteroid or enemy ship

Submission

1. Explain in a txt file if you did some extra feature

2. Compiled game and the data folder, exported package of the whole project


版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。 站长地图

python代写
微信客服:codinghelp