ActionScript 3 and Game Design



Similar documents
the gamedesigninitiative at cornell university Lecture 5 Rules and Mechanics

Game Design. Aspects of Game Design CMPUT 299

Game Design Document and Production Timeline. John Laird and Sugih Jamin University of Michigan

game development documentation game development documentation: concept document

[Name of the game] Game Design Document. Created by [Name of the team]:

RATIONALE FOR ADVENTURE TAKEAWAYS FOR CUB SCOUTS. Webelos Handbook, page 416 ADVENTURE REQUIREMENTS

Understanding your ENGAGE Results

Kathy Au Billy Yi Fan Zhou Department of Electrical and Computer Engineering University of Toronto { kathy.au, billy.zhou }@utoronto.

ROOT OF PLAY GAME DESIGN FOR DIGITAL HUMANISTS

IMGD The Game Development Process: Fun and Games

Lab Rat. Prototype Productions. Tech: Sean Halloran sjhalloran Art: Shane Stenson sjstenson Tech: Lindsay O Donnell lrodonnell

OCR LEVEL 3 CAMBRIDGE TECHNICAL

Kids College Computer Game Programming Exploring Small Basic and Procedural Programming

When you and your students are saving your files, under the File menu of MovieMaker, save your file as a project rather than a movie:

Video Games and Education Syllabus MSTU Jessica Hammer

Game Programming & Game Design

Mobile App Design Project #1 Java Boot Camp: Design Model for Chutes and Ladders Board Game

What are Your Favorite Lies?

Ludology. Ludology: Psychology of fun. Remembering from last time. Thinking like a gamer

Elastic Grid Best Practices

Definitions of Games and Play Magic Circle Rules as Limitations and Affordances

Game Design. Fundamental theory. Fundamental theory

ACADEMY OF INTERACTIVE

Techniques and Strategies for Data-driven design in Game Development. Scott Shumaker Outrage Games

Chapter 6: Project Planning & Production

Steal From the Casino! Roulette Sniper

BINGO TRAINING. Last Updated August 2014

Practice Ideas Rookie / Junior Mosquito

Sample Webinar Sequence

2IOE0 Interactive Intelligent Systems

Basic Guide for Video Games production

Real Motivation for Real Change

Borrowing & Saving: Week 1

Game Development Fundamentals

Intro to Human Centered Service Design Thinking

THE 20-MINUTE PPC WORK WEEK MAKING THE MOST OF YOUR PPC ACCOUNT IN MINIMAL TIME

PLANNING A BUDGET. Income, needs vs. wants, budgets, simple interest, savings accounts, paying yourself first

Developing an Artificial Intelligence Engine

I Wanna Rock Music VIdeo Workshop

March Madness Week. Day 1 3/12. Day 2 3/13. Day 3 3/14. Day 4 3/15. Day 5 3/16. Hello Teachers and Staff,

Peggy Southerland Coordinator, Animation Department Regent University

OCR LEVEL 3 CAMBRIDGE TECHNICAL

3D Anatomical Models, Adobe Flash Animation and Online Communities

Bergen Community College - Information Technology Course Syllabus

How to Complete the Online Course Work for an Entry Level Clinic

Lecture 2: Game Design

not think the same. So, the consumer, at the end, is the one that decides if a game is fun or not. Whether a game is a good game.

Web Tools and Techniques for E-Learning

The Game Development Process. Slides: largely based on Mark Claypool (WPI, USA) course on game development

The other day I played a typing game on popcap.com I got really far and did really well, and there came a point where I got bored.

University of Toronto TEFL Online

afraid aggravated anxious confident scared secure stressed

Tabletop Hopscotch Learn about online safety with this fun game

Guide for Students Introduction to Journalism

Week 6 Week 5 Week 4 Week 3 Week 2 Week 1. Monday Tuesday Wednesday Thursday Friday Saturday

SuperViz: An Interactive Visualization of Super-Peer P2P Network

Key Performance Indicators

The Definitive Guide to Mobile Monetization

Adaptation of Rapid Prototyping Model for Serious Games Development

Three Hot Tactical War Room Strategies That Will Explode Your Sales

How to Use Easyhits4U

In 2 Hockey Leadership Course Planning and Delivery Guidance

Chapter 1 Basic Introduction to Computers. Discovering Computers Your Interactive Guide to the Digital World

How to Host Your Murder Mystery Party. General instructions for hosting your murder mystery party game from Host-Party.com

Preproduction in the Game Development Process

Intro to the Art of Computer Science

Data in Head Start and. Early Head Start:

Unit in brief. Unit introduction. Learning aims. Level: 1 Unit type: Sector (Digital Media) Guided learning hours: 40

CI 437: Educational Game Design

