• No results found

ActionScript 3 and Game Design

N/A
N/A
Protected

Academic year: 2021

Share "ActionScript 3 and Game Design"

Copied!
92
0
0

Loading.... (view fulltext now)

Full text

(1)

game

design

initiative

at cornell university

the

game

design

initiative

at cornell university

the

ActionScript 3

and Game Design

(2)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Promise

Get you up to speed on Flash

Tell you about an interesting experiment

Teach basics of game design

Introduction

2

(3)

Outline

Updates

Flash / ActionScript 3

What is a game?

How do we brainstorm?

What makes a game fun?

(4)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Outline

Updates

Flash / ActionScript 3

What is a game?

How do we brainstorm?

What makes a game fun?

Upcoming assignments

Introduction

4

(5)

Update

Groups are still being formed, will be done by tomorrow

afternoon

I’m aware of room size problems

Assignment 1 was due yesterday

Send ASAP

Assignment 2 is due Tuesday at 11:59pm

Separate tasks for programmers and designers

Project Pitches on Thursday

(6)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Welcome newcomers!

Please do Assignment 1 ASAP

Introduction

6

(7)

Outline

Updates

Flash / ActionScript 3

What is a game?

How do we brainstorm?

What makes a game fun?

(8)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Before starting…

Download the

debug player

of Flash

Allows the IDE to link to the Flash player

Set breakpoints

Monitor variable values

View console output

If this is not on the Phillips 318 machines, let me know

Getting this to work in Chrome requires an extra step

Avoid mxml

Flash Builder 4: Create new “ActionScript Project”

Flash Develop: Create new “AS3 Project”

Introduction

8

(9)

Classes

public

class

MyClass

{

}

Only one class per file!

(10)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Inheritance

public

class

MyClass

extends

OtherClass

{

}

Introduction

10

(11)

Sprites

import

flash.display.Sprite;

public

class

MyClass

extends

Sprite

