Tuesday, June 9, 2015

Week 17, Day 19: It's Due

Today is the day that this game is due and I feel as though I have learned a great deal about Unity3d in this time. Unfortunately however I was unable to finish this game in the allotted time. I guess I shouldn't have tried to do this with just two people because it turned out to be just too much for us. One of the plus sides is that I've written far more scripts during the process of this than I have written before, so that's cool I guess. But after countless hours of arranging GUI text and game objects, creating 25 scripts and 125 prefabs what can I truly say that I have learned? I've learned that arrays are incredibly important when it comes to doing just about anything in programming and I can't really stress this enough. They are really really important. I've learned that the Unity help fourms are my best friends now because when I don't know what's going on chances are someone on the internet does. I've learned that getting the prefabs to reference variables, in scripts, on game objects in the hierarchy, is one of the most difficult things to do. There wasn't reasoning for that last one, it was just really hard and I still haven't figured that one out. Overall I'm pretty proud of the work that I and my teammate have put into this and I will still continue to work on this over the summer. Don't worry I'll still keep updating this over the summer with the work that I've gotten done, though it won't be as frequent as it has been. Bye bye now!

Friday, June 5, 2015

Week 16, Day 17: Fixing those Reserve Planets


Today was spent mainly fixing the scripts for the reserve planets because there was something off about them. Mainly it was that the ordering for the if statements was off by a line or two. So yeah I restructured my ifs and elses. Also all of the models for the planets are in the game now so that's great! I spent a fair amount of time checking if the references were correct and I also had to switch the models for all of the dark matter planets.

Monday, June 1, 2015

Week 16, Day 16: Reserve List


Today has gone pretty well. I have a script on the three reserve planets that I've created that keeps track of weather it is reserved or not, so that if it is it shows up. If not however it is black so it is invisible against the black background that I have. Once I get the planets up and running I will be able to put the values of the planets into the reserved ones. In this way the reserve planets will act just as real planets and have the same buy action on them. I've also loaded all of the models into the reserve planet script so that they can have the correct model when they are reserved. In many ways this script is similar to the planet info script. Really the only difference is that there are all of the models on this rather than just two. Speaking of similarities I did have to go back and add an isMine variable on the planets and an isTwoColor variable to keep track of if the planets are mines or two colors. This way it is far easier for the reserve planet code to tell if the planets are mines, one color or two.