Vol. 1-6 (09/03/2003) by Nicholas Yee. (

Hypercosm. Studio.

Visit salonbooker.com or Call

F O C U S Challenge? Reaction? Insight? Action Chapter Seven Engaging, Listening, and Note Taking in Class

FACT A computer CANNOT pick numbers completely at random!

Grid Computing for Artificial Intelligence

What are the critical factors that measure the success of capital projects?

BOSTON UNIVERSITY Course Syllabus: DESIGN THINKING FOR MULTIPLATFORM MARKETING

Club Manual. Coaching and Games Development in the Club.

Before you do anything else listen to this voxer message!

How to Build a Simple Pac-Man Game

Fruit Machine. Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code

GAME MASTERS: THE GAME Resource Kit

Transcription:

Lecture 2: ActionScript 3 and Game Design

Promise Get you up to speed on Flash Tell you about an interesting experiment Teach basics of game design 2

Outline Updates Flash / ActionScript 3 What is a game? How do we brainstorm? What makes a game fun? Upcoming assignments 3

Outline Updates Flash / ActionScript 3 What is a game? How do we brainstorm? What makes a game fun? Upcoming assignments 4

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 Each group will present ir idea I will talk about this later today 5

Welcome newcomers! Please do Assignment 1 ASAP 6

Outline Updates Flash / ActionScript 3 What is a game? How do we brainstorm? What makes a game fun? Upcoming assignments 7

Before starting Download debug player of Flash Allows IDE to link to Flash player Set breakpoints Monitor variable values View console output If this is not on 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 8

Classes public class MyClass { } Only one class per file! Class name must match file name 9

Inheritance public class MyClass extends OrClass { } 10

import flash.display.sprite; Sprites public class MyClass extends Sprite { } 11

import flash.display.sprite; Constructors public class MyClass extends Sprite { public function MyClass() { } } 12

Packages package mygame { import flash.display.sprite; } public class MyClass extends Sprite { public function MyClass() { } } 13

Hello World! (finally) package mygame { import flash.display.sprite; } public class MyClass extends Sprite { public function MyClass() { trace( hello world! ); } } 14

Variables var a:int = 0; 15

Functions var a:int = 0; function addone(input:int):int { return input + 1; } 16

Member Variables package mygame { import flash.display.sprite; public class MyClass extends Sprite { private var a:int; } } public function MyClass() { } 17

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; } 18

The Stage MyChildClass MyClass 19

Adding Children package mygame { import flash.display.sprite; } public class MyClass extends Sprite { public function MyClass() { var mychildclass:sprite = new Sprite(); addchild(mychildclass); } } 20

package mygame { import flash.display.sprite; Moving Sprites public class MyClass extends Sprite { // inherits x, y public function MyClass() { } } } public function move() { x = 100; } 21

package mygame { import flash.display.sprite; Event Listeners public class MyClass extends Sprite { public function MyClass() { addeventlistener(mouseevent.mouse_click, click) } } } public function click(event:mouseevent):void { // do something } 22

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) } 23

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); } } 24

Summary Flash is pretty easy However, some peculiarities 25

So you want to make a game What is a game? 26

Outline Updates Flash / ActionScript 3 What is a game? How do we brainstorm? What makes a game fun? Upcoming assignments 27

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 28 Nature of Games

What is a Game? Rules Players take turns Spin number wheel Move that many spaces When land on space Ladders take you up Chutes take you down First one to 100 wins! 29 Nature of Games

What is a Game? 30 Nature of Games

Group Activity What is a game? What features must games have? What features can y not have? 31

Some perspectives 32

Tracy Fullerton a closed, formal system that engages players in structured conflict and resolves its uncertainty in an unequal outcome (Game Design Workshop) 33

Sid Meier a series of interesting decisions (GDC 2012) 34

Ernest Adams a form of interactive entertainment where players must overcome challenges, by taking actions that are governed by rules, in order to meet a victory condition (Fundamentals of Game Design) 35

Karen Salen and Eric Zimmerman a system in which players engage in artificial conflict, defined by rules, that results in a quantifiable outcome (Rules of Play) 36

Common Threads Players Challenges Rules Goals 37

1. Think really hard 2. Make game How to design a game 38

How to think really hard Brainstorm! There IS a technique to this 39

Outline Updates Flash / ActionScript 3 What is a game? How do we brainstorm? What makes a game fun? Upcoming assignments 40

Focus Brainstorming Technique Limit 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 But take a break! If done correctly, you will be exhausted. 41

Science of Brainstorming AIDS Campaign Experiment, Dow et al. 42

Scenario 1 Design Design 43

Scenario 1: Share One Meeting Room Final Design Design Final Design Design 44

Scenario 2 Design 1 Design 1 Best Design 2 Design Best Design 2 Design Design 3 Design 3 45

Scenario 2: Share Best Meeting Room Final Best Design Final Best Design 46

Scenario 3 Design 1 Design 1 Design 2 Design 2 Design 3 Design 3 47

Scenario 3 Design 1 Design 1 Design 2 Design 2 Design 3 Design 3 48

