Tuesday 16 October 2012

MDDN 243, Project 3, Winning/Losing the game + Level select

For our game the way to win the game is to make all of the appliances which are in the room to have more than 75% of there charge. We thought of the idea to making it have to be 100% but it couldn't work because of each of the appliances losing power every 3 seconds. We also thought of the idea that if a charge were to get to 100% then it would stay at 100% and you would win when all of the appliances are at 100% but then we thought against it because it wouldn't be to challenging.





So I have made a scene behavior for winning and losing the game and have attached it to the 3 levels. What I have done is that if appliance 1 = 75 or more, and appliance 2 = 75% or more, and etc etc, then it would go to a new scene which would let you know that you have won the level.


For the lose screen I have made it that if appliance 1 = 0, or appliance 2 = 0, etc etc, than it would go to another new screen which will be the lose screen. Telling you that you need to redo the level. Each level has a different losing screen that has each of the different appliances on it. James has made these.


For the Scene select we have made it that it is a door way which has 3 doors in it with each of them opening to the level.
In the scene screen there are regions just infront of each of the doors and once the character is in them the image of the door will change to an open door.
As you can see if the code for win screen there is an attribute called Level 1 completed and Level 2 completed. They originally start as false so if you want to enter the next room you have to complete the previous room to be able to go into the next one.


No comments:

Post a Comment