Code Monkey home page Code Monkey logo

g4quiz2's Introduction

Introduction

Welcome to quiz 4! This time you will recreate iconic:

                         (_)                   | |              
 ___ _ __   __ _  ___ ___ _ _ ____   ____ _  __| | ___ _ __ ___ 
/ __| '_ \ / _` |/ __/ _ \ | '_ \ \ / / _` |/ _` |/ _ \ '__/ __|
\__ \ |_) | (_| | (_|  __/ | | | \ V / (_| | (_| |  __/ |  \__ \
|___/ .__/ \__,_|\___\___|_|_| |_|\_/ \__,_|\__,_|\___|_|  |___/
    | |                                                         
    |_|                                                         

The finished version will look a bit like following (the framerate is lower due to use of animated gif):

Invaders

Instructions

  1. Download zip from the following url: https://github.com/tomitrescak/g4quiz2/archive/master.zip

  2. Unzip the file and open in Unity.

  3. Unity will possibly ask you to switch target to Windows. please do so.

  4. Let the project compile, make sure there are no errors.

  5. Open Scenes/Quiz 2/Quiz scene

Tasks

We have already prepared quite a lot of functionality for you. You will only need to fill the gaps. Following is a set of five exercises that you need to complete:

  1. Create full rows of invaders. Make sure the spacing is not random. Make it look nice.

  2. Make the player move left and right. You do not need to use physics to move the player. You can rely on translate.

  3. Make the player shoot lasers. We have already prepared a prefab for a laser for you. You can find it in Prefabs folder (Player Laser). Create laser at the location of the "Player Laser Spawn Point" gameobject (it is a child of the "Player" gameobject)

  4. Make the enemy move. Enemy should move left and right and once it reaches the side of the screen you should move it down one row. You can achieve this behaviour moving right certain amount of time, left certain amount of time and then down. Be smart where you put the Playmaker FSM. Do you really need to control each enemy separately?

  5. Make the enemy shoot lasers. We have already prepared a prefab for a laser for you. You can find it in Prefabs folder (Enemy Laser). Create laser at the location of the enemy. Make sure you shoot only one laser at a time!. Otherwise it would be a mayhem! You can use the functionality of "Get Random Child".

  6. Player laser currently does not destroy enemies. Check out the implementation of the player laser and fill in the missing functionality.

  7. Increase the score when you hit the enemy. We already prepared global variables for you. As a BONUS, the score should be nicely formatted as: 00005.

g4quiz2's People

Contributors

tomitrescak avatar

Watchers

James Cloos avatar  avatar Dean Preston avatar

g4quiz2's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.