unit 2 kodu and transformations -...

72
UNIT 2 – KODU AND TRANSFORMATIONS

Upload: vancong

Post on 05-Jun-2018

226 views

Category:

Documents


0 download

TRANSCRIPT

UNIT 2 – KODU AND TRANSFORMATIONS

DAY 1

I can

….make an object move, make objects interact

with each other, and track settings of an

object in Kodu.

KODU!

Object Oriented – you individually program each OBJECT

3D

Minimal coding (visual)

Somewhat limited

GET STARTED!

Computer Science Folder Green “Kodu Lab”

A short video will start the first time you log in

WELCOME SCREEN

New World = new project

Load World = continue working on previous project

NEW PROGRAM

OBJECTS

To add an object:

Click/Highlight object tool in menu bar

Click anywhere on your green game area

Select the object you would like to add

Will automatically add object

CHANGE COLOR

Hover over the object and use the arrow keys to select desired color!

CODE THE OBJECT!

Right click on the object

Select “Program”

CODE THE OBJECT!

Kodu programs as a combination of “when – do” statements

Computer constantly “checking” to see if these conditions are being met and if the code should run

Press “ESC” to return to game “view” mode

CODE THE OBJECT!

“+” mean you can add additional instructions

Also try Limit movement

Changing speed

CODE THE OBJECT!

Add a Kodu Object

Add an apple

Objects interact: Program Kodu to eat apple

CODE THE OBJECT!

Keeping Score

Game End

CODE THE OBJECT!

Change Settings of Individual Kodus!

CODE THE OBJECT!

EXPERIMENT!

JOURNAL:

Date: September 3rd, 2015

Prompt: Describe 2 things you learned today as you experimented in Kodu.

DAY 2

I can

….explain the mathematics behind

transformations used to move objects in

game design.

MOVING OBJECTS

Discuss with a partner:

How do you think object “movement” occurs in game design?Brainstorm ideas of ways we could “keep track” of what direction to move our object and of our objects current location.

TRANSFORMATIONS

Think of how we keep track of objects in an x-y plane

TRANSFORMATIONS

What if we applied the following transformation to all points in the plan?

(x + 4, y – 5)

Recall how to label these points in Geometry???

TRANSFORMATIONS

It gaming – all objects must be tracked with an (x,y) location

In 2D – generally starts with (o,0) in upper left…but it can vary

X increases as object moves right

Y increases as object moves down

X increases(0,0)

Y

increase

s

START WITH 2D

Write “pseudo code” for a program that would work like “Super Mario” He should be able to move right, left, jump up, and fall down

EXTENSION QUESTIONS

How could we make your character move faster?

How could we make our character move slower?

How can we guarantee our character will fall back down the “earth” after he jumps up?

2D

3D

Now think about 3 dimensions…we need to account for moving Forward and backwards

Right and left

Up and down

Discuss with your partner – ideas on how we can do this?

X-Y-Z PLANE

Cut out and tape

Place your pencil eraser at (3, 2, 1)

At (2, 1, 3)

At (1, 3, -2)

X-Y-Z PLANE MATHEMATICS

Say you had the shape with the following coordinates:

A(5, 3, -8) B(-4, 1, 0) C(-5, 0, -3)

1st transformation: (x + 4, y – 3, z + 2)

2nd transformation: (x +2, y + 5, z – 3)

NOW TRY 3D

Write “pseudo code” for a program that would work like in Kodu He should be able to move right, left, forward, backwards, jump up,

jump down

MATHEMATICAL APPLICATION

Translations in 2D and 3D worksheet

JOURNAL:

Date: September ??rd, 2015

Prompt: What mathematical concept is applied to the movement of objects in game design? Discuss this concept in detail (provide an example if it will add clarity).

DAY 3

I can

….alter the terrain, create a computer automated

character, and start actions automatically

at the start of a game.

TERRAIN

To add terrain-

Select the paint brush

Choose the terrain type

Choose the terrain shape

Left click mouse where desired

To delete terrain-

