GameTech

04 March 2014

GameTech | 04 March 14

  • Getting started with Kodu
  • Moving the camera
  • Adding a character
  • Programming a character to move

Kodu

On desktop:

Kodu Game Lab

Kodu: Sample level

New World

Open a 'NEW WORLD' from home menu

Tools: MOVE CAMERA


  • The symbols at the bottom
    of the window are you Tools:
    Home, Play, etc.
  • The hand symbol (3rd from the
    left) is the 
    Move Camera tool

    Using MOVE CAMERA

    • Left click + move mouse
      > drag camera around
    • Right click + move mouse
      > move camera's view
      (Orbit Camera feature)
    • Spin mouse's scroll wheel
      > zoom in/zoom out

    Kodu's Mascots

    Kodu & Rover

    Tools: OBJECT

    Add & Edit a Character


    • The tool with Kodu's head
      (4th from left; next to MOVE
      CAMERA) is the OBJECT tool
    • You can use OBJECT to add
      characters, items, and 'decor-
      ations' (trees, rocks, castles)

    Using OBJECTs

    • Click OBJECT
    • Select a character: Kodu and Rover
      are on the first pie menu; there are more
      on the second: Jet, Sub, Cycle, Saucer
      (UFO), Octopus, Cannon...
    • Pick whichever character you like
    • Click in the space where you want
      your object (your character) to appear

    Editing your OBJECT

    Change its colour

    • Hover your mouse over your object
      so that it is slightly 'glowing' 
    • Click L/R (left or right) on your arrow keys
      to change its colour
    • So go ahead and change its colour

    Editing your OBJECT

    Change its size

    • Hover your mouse over your  object
      so that it is slightly 'glowing'

    • Right click with your mouse
    • Do you see this menu:
      Program, Change Settings,
      Cut, Copy, Change Size , Rotate,
      Change Height
    • Drag the Size bar till it's the size you want

    Programming: OBJECTS

    • But the OBJECTS don't do anything yet!
      And you want them to do something!


    Here's how you program your character:

    • Make sure the PROGRAM tool is active 
    • Right-click your OBJECT (a.k.a. your character)
    • Select PROGRAM...

    When... Do...

    • Conditional logic:
      When... Do... === If... then...
    • This is about cause & effect.
    • Some examples:
      • IF it's raining outside, THEN...
      • IF the pitcher throws an easy pitch, THEN...
      • IF you press the jump button, THEN...
      • IF you jump on the boss's head 3 times, THEN...
      • IF you run out of lives, THEN...

    PROGRAM

    When you PROGRAM, you are writing
    the 'rules' of your game

    • WHEN my character's health reaches 0,
      what does he DO?
    • WHEN my character reaches the goal,
      what does he DO?
    • WHEN my character is hit by a shot,
      what does he DO?

    Programming

    • The + sign means you can add tiles
    • The pencil shows which box is currently selected


    Making your character move:

    • Click KEYBOARD
    • Select ARROWS or WASD
    • How to delete tiles you don't want:
      Add a third tile in the row;
      right-click it

    When...

    • What will your character DO
      WHEN you use your keyboard
    • Click your first DO + sign
    • Which one do you think will
      make your character MOVE?

    Programming OBJECT
    to MOVE

    • Step 1: 
    • Step 2:
    • Step 3: 

    Test it out

    • Click the PLAY tool! Which

    one do you think that is?


    Next week

    • Building on our levels (our SPACES)
    • Adding background OBJECTS (ASSETS)
    • Building on programming:
    • Make our character shoot
    • Make shots destroy objects & enemies
    • Adding a SCORING SYSTEM
    • Making a 2 player versus mode

    ESBGC-GT 2014 03 04

    By Samuel Allemang

    ESBGC-GT 2014 03 04

    • 5,355