Was able to integrate with Twitch using a unity script. This allows us to now read chat in a stream of our choosing to look for certain messages. The messages are read in and can be parsed by name message and if there message contains a ? it's determined to be a command for our game. This sets up the foundation for twitch integration and gives us the power to integrate commands to do anything we want in the game.
Worked on the overall Game Manager this week. The game manager is now able to handle these strings called messages. Messages consist of a manager, action and then arguments. The messages get interpreted by the game manager and call the respective manager the message refers too. This allows you to interact with the code without knowing how to code.
Worked on the building generator script. It takes in an array of prefab objects that are building pieces and places them together. It also takes in a roof and a texture that will be placed on the finished object.
Worked on updating the building generator script to create a prefab instead of just instantiating the objects given to it. I was unable to compelete it this week. I had some difficulty with creating a prefab through a script. Will have to look more into this next week.
Worked on completing the level creator which includes the building generator. Was able to accomplish it just a few changes to the ui of it will need to be made in the future.
Worked on being able to rotate objects in the level builder. Was able to get rotation to work by saving a new texture file called rotationTexture and reading that in. Whenever you rotate an object in the scene it will draw a pixel on the rotationTexture according to the degrees.
Took a break from the level builder and worked on Golden Deliveries and the catch up mechanic. We don't want the game to feel pointless to play if you are far behind so there is now 2 ways to come back. First is the golden deliver which is an order worth a very large sum and then there's a hidden comeback mechanic inside the game manager that will aid the losing player based on how far behind they are. This could be by spawning deliveries near them or even spawning easy deliveries near them with increased profits.
Started working on updating what prefabs you can place while using the level builder. This week was more updaing the UI and skeleton code for being able to adjust parameters such as starting height and size of the new prefabs.
Finished working on the level builder ui for adding prefabs that aren't just buildings. You can now create levels with parkour elements as well and more.
Worked on a script to take the texture files from the updated level builder and have them generate a level with the actual player in the scene.