{

(12)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Constructors

import

flash.display.Sprite;

public

class

MyClass

extends

Sprite

{

public

function

MyClass()

{

}

}

Introduction

12

(13)

Packages

package

mygame

{

import

flash.display.Sprite;

public

class

MyClass

extends

Sprite

{

public

function

MyClass()

{

}

}

(14)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Hello World! (finally)

package

mygame

{

import

flash.display.Sprite;

public

class

MyClass

extends

Sprite

{

public

function

MyClass()

{

trace(“hello world!”);

}

}

}

Introduction

14

(15)

Variables

(16)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Functions

var

a:int = 0;

function

addOne(input:int):

int

{

return input + 1;

}

Introduction

16

(17)

Member Variables

package

mygame

{

import

flash.display.Sprite;

public

class

MyClass

extends

Sprite

{

private

var

a:int;

public

function

MyClass()

{

}

}

(18)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Class Functions

package

mygame

{

import

flash.display.Sprite;

public

class

MyClass

extends

Sprite

{

public

function

MyClass()

{

trace(addOne(2));

}

public

function

addOne(input:int):

int

{

return input + 1;

}

}

}

Introduction

18

(19)

The Stage

MyClass

(20)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Adding Children

package

mygame

{

import

flash.display.Sprite;

public

class

MyClass

extends

Sprite

{

public

function

MyClass()

{

var

myChildClass:Sprite =

new

Sprite();

addChild(myChildClass);

}

}

}

Introduction

20

(21)

Moving Sprites

package mygame

{

import flash.display.Sprite;

public

class

MyClass

extends

Sprite

{

// inherits x, y

public

function

MyClass()

{

}

public

function

move()

{

(22)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Event Listeners

package mygame

{

import flash.display.Sprite;

public

class

MyClass

extends

Sprite

{

public

function

MyClass()

{

addEventListener(MouseEvent.MOUSE_CLICK, click)

}

public

function

click(event:MouseEvent):void

{

// do something

}

}

}

Introduction

22

(23)

Removing Event Listeners

package mygame

{

import flash.display.Sprite;

public

class

MyClass

extends

Sprite

{

public

function

MyClass()

{

addEventListener(MouseEvent.MOUSE_CLICK, click)

}

public

function

click(event:MouseEvent):void

{

removeEventListener(MouseEvent.MOUSE_CLICK, click)

(24)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Embedding Assets

package

mygame

{

import

flash.display.Sprite;

[Embed(source='image.png')]

private

var

background:Class;

public

class

MyClass

extends

Sprite

{

public

function

MyClass()

{

var

image:Bitmap =

new

background();

addChild(image);

}

}

}

Introduction

24

(25)

Summary

Flash is pretty easy

(26)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

So you want to make a game…

What is a game?

Introduction

26

(27)

Outline

Updates

Flash / ActionScript 3

What is a game?

How do we brainstorm?

What makes a game fun?

(28)

game

design

initiative

at cornell university the

Nature of Games

28

What is a Game?

Hopscotch Rules

Each player has a unique marker

Toss marker from starting line

Marker hits squares in sequence

Progress to next square each turn

Hop through squares and back

Skip over square with marker

Hop on one foot

Except for side-by-side squares

If fail, repeat at next turn

(29)

What is a Game?

Rules

Players take turns

Spin the number wheel

Move that many spaces

When land on space…

Ladders take you up

Chutes take you down

(30)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

What is a Game?

Nature of Games

30

(31)

Group Activity

What is a game?

What features must games have?

(32)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Some perspectives

Introduction

32

(33)

a

closed, formal system

that engages players in

structured conflict

and

resolves its

uncertainty

in an

unequal outcome

(34)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

a series of

interesting

decisions

(GDC 2012)

Introduction

34

Sid Meier

(35)

a form of

interactive

entertainmen

t

where

players

must overcome

challenges

,

by taking

actions that are governed

by

rules

,

in order to meet

a

victory condition

(

Fundamentals of Game

Ernest Adams

(36)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

a

system

in which

players

engage in

artificial conflict

,

defined by

rules

,

that

results in a

quantifiable

outcome

(

Rules of Play

)

Introduction

36

(37)

Common Threads

Players

Challenges

Rules

(38)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

How to design a game

1.

Think really hard

2.

Make the game

Introduction

38

(39)

How to think really hard

Brainstorm!

(40)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Outline

Updates

Flash / ActionScript 3

What is a game?

How do we brainstorm?

What makes a game fun?

Upcoming assignments

Introduction

40

(41)

Brainstorming Technique

Focus

Limit the amount of time

(30 minutes max)

Appoint a scribe who will write down ideas

Positive phase

Only write down new ideas!

Don’t criticize any suggestion.

Negative phase

Discuss each idea and reject as a group

Repeat if necessary

(42)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Science of Brainstorming

Introduction

42

(43)

Scenario 1

(44)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Meeting Room

Scenario 1: Share One

Introduction

44

Design

Final

Design

Design

Final

Design

(45)

Scenario 2

Design 1

Design 2

Design 3

Design 1

Design 2

Design 3

Best

Design

Best

Design

(46)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Meeting Room

Scenario 2: Share Best

Introduction

46

Best

Design

Best

Design

Final

Design

Final

Design

(47)

Scenario 3

Design 1

Design 2

Design 3

Design 1

Design 2

Design 3

(48)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Scenario 3

Introduction

48

Design 1

Design 2

Design 3

Design 1

Design 2

Design 3

(49)

Meeting Room

Scenario 3: Share Multiple

Design 1

Design 2

Design 3

Design 1

Design 2

Design 3

Final

Design

Final

Design

(50)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Producing fewer designs

Can spend more time per design

After the first design, subsequent

designs may not be that different

Producing more designs

Can search the space of

possibilities

First idea is not always the best

Introduction

50

(51)

Sharing fewer designs

Meeting time is more focused

Easier to reach consensus

Sharing more designs

Exposed to more possibilities

Can play off each other’s ideas

(52)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Share One

Share Multiple

Introduction

52

Which did the best?

(53)

Which did the best?

0

200

400

600

800

1000

1200

(54)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

What does this mean for you?

Take the time to think

Don’t just accept the first idea

Come up with

multiple ideas

and bring them to the

group

Your ideas are valuable even if they aren’t used

Introduction

54

(55)

Go play games!

Can’t design games without understanding them

(56)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Outline

Updates

Flash / ActionScript 3

What is a game?

How do we brainstorm?

What makes a game fun?

Upcoming assignments

Introduction

56

(57)

Group Activity

What makes a game fun?

(58)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

What makes a game

fun

?

No one really knows

“Folk Psychology” of Game Design

Introduction

58

(59)
(60)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Flow

Skill

Chall

enge

Anxiety

Boredom

(61)

Flow

Chall

enge

Anxiety

(62)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Flow

Skill

Chall

enge

Anxiety

Boredom

(63)

Flow

Chall

enge

Anxiety

(64)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Flow

Time

Chall

enge

Anxiety

Boredom

Boss Fight

(65)
(66)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Zone of Proximal Development

can do now

can do with guidance

can’t do yet

(67)

Casual vs. Core

Core gamers

play lots of games

Almost always to finish games they play

Want hard games; will tolerate frustration

Casual gamers

play for enjoyment

Will stop when the game stops being fun

Challenges must be reasonable

(68)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Play length

You are competing with

Other games

Cat videos

Chores

Work

Game must be fun within 30 seconds

Casual games can still have sophisticated gameplay

Example: Plants vs. Zombies

Introduction

68

(69)

Reminder: Aspects of a Game

Players

: How do humans affect the game?

Goals

: What is the player trying to do?

Rules

: How can the player achieve the goal?

(70)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Formal Design Elements

Players

:

Player Mode Sketches

Goals

:

Objectives

Rules

:

Actions

and

Interactions

Challenges

:

Obstacles

and

Opponents

Design Elements

70

(71)

Player Mode Sketches

Game may have several

player modes

Ways in which player interacts with a game

Example: Inventory screen vs. combat screen

You should

storyboard

all of your modes

Sketches of each of the major player modes

May have action (like movie storyboard)

(72)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Lifted

: Player Mode Sketch

Design Elements

72

Indicating

Action

(73)
(74)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Diagramming Action

Design Elements

74

(75)

Objectives

Anything a player might strive for

May be a

primary

game objective

Progressing the story

“Completing” the game

May be an

auxiliary

game objective

Side missions/quests

Unusual achievements

(76)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Be careful with this

Introduction

76

(77)
(78)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Actions

Verbs that describe what the player can do

Walk

Run

Jump

Shoot

Does not need to be attached to an avatar

Build

Swap

Rotate

Design Elements

78

(79)

Designing Actions

Starts with brainstorming the

verbs

Define the types of verbs

Define the scope of the verbs

Design Goals

Enough verbs to avoid being too simple

But not so much to be confusing (verb bloat)

Do the verbs

directly

achieve the goal?

(80)

game

design

initiative

at cornell university the

How do verbs, goals relate?

Imagine there no challenges

What verbs

must

you have?

Example

: Platformers

Goal

: reach exit location

Only need movement verbs

Killing enemies is

optional

Other actions are

secondary

Design Goal

: Primary only

Secondary verbs lead to bloat

Add features with interactions

Primary Actions

Design Elements

80

(81)

Not a

direct

action of player

Outcome of the

game state

Can happen without controller

Example

: collisions

Accidental or player forced

May be bad (

take damage

)

May be good (

gain power-up

)

Other Examples

:

Spatial proximity

(82)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Game Mechanics

Game mechanic

Relationship between verbs and interactions

Often call this relationship the “rules”

Gameplay

is manifestation of these rules

Design Elements

82

(83)

Obstacles

Prevent progress towards goal

Have to be “overcome”

Opponents

Players or bots with their own goals

May or may not need to be overcome

Dilemmas

Can only perform one of several actions

(84)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

What are the challenges?

Introduction

84

(85)
(86)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

A note on story

Nature of Games

86

(87)
(88)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Story can be great…

But you should prioritize game mechanics

Introduction

88

(89)

Summary

Decide what the player is getting better at

(90)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Coming soon:

Pong / Asset Creation due Tuesday!

Project Pitches next Thursday in class

Paper Prototypes the following Tuesday

I will talk more about this next Tuesday

Introduction

90

(91)

Project Pitches

Next Thursday in class

Information posted as Assignment 3

5 minute pitch:

The main idea

Why will this be fun

The core mechanics

(92)

game

design

initiative

at cornell university the

game

design

initiative

at cornell university the

Outline

Updates

Flash / ActionScript 3

What is a game?

How do we brainstorm?

What makes a game fun?

Upcoming assignments

Introduction

92

References

Related documents

MULTICULTURAL/ ANTI–RACIST EDUCATION MEDIA EDUCATION CONTEMPORARY ART PRACTICE DIGITAL ART PRACTICE TECHNOLOGY STUDIES: – HAAS – BLAKE & STANDISH

remain flat, indicating that atoms do not yet have the thermal energy required to diffuse up step-features and form large three-dimensional features. At high temperatures, large

The QFD users were asked to fill out the questionnaire (importance of the requirements and customer satisfaction) for the software packages they are using.. Moreover the planning of

immigration as primarily involving Mexican nationals is likely to influence U.S.-born residents’ perceptions of Latino immigrants, even if host citizens’ local immigrant population

The present study attempts to examine farmers perceptions on the impacts of climate variability; risk coping mechanisms and barriers for adopting adaptation strategies

I am currently enrolled on the Level 3 City and Guilds Certificate in Photography, at Idea Store Learning, Shadwell Centre. I have found the level of technical ability and

classroom practice also reflected that there are language text books in schools that talk to the activities that are to be performed by learners in order to implement both

This report has been prepared independently of the company analysed by Close Brothers Seydler Research AG and/ or its cooperation partners and the analyst(s) mentioned on the