联系方式

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

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

日期:2021-07-12 11:17

Assignment 1 - Plane Programming

Estimated time: 30 min

Summary

Assignment overview

Use the skills you learned in the driving simulation to fly a plane around obstacles in the

sky. You will have to get the user’s input from the up and down arrows in order to control

the plane’s pitch up and down. You will also have to make the camera follow alongside

the plane so you can keep it in view.

Assignment outcome

1. The plane moves forward at a constant rate

2. The up/down arrows tilt the nose of the plane up and down

3. The camera follows along beside the plane as it flies

Assignment preparation:

● Download from Omnivox at assignment 1 the file: Assignment

1_Pack_VGP233.zip.

● Create a Unity3D project, in your repo folder, with

“Name_LastName_Assignment_1”

● Extract the content of the zip file inside the Assets folder of your project.

● In Unity, access Assets -> Import Package ->Custom Package navigate to

your assets folder and double click on the extracted file:

Assignment_1_Start.unitypackage and a window will open, click on Import.

● Two folders will be created in your assets folder: Assignment_1 and Course

Library

● Open the folder Assignment_1 and double click on the scene

Assignment1_Scene. That is the scene that you should work on.

● If you forgot the outcome shown in class, the folder instructions contain a video

showing how the game should be at the end.

● You can delete the folder Scenes from your project.

WARNING!

When you import the assignment into your project, it is supposed to have bugs.

The purpose of the assignment is for you to fix those bugs, which are listed below.

Good luck!

Bugs to fix (Total 10 points):

1. The plane is going backward. Make the plane go forward. (1 point)

2. The plane is going too fast. Slow the plane down to a manageable

speed. (1 point)

3. The plane is tilting automatically. Make the plane tilt only if the user

presses the up/down arrows. (1 points)

4. The camera is in front of the plane. Reposition it so it’s beside the

plane. (2 points)

5. The camera is not following the plane. Make the camera follow the

plane. (2 points)

6. The plane’s propeller does not spin. Create a script that spins the

plane’s propeller. (2 points)

7. Comment your code properly and get rid of hardcoded values. (1

point)


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