Chapter 5 - PowerPoint PPT Presentation

1 / 31
About This Presentation
Title:

Chapter 5

Description:

5 Collision Theory and Logic Use game design software to create a playable video game. Integrate animated objects into a video game. Create sound and music effects in ... – PowerPoint PPT presentation

Number of Views:79
Avg rating:3.0/5.0
Slides: 32
Provided by: Mike4175
Category:
Tags: bowling | chapter | game

less

Transcript and Presenter's Notes

Title: Chapter 5


1
(No Transcript)
2
5
  • Collision Theory and Logic

3
  • Use game design software to create a playable
    video game.
  • Integrate animated objects into a video game.
  • Create sound and music effects in a video game.
  • Debug a video game.
  • Describe basic computer logic.
  • Build applied mathematics logic statements.
  • List features of object oriented programming.

4
Basic Logic
  • Action-reaction relationship
  • Condition and event or cause and effect
  • IFTHEN is the most basic logic statement
  • IF I drop a book, THEN it will make a noise

5
Game Logic Example
  • IF the go-cart collides with the banana peel,
  • THEN the go-cart spins out

6
User Interface Example
7
Advanced Logic Statements
  • AND, OR, ELSE operators allow multiple actions or
    reactions
  • Multiple IF conditions
  • Multiple THEN operations

8
Advanced Logic Statements
  • IF the dart collides with the balloon,
  • THEN destroy the balloon
  • AND create an explosion animation
  • AND add 100 points to the players score

9
Advanced Logic Statements
  • IF the dart collides with a yellow balloon
  • AND
  • IF the yellow balloon overlaps any other balloon
  • THEN

10
Advanced Logic Statements
  • IF the number of darts is greater than 0
  • THEN load one dart in the hand
  • ELSE display the message Game Over

11
Logic Statements Feature
  • A grasshopper jumps on a piece of food and the
    player earns 100 points

grasshopper
food
  • IF __________ collides with _____,

100 points
  • THEN add _________ to score

12
Logic Statements Feature
  • A grasshopper jumps on a lily pad and does not
    fall into the water

grasshopper
lily pad
  • IF __________ collides with ________,

movement
  • THEN _________ stops.

13
Logic Statements Feature
  • A grasshopper runs into a mushroom and falls into
    the water

grasshopper
mushroom
  • IF __________ collides with __________,

grasshopper
  • THEN ___________ movement falls

player
  • AND ______ loses one life.

14
Logic Statements Feature
  • A grasshopper runs into a four-leaf clover and
    earns 50 points and an extra life

grasshopper collides with four-leaf clover
  • IF __________________________________,

add 50 points to score
  • THEN ___________________,

add one life to player
  • AND __________________

15
Logic Statements Feature
  • The player achieves 10,000 points and earns an
    extra life

player score
10,000
  • IF ___________ equals ________,

one
lives
  • THEN add _____ to the number of remaining _____

16
Collision Theory
  • Collision is the most useful condition
  • Interactivity between game objects
  • IF the coyote collides with the black spot, THEN
    the coyote falls
  • The black spot acts like a hole

17
Collision Theory
  • Collision statement glitch
  • Spiko should sink in water
  • Blue water image should act like water

18
Collision Theory Feature
  • Think about the collisions in bowling
  • List all of the actions and reactions you can
    think of in the game
  • Write each collision as a logic statement with
    IF, THEN, AND, OR, or ELSE operators

19
Relative Location
  • Based on position of another game object
  • Example an explosion placed relative to a popped
    balloon
  • Relative coordinate is (0,0)

20
The Games Factory 2
  • Game engine developed by Clickteam
  • Object-oriented programming
  • Very easy to use
  • Drag-and-drop user interface
  • Consists of several views or modules
  • Frame editor
  • Event editor
  • Storyboard editor

21
The Games Factory 2 Frame Editor
  • Used for scene design and layout

22
The Games Factory 2 Frame Editor
  • Library window
  • Standard tree-type organization
  • Drag-and-drop objects onto the game frame

23
The Games Factory 2 Frame Editor
  • Properties window
  • Contains various properties of selected object
  • Changing properties alters the object function

24
The Games Factory 2 Event Editor View
  • Events are programmed interactions
  • Conditions are the IF side of a logic statement
  • Reactions are THEN side of logic statement
  • Check marks (ticks) store reactions

25
  • What relationship is used by game programmers to
    create a game environment that the player can
    control?

Action-reaction relationship
26
  • What is a condition in game programming?

An action that causes something to happen.
27
  • What is an event in game programming?

The change that occurs when a condition is met.
28
  • What is the most basic logic statement?

An IFTHEN statement
29
  • Write a logic statement for this situation when
    the dog eats the cookie, the player receives 100
    points and earns an extra life

IF the dog eats a cookie, THEN add 100 to the
player score AND add one to the number of player
lives.
30
  • Modify the previous logic statement to include
    sound in the game for the event

IF the dog eats a cookie, THEN add 100 to the
player score AND add one to the number of player
lives AND play a sound.
31
  • The Games Factory 2 is an object-oriented
    programming engine. How are the properties of an
    object changed?

The Properties window in The Games Factory 2
contains the properties for a selected object and
is where those properties are changed.
32
  • Action-reaction relationship
  • How an action causes something to change or
    react.
  • Cause and effect
  • Relationship between what has happened making
    something change or react.
  • Collision
  • Condition that occurs when an object touches
    another object.
  • Collision statement
  • Logic statement with a condition of two or more
    objects colliding.

33
  • Condition
  • Term for the IF side of a programming line for a
    video game.
  • Event
  • Term for the THEN side of a programming line for
    a video game.
  • Interactivity
  • How one object behaves in relation to the objects
    around it.
  • Logic statement
  • IF and THEN programming to determine an
    action/reaction relationship in a game.
Write a Comment
User Comments (0)
About PowerShow.com