Institute of Computer Science
  1. Courses
  2. 2020/21 fall
  3. Computer Game Development and Design (MTAT.03.263)
ET
Log in

Computer Game Development and Design 2020/21 fall

  • Main
  • Lectures
    • Homework 1
    • Homework 2
    • Homework 3
  • Labs
    • Lab1 Introduction to Unity
    • Lab2 Space Game part 1
    • Lab3 Space Game part 2
    • Lab4 Unity Components
    • Lab5 Project Setup
    • Lab6 Tower Defence
    • Lab7 Tower Defence GUI & Buildings
    • Lab8 Tower Defence Content
    • Lab9 Blender Tree
    • Lab10 Sounds
    • Lab11 Animations
    • Lab12 Level Design
    • Lab13 Editor Extensions
    • Lab14 Lighting
    • Lab15 Procedural Generation
  • Projects
    • Design Document
    • Peer Review
  • Links

Lab 2 & 3 - Introduction to Unity

Watch the lab Video
Extra advice if you are having problems with your homework
Today we will continue with space game. Make sure that you have finished all the steps from previous lab. The deadline for submitting the whole game is before the next lab.

Implement a shoot them up (shmup) style space game. Your game should look similar to the following picture:

Steps:

  1. Add win and lose conditions:
    1. When you lose all your lives, show a “You Lost” text on UI and a button for restarting the level.
    2. When you reach far enough in your level, show a “You Won” text on UI and a button for restarting the level.
    3. Under both of these texts show a smaller text with your score, eg: “Your score: 999”
    4. Add a darker background behind win and lose texts.
  2. Add shield skill:
    1. Make your right mouse button to spawn a shield around your ship that prevents taking damage.
    2. Holding the button down should reduce your energy.
    3. Do not spawn the shield while energy is depleted.
    4. Recharge the energy slowly when the skill is not active.
  3. Add particle effects:
    1. Make enemies and your own ship to spawn particles when destroyed.
    2. Extra: add thruster particles behind your ship.
  4. Add more types of enemies (at least 3 in total), they have to implement the following features:
    1. Make some enemies shooting their own projectiles towards you.
    2. Make some enemies with more complex moving patterns, you can either use a math function like a sine wave, animation curve or even a custom animation.
  5. Add laser beam skill:
    1. Make your left mouse button fire a laser beam.
    2. The laser beam is a line that travels instantly from your ship to the top of the screen. It should not go any further.
    3. Laser beam damages all the enemies in between.
    4. Laser beam also spends energy similar to the shield skill.
  6. Add powerups:
    1. Add at least two types of powerup pellets that can be consumed by touching with your spaceship.
    2. Some ideas about what a powerup can do:
      1. Increases your rate of fire permanently
      2. Adds an extra health
      3. Replenishes energy
      4. Shoots a radial wave of bullets out of your spaceship
  7. Add levels:
    1. Make a copy of your scene and create a more difficult level in it.
    2. After you win a game switch to the second level instead of restarting.
    3. Make the first level about 30 seconds long and not very hard to beat on the first try.
    4. Your first level should have at least 3 types of enemies and 2 types of powerup pellets.
  8. Build your game and test it.

Submission

Submit a compiled version of your game (Windows 64 build). Zip your build folder into a single package and make sure that all the additional files (that were created when building the game) are also included in this package. Don't submit your source code.

6. Lab 2 & 3
Solutions for this task can no longer be submitted.
  • Institute of Computer Science
  • Faculty of Science and Technology
  • University of Tartu
In case of technical problems or questions write to:

Contact the course organizers with the organizational and course content questions.
The proprietary copyrights of educational materials belong to the University of Tartu. The use of educational materials is permitted for the purposes and under the conditions provided for in the copyright law for the free use of a work. When using educational materials, the user is obligated to give credit to the author of the educational materials.
The use of educational materials for other purposes is allowed only with the prior written consent of the University of Tartu.
Terms of use for the Courses environment