Presentation is loading. Please wait.

Presentation is loading. Please wait.

Susan Ibach | Technical Evangelist Sage Franch | Technical Evangelist.

Similar presentations


Presentation on theme: "Susan Ibach | Technical Evangelist Sage Franch | Technical Evangelist."— Presentation transcript:

1 Susan Ibach | Technical Evangelist Sage Franch | Technical Evangelist

2 Different obstacles can have different effects Score bonus points Earn an extra life Grow or shrink Speed up the game Game over

3 Change up your game play to make it more engaging

4 Different obstacles can have different effects

5 Score bonus points

6 Maybe hitting the other droid earns you bonus points 515

7 Add an if statement to determine which obstacle was hit Check the picture property of the obstacle Why do I need this line of code? Write the code to take the desired action when you hit that obstacle Move the default collision logic to the else statement

8 DEMO Adding points when you hit a specific obstacle

9 Earn a bonus life

10 Maybe a lightning strike gives you an extra life

11 We can add an additional condition to check if we hit the storm cloud

12 Be careful with the nested if statements!

13 DEMO Adding a life when you hit an obstacle

14 Grow or Shrink

15 Maybe the spaceship shoots a shrink ray

16 Change the width of the robot

17 But now if I hit a second spaceship nothing happens because I am already smaller

18 You could make the robot smaller and smaller each time Get the current size of the robot Divide current width by two Set robot to half current size

19 DEMO Making the hero smaller and smaller with each hit

20 Speed up the game

21 Maybe hitting the magnet speeds up the game

22 DEMO Speeding up the game

23 Game over

24 Maybe hitting the tomato means GAME OVER GAME OVER

25 DEMO Game over!

26 Add more obstacles Add more effects The only limit is your imagination!

27 Your challenge Add a power up to your game!

28 Congratulations your game just got more exciting

29 ©2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.


Download ppt "Susan Ibach | Technical Evangelist Sage Franch | Technical Evangelist."

Similar presentations


Ads by Google