Right Click mouse where desired

SETTINGS

Upper Left hand corner once selected shows you how to maneuver and change the terrain!

ELEVATIONS AND DEPRESSIONS

You can also elevate and depress the terrain using additional tools to the RIGHT of the paint brush.

Hills/Valleys

Smoothen Out

Spikes

Water

CREATE YOUR OWN RACE TRACK!

Suggestions on what to include: For now – do not make the race track “circular” (want clear beginning

and end)

Draw a line in one color for the starting line

Draw a line in another color for the finishing line

COMPUTER ANIMATED PATH

Use the Path Tool to create the “path” you want your computer to follow

You may use colors to distinguish different paths

PROGRAM

Put no instructions in then “when” section if you want the kodu to follow instructions from the beginning of the program

CREATE A RACING GAME

Create a racing game where YOU race the COMPUTER

You should have a clear start and finish line

Your computer should follow a path designed by you using nodes

Your game should stop when someone crosses the finish line and display if the player won/lost

JOURNAL:

Date: September ??rd, 2015

Prompt: What was the most challenging part of Kodu today?

DAY 4

I can

….add shooting, colors, a health bar, sound, and

emotion to enhance my Kodu game.

SHOOTING GAMES

There are many additions you can make that will spice up any Kodu game

Add the ability to shoot different pieces of ammo

Add expression

Add speech

HEALTH BAR

You can show hit points a user has received as well as change the amount of hit points a player can take

Missiles = 50 pts

Blips = 5 pts

CREATE A SHOOTING GAME BETWEEN 2 PLAYERS

You will need to use on keyboard for this game….so pay close attention to how you program each Kodu

You should include Shooting

Emotions

Sounds

An “end” to the game – at some point there should be a winner! Its up to you if you want to keep score or use another way to track of who wins.

JOURNAL:

Date: September ??rd, 2015

Prompt: Given the time you’ve had to experiment in Kodu and given the constraints of Kodu – brainstorm and describe at least 1 (you may do more) game you would like to create in Kodu.

DAY 5

I can

….create a game proposal and design a detailed

game in Kodu.

TRANSFORMATIONS QUIZ

KODU GAME

STORY BOARD!!With a partner you are going to brainstorm ideas for a game in

Kodu.

You will spend all of today STORYBOARDING on a whiteboard.

Be detailed: think through what tiles may be helpful, what concepts you may have to research, what objects you are going to need.

JOURNAL:

Date: September ??rd, 2015

Prompt: Briefly summarize the game you are going to create with your partner (what did you storyboard today!?)

DAY 6

I can

….create a game proposal and design a detailed

game in Kodu.

KODU GAME

Work Day

Design and begin coding your Kodu Project

JOURNAL:

Date: September ??rd, 2015

Prompt: What challenges did you encounter today as you began coding your game? How did you overcome these challenges?

DAY 7

I can

….create a game proposal and design a detailed

game in Kodu.

KODU GAME

Mini Presentations

Time to get some feedback on your game!!!

JOURNAL:

Date: September ??rd, 2015

Prompt: Reflect on your meeting with another game design group. What were some of the positive things the group said about your game? What were some of the suggestions that offered you to improve your game?

DAY 8

I can

….create a game proposal and design a detailed

game in Kodu.

KODU GAME

Work Day

Continue coding – use the suggestions yesterday as a guide.

JOURNAL:

Date: September ??rd, 2015

Prompt: How is your game coming along? If you are still working – what needs to be finished? If you are completed –what additions could you add onto your game tomorrow to make it better?

DAY 9

I can

….create a game proposal and design a detailed

game in Kodu.

KODU GAME

Work Day

Design and begin coding your Kodu Project

JOURNAL:

Date: September ??rd, 2015

Prompt: What are the 4 components are game design? Briefly how these 4 components appeared/made an impact on your Kodu game.

DAY 10

I can

….create a game proposal and design a detailed

game in Kodu.

KODU GAME

Presentations

And

Unit 1 and 2 Test