Must get back into this

Been a while again. That other course really helped me with blogging, i guess it was a good way to end a day.

For the last Two weeks I’ve been working on the same game and learning about using Unity and C#. After the last post i worked on making the Heads Up Display actually change depending on values. The most important things i learned of this is to use static variables in order to access them from different scripts and also to use the GameObject.Find() function. Gameobject.Find() is used to get a game object and in extension the variables and methods included with them. The downside is that the function searches through every object and can therefore be bad for performance. 

The last week I’ve been working on a menu system for the game. What we decided to do was to keep the menus and the game in the same Scene in the Unity project. We keep track of what “screen” the game is currently on using a Enum and an integer. this allows us to only start rolling the level when the “screen” is set to the right number and by putting a check in the update function for the game we can also exit to theoretically anywhere from anywhere. We had arguments about whether to change between scenes or stay in one but eventually decided to stay in one scene for simplicity’s sake. 

The picture shows my current Lobby screen which will be where the player selects a song (Theme will probably be removed). There is also generation from music in the game but on another computer as of right now.

Image

This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

Leave a comment