Download presentation
Presentation is loading. Please wait.
Published byJonas Lucas Modified over 8 years ago
1
Moving to First Person Scalable Game Design Susan Miller University of Colorado - Boulder
2
Imagine a Skier? How many degrees in a circle? What does it mean to ‘Do a 180’? What does it mean to do a 360? What would it look like to ‘do a 90’? If I ‘do a 180’, does it matter which direction I start in? How can I be certain that we will all end up going the same direction?
3
Bird’s Eye View
4
First Person View
5
Open Frogger, Click on your Frog, View from First Person What do you see??? Play the game… What happens? Why does that happen? What changes should be made?
6
Let’s try this out… Create a new game called ‘first person’ Create a new agent named Ladybug and choose the Akako shape. Create an agent called ground Create four wall agents N W S E
7
Check out first person view Select the Ladybug with the big arrow key, then click on the camera to switch to first person. Use the Rotate, pan and zoom tools to adjust the camera so that it is looking over the top of the agent’s head, as if the agent were wearing a head- mounted GoPro camera.
8
Questions Describe what the Ladybug is doing. Will the Ladybug will be able to move easily through the maze in Pacman in first person? How could we make the Ladybug’s movements more realistic? Look at the list of basic actions to see whether there is anything useful there.
9
Try out your ideas… Consider… Rotate by Rotate to Figure out how each command works
10
What did you learn? Rotate by Rotate to How to set degrees What are we still missing?
11
Modulo 139 mod 6 = 1
12
Let’s try a few more 540 mod 360 = ? 720 mod 360 = ? 5 mod 3 = ?
13
Student Handout: Connecting Ladybug Movement to Modulo Math Page 17 of the Teacher Manual
14
Sample Problem
15
Let’s do one together
16
Using the Mod Operation in AgentCubes To use the mod operation, we would write: Direction%360 if we want the remainder when we divide the direction by 360. Talk with a partner. How does this change your ideas about creating rules for first person navigation?
17
Investigating existing code Page 27 of the Teacher Manual
18
Add this code to your project. What do you think this line of code will do? Why do you think it’s the first line of code? Is there any code that would go before this?
19
Add this code as a new method for your ladybug. Why is the key rule different than the others? The symbol “%” is the symbol for Modulo. What math is being done here?
20
Add this code to your ladybug as a new method. Describe what’s happening here.
21
Add this code to your ladybug as a new method. Why is this code needed when I create a new ladybug agent?
22
Change your arrow keys to match this code. Remember, this is in the ‘While Running’ method. Why is this needed? Hint: It would only be active code if the FIRST PERSON NAVIGATION rule is FALSE.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.