Scenario 3: Share Multiple Meeting Room Design 1 Final Design 2 Design Design 3 Design 1 Final Design 2 Design Design 3 49

What are tradeoffs? Producing fewer designs Can spend more time per design After first design, subsequent designs may not be that different Producing more designs Can search space of possibilities First idea is not always best 50

What are tradeoffs? Sharing fewer designs Meeting time is more focused Easier to reach consensus Sharing more designs Exposed to more possibilities Can play off each or s ideas 51

Which did best? Share One Share Best Share Multiple 52

Which did best? 1200 1000 800 600 400 200 0 53 Clicks per million impressions Share One Share Best Share Multiple

What does this mean for you? Take time to think Don t just accept first idea Come up with multiple ideas and bring m to group Your ideas are valuable even if y aren t used 54

What does this mean for you? Go play games! Can t design games without understanding m 55

Outline Updates Flash / ActionScript 3 What is a game? How do we brainstorm? What makes a game fun? Upcoming assignments 56

What makes a game fun? Group Activity Why do you play your favorite games? 57

What makes a game fun? No one really knows Folk Psychology of Game Design 58

Mihaly Csikszentmihalyi 59

Challenge Flow Anxiety Boredom Skill

Challenge Flow Anxiety Boredom Skill

Challenge Flow Anxiety Boredom Skill

Challenge Flow Anxiety Boredom Skill

Challenge Flow Anxiety Boss Fight Boredom Time

Lev Vygotsky 65

Zone of Proximal Development can t do yet can do with guidance can do now

Casual vs. Core Core gamers play lots of games Almost always to finish games y play Want hard games; will tolerate frustration Casual gamers play for enjoyment Will stop when game stops being fun Challenges must be reasonable Harder to distinguish than you think Something designers are paying less attention to 67 Nature of Games

You are competing with Or games Cat videos Chores Work Play length Game must be fun within 30 seconds Casual games can still have sophisticated gameplay Example: Plants vs. Zombies 68

Reminder: Aspects of a Game Players: How do humans affect game? Goals: What is player trying to do? Rules: How can player achieve goal? Challenges: What obstacles block goal? 69 Design Elements

Formal Design Elements Players: Player Mode Sketches Goals: Objectives Rules: Actions and Interactions Challenges: Obstacles and Opponents 70 Design Elements

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 major player modes May have action (like movie storyboard) Illustrate how player interacts with game 71 Design Elements

Lifted: Player Mode Sketch Indicating Action 72 Design Elements

Lifted: Completed Game 73 Design Elements

Diagramming Action 74 Design Elements

Objectives Anything a player might strive for May be a primary game objective Progressing story Completing game May be an auxiliary game objective Side missions/quests Unusual achievements Sometimes player-directed Reward structure in sandbox games 75 Design Elements

Be careful with this 76

Braid s Slow-moving Cloud 77

Actions Verbs that describe what player can do Walk Run Jump Shoot Does not need to be attached to an avatar Build Swap Rotate 78 Design Elements

Designing Actions Starts with brainstorming verbs Define types of verbs Define scope of verbs Design Goals Enough verbs to avoid being too simple But not so much to be confusing (verb bloat) Do verbs directly achieve goal? Each verb maps to a single input 79 Design Elements

Primary Actions How do verbs, goals relate? Imagine re no challenges What verbs must you have? Example: Platformers Goal: reach exit location Only need movement verbs Killing enemies is optional Or actions are secondary Design Goal: Primary only Secondary verbs lead to bloat Add features with interactions 80 Design Elements

Interactions Not a direct action of player Outcome of game state Can happen without controller Example: collisions Accidental or player forced May be bad (take damage) May be good (gain power-up) Or Examples: Spatial proximity Line-of-sight Resource acquisition 81 Design Elements

Game mechanic Game Mechanics Relationship between verbs and interactions Often call this relationship rules Gameplay is manifestation of se rules 82 Design Elements

Obstacles Prevent progress towards goal Have to be overcome Opponents Players or bots with ir own goals May or may not need to be overcome Dilemmas Challenges Can only perform one of several actions Correct choice not immediately clear 83 Design Elements

What are challenges? 84

What are challenges? 85

A note on story 86 Nature of Games

The Dangers of Pure Story What is player doing? 87 Nature of Games

Story can be great But you should prioritize game mechanics 88

Summary Decide what player is getting better at Decide what player needs to do 89

Coming soon: Pong / Asset Creation due Tuesday! Project Pitches next Thursday in class Paper Prototypes following Tuesday I will talk more about this next Tuesday 90

Next Thursday in class Project Pitches Information posted as Assignment 3 5 minute pitch: The main idea Why will this be fun The core mechanics 5 minute Q&A from audience Some groups will go following Tuesday 91

Outline Updates Flash / ActionScript 3 What is a game? How do we brainstorm? What makes a game fun? Upcoming assignments 92