Giter VIP home page Giter VIP logo

week-9-game-loops-public's Introduction

Week-9-Game-Loops-Public

Slides

https://myuva-my.sharepoint.com/:p:/g/personal/jcb2h_virginia_edu/Eea2dlsI9YVArIEl_MjhcTEBubFVVA0LvlisdzQsfHIk0g?e=AhfJ1f

Level

For all Learning Units EXCEPT Unit 02, the scripts in the Learning Unit (and NOT any scripts outside the Learning Unit) have directions in them and need some kind of fixing.

In Unit 02, no scripts need fixing, but something else needs to be fixed...

Bosses

Bowser

Create a ten by ten cube of cubes (ten cubes wide by ten cubes deep by ten cubes tall), with each cube visible. Have the cubes rotating such that Cube 00 rotates slowly, while Cube 99 rotates quickly, with the other cubes somewhere in between in sequence (slower to faster).

You should not create this by hand, but instead do it programmatically. You will need one additional piece of code we have not covered-- GameObject.Instantiate()

To use this piece of code, you would do the following

[SerializeField] GameObject singleCube; // Drag the cube from your scene into this field as 
// a reference in the Inspector

Start()
{
    GameObject newCube = Instantiate(singleCube); // This will create a new cube
    newCube.transform.position = etc etc etc; // You can now refer to this new cube and do stuff with it. 
}

NOTE: the above is NOT the solution, but will help you figure out the solution.

week-9-game-loops-public's People

Contributors

jasoben avatar edmundchen9 avatar

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.