Day 13: Singleton Game Manager
Today we implemented our game flow using another singleton, the GameManager, to coordinate this journey.
53-353 | Carnegie Mellon University | Entertainment Technology Center
Today we implemented our game flow using another singleton, the GameManager, to coordinate this journey.
In today’s class, we discussed strategies for audio, and covered the Singleton pattern – a very powerful tool (but also a potentially tricky/dangerous one) for organizing our game and exposing our “manager” scripts to the objects in our scene. Tomorrow…
Today we took a closer look at the “parent-child” relationships of game objects, and how we could use this to coordinate our movement by “inheriting” a transform from the parent object.
Today we started out on our new game – “Astral Attackers” – a Space Invaders inspired alien shooter that we will use to illustrate the ways in which the objects in our object-oriented program interact to create gameplay.
Today we put our final touches on our EasyPong game, adding more “juice” to the interactions in order to make our game more entertaining. To do this, we are going to modify our Coroutine to add more “timing” to the…
Today we build out the flow of our game logic – setting up the game, starting a round, identifying a scoring event, and starting the next round. There are many steps to consider and so we visually map them out…
Today we take a look at collisions – when objects bump into one another. These are some of the most commonly used events because so much of our game mechanics depend on whether or not two things have touched. We…
Today we made a better version of our game in a fraction of the time thanks to Unity’s physics engine, and had enough time left over to recreate our paddles using prefab scripts.
In our latest class, we established a rudimentary collision and bouncing system by using a three-step process: To use this, we will run a number of checks and scenarios using the “if/elseif” and “switch” conditional statements.
Next, we discussed principles of animation, and applied some changes to regulate and smooth our motion.