DigiPen Institute of Technology

Size: px
Start display at page:

Download "DigiPen Institute of Technology"

Transcription

1 DigiPen Institute of Technology Presents Session Eight: Behavior DigiPen Institute of Technology th Ave NE, Redmond, WA Phone: (425) DigiPen (USA) Corporation. No part of this work may be published without the written permission of DigiPen (USA) Corporation

2 1 Behavior Overview Contents 2 Game Objects Behavior 2.1 Game Implementation: Condor Behavior Game Implementation: Fire Behavior 5

3 3 Behavior 1 Behavior Overview A behavior is a set of functions, defined by the user, which describes how a game and its objects should behave and act. You can define a behavior to the game and to some of its objects, like sprites and texts. The functions assigned in a game object behavior (the game object is an instance of a class derived from the Game class) are executed successively. 2 Game Objects Behavior In StarTrooper,, the game behavior is divided into several objects that make the game. These objects are: Trooper, Condor, and Fire. The behavior of the Trooper object is a combination of several kinds of behavior: Movement Behavior (already seen) Shooting (already seen) The behavior of the Condor object depends on the collision detection. If it collides with Fire, which means that Fire hits it, it will explode and die with a consequent score increment. If it is hit by the Trooper, which means that condor wins, Condor will die and the score will decrement. Therefore, we have: Condor Behavior The behavior of the Fire object is simple. It will die if it is hit by Condor, otherwise it will continue. Therefore, we have: Fire Behavior 2.1 Game Implementation: Condor Behavior Create a list variables collidedsprites that contains all the sprites with which the enemy collides: List<Sprite> collidedsprites = Game.GetCollidedSprites(this); Test if the list is empty or not; if not empty: if (collidedsprites!= null) o For each element of the list: foreach (Sprite s in collidedsprites) o Test if this element is the fire object: if (s is Fire) //The enemy object will die RaptorGame.Die.Play(); // Playing the enemy explosion animation AnimationIndex = 1; //Incrementing the score by one

4 4 m_score++; //Updating the value of the score displayed //on the screen RaptorGame.Score.Text = Score: + m_score.tostring(); //Removing the enemy sprite from the game Game.Remove(s); o Test if this element is the main character: if (s is Bat) m_collisionwithbat = true; //The enemy object will die RaptorGame.Die.Play(); //The Animation will stop looping Animation.Stop(); //Decrementing the score by one m_score--; //Updating the value of the score displayed //on the screen RaptorGame.Score.Text = Score: + m_score.tostring(); Testing if the animation of the Condor sprite is the explosion animation or not: if (AnimationIndex!= 1) //Testing if it is the last frame of the explosion animation if (Animation.PlayingLastFrame) //delete the explosion sprite Delete the following code in the StarTrooperSprites.cs file under public override void Update() function: Trooper b = StarTooper.Trooper; Vector2 v = new Vector2(b.Position.X - Position.X, b.position.y - Position.Y); v.normalize(); Velocity = v; if (v.x >= 0) ScaleX = 1; ScaleX = -1; Then type the following code in the StarTrooperSprites.cs file under public override void Update() function:

5 5 Trooper b = StarTrooper.Trooper; if (AnimationIndex!= 1) Vector2 v = new Vector2(b.Position.X - Position.X, b.position.y - Position.Y); v.normalize(); Velocity = v; if (v.x >= 0) ScaleX = 1; ScaleX = -1; List<Sprite> collidedsprites = Game.GetCollidedSprites(this); if (collidedsprites!= null) foreach (Sprite s in collidedsprites) if (s is Fire) StarTrooper.Die.Play(); AnimationIndex = 1; m_score++; StarTrooper.Score.Text = "Score: " + m_score.tostring(); Game.Remove(s); if(s is Trooper) m_collisionwithtrooper = true; StarTrooper.Die.Play(); Animation.Stop(); m_score--; StarTrooper.Score.Text = "Score: " + m_score.tostring(); if (Animation.PlayingLastFrame) 2.2 Game Implementation: Fire Behavior If the Condor hits the Fire it will be deleted: this is already seen with the Condor behavior. If the Fire does not hit anything, it will delete itself if it is out of the game: if (y < -100) Then type the following code in the StarTrooperSprites.cs file under public override void Update() function: if (y < -100) When the spacebar is triggered, a new Fire sprite is created, the Shoot sound effect is played, and the text Shoots is incremented and displayed. Delete the following code in the StarTrooperSprites.cs file under public override void Update() function:

6 6 if (Keyboard.IsTriggered(Key.Space)) Fire fire = (Fire)StarTrooper.Fire.Clone(); fire.position = new PointF(Position.X, Position.Y - 35); fire.velocity = new Vector2(0, -4); Game.Add(fire); Then type the following code in the StarTrooperSprites.cs file under public override void Update() function: if (Keyboard.IsTriggered(Key.Space)) Fire fire = (Fire)StarTrooper.Fire.Clone(); fire.position = new PointF(Position.X, Position.Y - 35); fire.velocity = new Vector2(0, -4); Game.Add(fire); StarTrooper.Shoot.Play(); m_shoots++; StarTrooper.Shoots.Text = "Shoots:" + m_shoots.tostring();

DigiPen Institute of Technology

DigiPen Institute of Technology DigiPen Institute of Technology Presents Session Six: Dynamic Sprites Creation DigiPen Institute of Technology 5001 150th Ave NE, Redmond, WA 98052 Phone: (425) 558-0299 www.digipen.edu 2005 DigiPen (USA)

More information

DigiPen Institute of Technology

DigiPen Institute of Technology DigiPen Institute of Technology Presents Session Four: Game Design Elements DigiPen Institute of Technology 5001 150th Ave NE, Redmond, WA 98052 Phone: (425) 558-0299 www.digipen.edu 2005 DigiPen (USA)

More information

Click on the empty form and apply the following options to the properties Windows.

Click on the empty form and apply the following options to the properties Windows. Start New Project In Visual Studio Choose C# Windows Form Application Name it SpaceInvaders and Click OK. Click on the empty form and apply the following options to the properties Windows. This is the

More information

Session 6. Microsoft and The DigiPen Institute of Technology Webcast Series

Session 6. Microsoft and The DigiPen Institute of Technology Webcast Series Session 6 Microsoft and The DigiPen Institute of Technology Webcast Series HOW TO USE THIS DOCUMENT This e-textbook has been distributed electronically using the Adobe Portable Document Format (PDF) format.

More information

Session 7. Microsoft and The DigiPen Institute of Technology Webcast Series

Session 7. Microsoft and The DigiPen Institute of Technology Webcast Series Session 7 Microsoft and The DigiPen Institute of Technology Webcast Series HOW TO USE THIS DOCUMENT This e-textbook has been distributed electronically using the Adobe Portable Document Format (PDF) format.

More information

List of scenarios discussed in this book About the companion website

List of scenarios discussed in this book About the companion website List of scenarios discussed in this book p. xiii About the companion website p. xvi Acknowledgments p. xvii About the 2nd edition p. xix Introduction $$$ Getting started p. 3 Objects and classes

More information

Creating Breakout - Part 2

Creating Breakout - Part 2 Creating Breakout - Part 2 Adapted from Basic Projects: Game Maker by David Waller So the game works, it is a functioning game. It s not very challenging though, and it could use some more work to make

More information

Game Board: Enabling Simple Games in TouchDevelop

Game Board: Enabling Simple Games in TouchDevelop Game Board: Enabling Simple Games in TouchDevelop Manuel Fähndrich Microsoft Research One Microsoft Way, Redmond WA 98052, USA maf@microsoft.com February 23, 2012 Abstract TouchDevelop is a novel application

More information

Add in a new balloon sprite, and a suitable stage backdrop.

Add in a new balloon sprite, and a suitable stage backdrop. Balloons Introduction You are going to make a balloon-popping game! Step 1: Animating a balloon Activity Checklist Start a new Scratch project, and delete the cat sprite so that your project is empty.

More information

Technical Manual Urban Ninja

Technical Manual Urban Ninja Sarah Somers B00330887 CS1106 Section 1 sarah.somers000@gmail.com Technical Manual Urban Ninja Kevin Leach B00321788 CS1106 Section x leach@cs.dal.ca INTRODUCTION Our game is called defend the dojo, you

More information

CSEE 4840 Embedded System Battle City. Tian Chu Huangfu Quan Yuan Liuxun Zhu Tianchen Li

CSEE 4840 Embedded System Battle City. Tian Chu Huangfu Quan Yuan Liuxun Zhu Tianchen Li CSEE 4840 Embedded System Battle City Tian Chu Huangfu Quan Yuan Liuxun Zhu Tianchen Li Overview Game play One player Three stages (more can be easily added) Two modes: easy (E) and crazy (C) Keyboard

More information

1. Defining Procedures and Reusing Blocks

1. Defining Procedures and Reusing Blocks 1. Defining Procedures and Reusing Blocks 1.1 Eliminating Redundancy By creating a procedure, move a copy of the redundant blocks into it, and then call the procedure from the places containing the redundant

More information

DigiPen Institute of Technology

DigiPen Institute of Technology DigiPen Institute of Technology Presents Session Three: Game Components DigiPen Institute of Technology 5001 150th Ave NE, Redmond, WA 98052 Phone: (425) 558-0299 www.digipen.edu 2005 DigiPen (USA) Corporation.

More information

Integrating Physics into a Modern Game Engine. Object Collision. Various types of collision for an object:

Integrating Physics into a Modern Game Engine. Object Collision. Various types of collision for an object: Integrating Physics into a Modern Game Engine Object Collision Various types of collision for an object: Sphere Bounding box Convex hull based on rendered model List of convex hull(s) based on special

More information

Understanding an App s Architecture

Understanding an App s Architecture Chapter 14 Understanding an App s Architecture This chapter examines the structure of an app from a programmer s perspective. It begins with the traditional analogy that an app is like a recipe and then

More information

Goals Pragmukko features:

Goals Pragmukko features: Pragmukko Pragmukko Pragmukko is an Akka-based framework for distributed computing. Originally, it was developed for building an IoT solution but it also fit well for many other cases. Pragmukko treats

More information

Damaging, Attacking and Interaction

Damaging, Attacking and Interaction Damaging, Attacking and Interaction In this tutorial we ll go through some ways to add damage, health and interaction to our scene, as always this isn t the only way, but it s the way I will show you.

More information

Collision Detection Concept

Collision Detection Concept Collision Detection Collision Detection Concept When two fireflies collide we tag them for removal and add an explosion to the blasts list. The position and velocity of the explosion is set to the average

More information

Where are we? Setup Sprites. Input. Collision Drawing Sprites. Initializing, loading, movement Parameters (color, alpha, scale, etc.

Where are we? Setup Sprites. Input. Collision Drawing Sprites. Initializing, loading, movement Parameters (color, alpha, scale, etc. Setup Sprites Where are we? Initializing, loading, movement Parameters (color, alpha, scale, etc.) Input Get input and respond to input Collision Drawing Sprites Next Advanced movement Various types of

More information

Introduction to Game Programming

Introduction to Game Programming Introduction to Game Programming Console video game Session 2 The game loop and user input Nacho Iborra IES San Vicente This work is licensed under the Creative Commons Attribution- NonCommercial-ShareAlike

More information

Pacman. you want to see how the maze was created, open the file named unity_pacman_create_maze.

Pacman. you want to see how the maze was created, open the file named unity_pacman_create_maze. Pacman Note: I have started this exercise for you so you do not have to make all of the box colliders. If you want to see how the maze was created, open the file named unity_pacman_create_maze. Adding

More information

Teacher Cheat Sheet - Game Coding Challenges

Teacher Cheat Sheet - Game Coding Challenges Teacher Cheat Sheet - Game Coding Challenges Challenge #1 Movement: Make your sprite move across the screen. When it hits the walls, it must bounce off and keep moving. 1. The When Flag is clicked is your

More information

Pong in Unity a basic Intro

Pong in Unity a basic Intro This tutorial recreates the classic game Pong, for those unfamiliar with the game, shame on you what have you been doing, living under a rock?! Go google it. Go on. For those that now know the game, this

More information

Chapter 11: Sprites - Introduction

Chapter 11: Sprites - Introduction This section deals with sprites Chapter 11: Sprites - Introduction They are discussed in terms of a game called BugRunner The game combines aspects of Pong and Space Invaders The basics of game play are

More information

Sprites Alive Manual - Basic Version Submitted by Tommy Pereira on 24 September 2003 Kindly scanned and PDFed by Steve R Sopp "Thank you Kevin

Sprites Alive Manual - Basic Version Submitted by Tommy Pereira on 24 September 2003 Kindly scanned and PDFed by Steve R Sopp Thank you Kevin Sprites Alive Manual - Basic Version Submitted by Tommy Pereira on 24 September 2003 Kindly scanned and PDFed by Steve R Sopp "Thank you Kevin Thacker for putting it online for everyone on the - Unofficial

More information

GameSalad Creator Interface

GameSalad Creator Interface GameSalad Creator Interface Library panel A)ributes panel Stage and Backstage Now, a5er knowing where to locate the buons above, let s move to the fun part: Create your own game Create

More information

Key Stage 2 Scratch, Python and Kodu (Beginners)

Key Stage 2 Scratch, Python and Kodu (Beginners) Key Stage 2 Scratch, Python and Kodu (Beginners) The Aims By the end of this session, you will have: Explored a progression of beginner activities in Scratch a visual programming language Programmed new

More information

February 18, Nintendo. Bob Rost January 14, 2004

February 18, Nintendo. Bob Rost January 14, 2004 98-026 Nintendo Bob Rost January 14, 2004 Today Project Status Announcements Backgrounds PPU control registers Memory Mappers, Larger ROMs General Game Programming Tricks Project Status Have you started?

More information

WW.IT-IQ Training & Solutions (PTY) LTD

WW.IT-IQ Training & Solutions (PTY) LTD GAMES DEVELOPMENT COURSE OUTLINES DURATION: 4 YEARS Course Modules Prerequisite Prerequisite Completing the Fundamentals of Programming Course Completing the Object Oriented Programming Course Initialization

More information

Figure 2.1: High level diagram of system.

Figure 2.1: High level diagram of system. Basile and Choudhury 6.111 Final Project: La PC-na Project Proposal 1 Introduction The luxury of purchasing separate pool tables, foosball tables, and air hockey tables is beyond the budget of many, particularly

More information

Advanced Programming C# Lecture 2. dr inż. Małgorzata Janik

Advanced Programming C# Lecture 2. dr inż. Małgorzata Janik Advanced Programming C# Lecture 2 dr inż. Małgorzata Janik majanik@if.pw.edu.pl Winter Semester 2017/2018 C# Classes, Properties, Controls Constructions of Note using namespace like import in Java: bring

More information

Computer Games 2012 Game Development

Computer Games 2012 Game Development Computer Games 2012 Game Development Dr. Mathias Lux Klagenfurt University This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Agenda Game Loop Sprites & 2.5D Images

More information

ACS-1805 Introduction to Programming (with App Inventor)

ACS-1805 Introduction to Programming (with App Inventor) ACS-1805 Introduction to Programming (with App Inventor) Chapter 8 Creating Animated Apps 10/25/2018 1 What We Will Learn The methods for creating apps with simple animations objects that move Including

More information

6.001, Fall Semester, 1998 Lecture Notes, October 27 { Object Oriented Programming 2 An environment diagram illustrating +define foo +cons 1 2,, +set-

6.001, Fall Semester, 1998 Lecture Notes, October 27 { Object Oriented Programming 2 An environment diagram illustrating +define foo +cons 1 2,, +set- 1 MASSACHVSETTS INSTITVTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science 6.001 Structure and Interpretation of Computer Programs Fall Semester, 1998 Lecture Notes, October 27 {

More information

CS 201 Advanced Object-Oriented Programming Lab 4 - Asteroids, Part 2 Due: February 24/25, 11:30 PM

CS 201 Advanced Object-Oriented Programming Lab 4 - Asteroids, Part 2 Due: February 24/25, 11:30 PM CS 201 Advanced Object-Oriented Programming Lab 4 - Asteroids, Part 2 Due: February 24/25, 11:30 PM Introduction to the Assignment In this lab, you will complete the Asteroids program that you started

More information

Teaching Kids to Program. Lesson Plan: Catch the Ball

Teaching Kids to Program. Lesson Plan: Catch the Ball Teaching Kids to Program Lesson Plan: Catch the Ball Step 1: 1. Open your web browser and go to SCRATCH (http://scratch.mit.edu/ ) 2. Sign in to your Scratch account by clicking on the button on the top

More information

MoleMash for App Inventor 2. Getting Started. Introduction. Workshop, S.1

MoleMash for App Inventor 2. Getting Started. Introduction. Workshop, S.1 In the game MoleMash, a mole pops up at random positions on a playing field, and the player scores points by hitting the mole before it jumps away. This tutorial shows how to build MoleMash as an example

More information

GameSalad Creator. Written by Jack Reed Layout by Anne Austin

GameSalad Creator. Written by Jack Reed Layout by Anne Austin GameSalad Creator Written by Jack Reed Layout by Anne Austin 1 Table of Contents Creator Walkthrough... 3 Getting Started... 3 System Requirements... 3 Intro... 3 GameSalad Dashboard... 3 Scenes Tab...

More information

Worksheet: Caves - Joystick Control. Part 1 of 9

Worksheet: Caves - Joystick Control. Part 1 of 9 Part 1 of 9 When we interact with electronic devices it is more commonly using an analog input rather than digital ones. Game controllers, thumb sticks, triggers and even touch screens, steering wheels

More information

Assignment A7 BREAKOUT CS1110 Spring 2011 Due Fri 6 May 1

Assignment A7 BREAKOUT CS1110 Spring 2011 Due Fri 6 May 1 Assignment A7 BREAKOUT CS1110 Spring 2011 Due Fri 6 May 1 This assignment, including much of the wording of this document, is taken from an assignment from Stanford University, by Professor Eric Roberts.

More information

Decisions, Decisions. Testing, testing C H A P T E R 7

Decisions, Decisions. Testing, testing C H A P T E R 7 C H A P T E R 7 In the first few chapters, we saw some of the basic building blocks of a program. We can now make a program with input, processing, and output. We can even make our input and output a little

More information

CIT 590 Homework 10 Battleship

CIT 590 Homework 10 Battleship CIT 590 Homework 10 Battleship Purposes of this assignment: To give you more experience with classes and inheritance General Idea of the Assignment Once again, this assignment is based on a game, since

More information

RetroCraft A design language for retro platformers. Language Reference Manual

RetroCraft A design language for retro platformers. Language Reference Manual RetroCraft A design language for retro platformers Language Reference Manual Fernando Luo (fbl2108) Papoj Thamjaroenporn (pt2277) Lucy He (lh2574) Kevin Lin (kl2495) Table of Contents 1. Introduction...

More information

Creating a Vertical Shooter Based on; accessed Tuesday 27 th July, 2010

Creating a Vertical Shooter Based on;   accessed Tuesday 27 th July, 2010 Creating a Vertical Shooter Based on; http://www.kirupa.com/developer/actionscript/vertical_shooter.htm accessed Tuesday 27 th July, 2010 So, we will create a game using our super hero Knight to kill dragons

More information

(C) 2010 Pearson Education, Inc. All rights reserved. Omer Boyaci

(C) 2010 Pearson Education, Inc. All rights reserved. Omer Boyaci Omer Boyaci A sprite must monitor the game environment, for example, reacting to collisions with different sprites or stopping when it encounters an obstacle. Collision processing can be split into two

More information

Session 4 Starting the Air Raid Game

Session 4 Starting the Air Raid Game Session 4 Starting the Air Raid Game Authored by Brian Cullen (bcullen@rossettschool.co.uk/@mrbcullen) (c) Copyright 2011 Computing At School. This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike

More information

What You're Building 2. Getting Started 3 Introduction 4 Iteration or how we will get to Finished App. 4

What You're Building 2. Getting Started 3 Introduction 4 Iteration or how we will get to Finished App. 4 Table of Contents What You're Building 2 Getting Started 3 Introduction 4 Iteration or how we will get to Finished App. 4 Iteration 1 Create still image of our Game 5 Getting Ready 5 Set up the Components

More information

Scratch Lesson 11: Mini Mario Game Part II - Sprites

Scratch Lesson 11: Mini Mario Game Part II - Sprites Scratch Lesson 11: Mini Mario Game Part II - Sprites In Lesson 11, we will create all necessary sprites for Mini Mario game. Especially, we will focus on Mario and show how to make him walk, jump, and

More information

Fruit Snake SECTION 1

Fruit Snake SECTION 1 Fruit Snake SECTION 1 For the first full Construct 2 game you're going to create a snake game. In this game, you'll have a snake that will "eat" fruit, and grow longer with each object or piece of fruit

More information

ARCHITECTURE FOR CASUAL GAMES

ARCHITECTURE FOR CASUAL GAMES ARCHITECTURE FOR CASUAL GAMES How to finish coding a game without despising it. Keith Peters BIT-101 / Wicked Pissah Games Great Idea! Complete (or not...) Prototype/ Proof of Concept Pain and Suffering

More information

Holy Family Catholic Primary School Computing Progression Map Year 1

Holy Family Catholic Primary School Computing Progression Map Year 1 Year 1 Graphics Use ICT to generate ideas for their work. Use tools including brushes, pens, line, fill and stamp to create images. Use save, open, edit and print. Manipulating Text Use spacebar, back

More information

CS 354 R Game Technology

CS 354 R Game Technology CS 354 R Game Technology Particles and Flocking Behavior Fall 2017 Particle Effects 2 General Particle Systems Objects are considered point masses with orientation Simple rules control how the particles

More information

Bubblewrap Popper. Introduction. The Plan. The Resources. Creating the Resources

Bubblewrap Popper. Introduction. The Plan. The Resources. Creating the Resources Bubblewrap Popper Introduction The Plan The Resources The requirement for the black image will become clear later. Creating the Resources You don t have to be an expert in DarkBASIC Pro to create the type

More information

Asteroid Destroyer How it Works

Asteroid Destroyer How it Works Asteroid Destroyer How it Works This is a summary of some of the more advance coding associated with the Asteroid Destroyer Game. Many of the events with in the game are common sense other than the following

More information

XNA 4.0 RPG Tutorials. Part 5. The Tile Engine - Part 2

XNA 4.0 RPG Tutorials. Part 5. The Tile Engine - Part 2 XNA 4.0 RPG Tutorials Part 5 The Tile Engine - Part 2 I'm writing these tutorials for the new XNA 4.0 framework. The tutorials will make more sense if they are read in order. You can find the list of tutorials

More information

Scripting in Python Laborations and projects

Scripting in Python Laborations and projects Scripting in Python Laborations and projects 1 Introduction There are two possibilities for the scripting labs in the compiler course, either implementing a self-selected project or implementing the proposed

More information

Major Assignment: Pacman Game

Major Assignment: Pacman Game Major Assignment: Pacman Game 300580 Programming Fundamentals Week 10 Assignment The major assignment involves producing a Pacman style game with Clara using the Greenfoot files that are given to you.

More information

CS12020 for CGVG. Practical 2. Jim Finnis

CS12020 for CGVG. Practical 2. Jim Finnis CS12020 for CGVG Practical 2 Jim Finnis (jcf1@aber.ac.uk) This week Solution to last week and discussion Global variables and the model The Main Loop pattern States and the State Machine pattern Random

More information

Cláudia Ribeiro PHYSICS

Cláudia Ribeiro PHYSICS Cláudia Ribeiro PHYSICS Cláudia Ribeiro Goals: - Colliders - Rigidbodies - AddForce and AddTorque Cláudia Ribeiro AVT 2012 Colliders Colliders components define the shape of an object for the purpose of

More information

TEAM 12: TERMANATOR PROJECT PROPOSAL. TEAM MEMBERS: Donald Eng Rodrigo Ipince Kevin Luu

TEAM 12: TERMANATOR PROJECT PROPOSAL. TEAM MEMBERS: Donald Eng Rodrigo Ipince Kevin Luu TEAM 12: TERMANATOR PROJECT PROPOSAL TEAM MEMBERS: Donald Eng Rodrigo Ipince Kevin Luu 1. INTRODUCTION: This project involves the design and implementation of a unique, first-person shooting game. The

More information

Scratch. Creative Computing

Scratch. Creative Computing Scratch Creative Computing Section 1 INTRODUCTION TO SCRATCH Scratch Browser based Created at MIT Creative Computing Using a tool to easily create a computer program. Typically a drag-and-drop tool. Emphasizes

More information

Poke Kirby with a Laser (Kirby Laser Attack) (Kirby vs King Dedede) (Super Ultra Laser Attack Game) Daniel Gerber Tynan Smith

Poke Kirby with a Laser (Kirby Laser Attack) (Kirby vs King Dedede) (Super Ultra Laser Attack Game) Daniel Gerber Tynan Smith Poke Kirby with a Laser (Kirby Laser Attack) (Kirby vs King Dedede) (Super Ultra Laser Attack Game) Daniel Gerber Tynan Smith Abstract This project deals with gesture recognition of data produced by the

More information

CSE 142, Autumn 2018 Programming Assignment #9: Critters (20 points) Due Tuesday, December 4th, 9:00 PM

CSE 142, Autumn 2018 Programming Assignment #9: Critters (20 points) Due Tuesday, December 4th, 9:00 PM CSE 142, Autumn 2018 Programming Assignment #9: Critters (20 points) Due Tuesday, December 4th, 9:00 PM This assignment focuses on classes and objects. Turn in Ant.java, Bird.java, Hippo.java, Vulture.java,

More information

Investigation: How is motion recorded?

Investigation: How is motion recorded? Investigation: How is motion recorded? Introduction In this investigation you are going to discover a way to record your movement and find different ways to represent this recording with a graph. You will

More information

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Lecture 06 Sensor Systems Edirlei Soares de Lima Game AI Model Pathfinding Steering behaviours Finite state machines Automated planning Behaviour trees

More information

2D Graphics in XNA Game Studio Express (Modeling a Class in UML)

2D Graphics in XNA Game Studio Express (Modeling a Class in UML) 2D Graphics in XNA Game Studio Express (Modeling a Class in UML) Game Design Experience Professor Jim Whitehead February 5, 2008 Creative Commons Attribution 3.0 creativecommons.org/licenses/by/3.0 Announcements

More information

Introduction to Unreal Engine Blueprints for Beginners. By Chaven R Yenketswamy

Introduction to Unreal Engine Blueprints for Beginners. By Chaven R Yenketswamy Introduction to Unreal Engine Blueprints for Beginners By Chaven R Yenketswamy Introduction My first two tutorials covered creating and painting 3D objects for inclusion in your Unreal Project. In this

More information

Platform Games Drawing Sprites & Detecting Collisions

Platform Games Drawing Sprites & Detecting Collisions Platform Games Drawing Sprites & Detecting Collisions Computer Games Development David Cairns Contents Drawing Sprites Collision Detection Animation Loop Introduction 1 Background Image - Parallax Scrolling

More information

Mechanic Animations. Mecanim is Unity's animation state machine system.

Mechanic Animations. Mecanim is Unity's animation state machine system. Mechanic Animations Mecanim is Unity's animation state machine system. It essentially allows you to create 'states' that play animations and define transition logic. Create new project Animation demo.

More information

Project 2 Prototype Report Template Creating Instances Dynamically Dynamic Event Handlers Array Methods 2-D Array; multi-d Arrays Game - Match Them

Project 2 Prototype Report Template Creating Instances Dynamically Dynamic Event Handlers Array Methods 2-D Array; multi-d Arrays Game - Match Them Project 2 Prototype Report Template Creating Instances Dynamically Dynamic Event Handlers Array Methods 2-D Array; multi-d Arrays Game - Match Them Up Game - Critter Attack - Space Invader Refer to the

More information

Lesson 8: Simon - Arrays

Lesson 8: Simon - Arrays Lesson 8: Simon - Arrays Introduction: As Arduino is written in a basic C programming language, it is very picky about punctuation, so the best way to learn more complex is to pick apart existing ones.

More information

Critters. Critter #2 Attack.ROAR Attack.POUNCE Attack.SCRATCH. Critter #1

Critters. Critter #2 Attack.ROAR Attack.POUNCE Attack.SCRATCH. Critter #1 Critters This assignment was co-created by Stuart Reges and Marty Stepp. This program focuses on classes, objects, and inheritance. You will write the following files: Ant.java, Bird.java, Crab.java, FireAnt.java,

More information

Terrain. Unity s Terrain editor islands topographical landscapes Mountains And more

Terrain. Unity s Terrain editor islands topographical landscapes Mountains And more Terrain Unity s Terrain editor islands topographical landscapes Mountains And more 12. Create a new Scene terrain and save it 13. GameObject > 3D Object > Terrain Textures Textures should be in the following

More information

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Unity

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Unity i About the Tutorial Unity is a cross-platform game engine initially released by Unity Technologies, in 2005. The focus of Unity lies in the development of both 2D and 3D games and interactive content.

More information

Assignment #3 Breakout!

Assignment #3 Breakout! Eric Roberts Handout #18 CS 106A January 26, 2005 Assignment #3 Breakout! Due: Friday, February 4, 5:00P.M. Your job in this assignment is to write the classic arcade game of Breakout. It is a large assignment,

More information

Aircraft Combat. A mini game.

Aircraft Combat. A mini game. Aircraft Combat A mini game Yun Miao Siyu Tan soc12ymi@student.lu.se soc12sta@student.lu.se 16/10/2013 ABSTRACT This report documents the development of an aircraft combat game. In this project, the game

More information

In this lesson you will learn: How to capture the input from the user. How to write programs using variables and lists. Athletics Swimming Gymnastics

In this lesson you will learn: How to capture the input from the user. How to write programs using variables and lists. Athletics Swimming Gymnastics Lesson 4 A m In this lesson you will learn: How to capture the input from the user. How to write programs using variables and lists. Advanced Scratch Sports Day Jyoti and Tejas are planning to create a

More information

Breakout YEAH hours. Brahm Capoor & Jared Wolens

Breakout YEAH hours. Brahm Capoor & Jared Wolens Breakout YEAH hours Brahm Capoor & Jared Wolens Road Map YEAH hour schedule Deadline: Due Wednesday, February 8th Lecture Review Using the debugger Assignment Overview Q&A! YEAH hours this quarter Assignment

More information

Game Design Unity Workshop

Game Design Unity Workshop Game Design Unity Workshop Activity 4 Goals: - Creation of small world - Creation of character - Scripting of player movement and camera following Load up unity Build Object: Collisions in Unity Aim: Build

More information

Critter #1 Attack.ROAR random winner #2 wins #1 wins Attack.POUNCE #1 wins random winner #2 wins Attack.SCRATCH #2 wins #1 wins random winner

Critter #1 Attack.ROAR random winner #2 wins #1 wins Attack.POUNCE #1 wins random winner #2 wins Attack.SCRATCH #2 wins #1 wins random winner CSE 142, Winter 2016 Programming Assignment #8: Critters (40 points) Due: Tuesday, March 8, 2016, 11:30 PM (Husky must be submitted on time to be in tournament in class on Friday, March 11) This assignment

More information

Introduction to Bumpers

Introduction to Bumpers Software Engineering II: Project Organization & Management SS 2009 Introduction to Bumpers Prof. Bernd Bruegge, Ph.D. Applied Software Engineering Technische Universitaet Muenchen 1 Development of an Interactive

More information

Logistics. Final Exam on Friday at 3pm in CHEM 102

Logistics. Final Exam on Friday at 3pm in CHEM 102 Java Review Logistics Final Exam on Friday at 3pm in CHEM 102 What is a class? A class is primarily a description of objects, or instances, of that class A class contains one or more constructors to create

More information

How to Program a Primitive Twin-Stick Shooter in Monogame 3.4

How to Program a Primitive Twin-Stick Shooter in Monogame 3.4 How to Program a Primitive Twin-Stick Shooter in Monogame 3.4 This is a tutorial for making a basic twin-stick style shooter in C# using Monogame 3.4 and Microsoft Visual Studio. This guide will demonstrate

More information

Form Properties Window

Form Properties Window C# Tutorial Create a Save The Eggs Item Drop Game in Visual Studio Start Visual Studio, Start a new project. Under the C# language, choose Windows Form Application. Name the project savetheeggs and click

More information

Space Shooter - Movie Clip and Movement

Space Shooter - Movie Clip and Movement Space Shooter - Movie Clip and Movement Type : TextSource File: space-shooter-movie-clip-and-movement.zip Result : See the result Index Series Next >>> In this tutorial series you will learn how to create

More information

Class: Cra. Themes & Elements. Theme: Flexible branch with low/middle costs. alteration branch.

Class: Cra. Themes & Elements. Theme: Flexible branch with low/middle costs. alteration branch. Class: Cra Themes & Elements Theme: Flexible branch with low/middle costs. Theme: Area of effect. Theme: Direct and alteration branch. Spell 1: Homing Arrow Homing Arrow only deals light but it does so

More information

The Drone War. Motivation and Introduction: Project Proposal

The Drone War. Motivation and Introduction: Project Proposal The Drone War Project Proposal COMS W4115 Programming Languages and Translators Columbia University, Fall 2012 Professor: Stephen A. Edwards Students: George Brink gb2280 Xiaotong Chen xc2230 Shuo Qiu

More information

Machine Learning techniques applied to the development of a strategy battle video game

Machine Learning techniques applied to the development of a strategy battle video game Machine Learning techniques applied to the development of a strategy battle video game David Martínez Martín Advisor: Dr. Raúl Montoliu Colás This dissertation is submitted for the bachelor s degree of

More information

the gamedesigninitiative at cornell university Lecture 10 Memory Management

the gamedesigninitiative at cornell university Lecture 10 Memory Management Lecture 10 Gaming Memory (Current Generation) Playstation 4 8 GB RAM (unified) X-Box One (X) 12 GB RAM (unified) 9 GB for games Nintendo Switch 3 GB RAM (unified) 1 GB only for OS iphone/ipad 2 GB RAM

More information

7 Programming with Animations

7 Programming with Animations 7 Programming with Animations 7.1 Animated Graphics: Principles and History 7.2 Types of Animation 7.3 Programming Animations: Interpolation 7.4 Design of Animations 1 Reminder: Frame-by-Frame Animations

More information

Modeling Cloth Using Mass Spring Systems

Modeling Cloth Using Mass Spring Systems Modeling Cloth Using Mass Spring Systems Corey O Connor Keith Stevens May 2, 2003 Abstract We set out to model cloth using a connected mesh of springs and point masses. After successfully implementing

More information

Exam duration: 3 hours Number of pages: 13 Number of points: 20

Exam duration: 3 hours Number of pages: 13 Number of points: 20 INFOMGEP 2012 Final exam Student name: Student number: Exam duration: 3 hours Number of pages: 13 Number of points: 20 All the answers have to be written in the corresponding boxes. It is allowed to have:

More information

Class: Cra. Themes & Elements. Theme: Flexible branch with low/middle costs. alteration branch.

Class: Cra. Themes & Elements. Theme: Flexible branch with low/middle costs. alteration branch. Class: Cra Themes & Elements Theme: Flexible branch with low/middle costs. Theme: Area of effect. Theme: Direct and alteration branch. Spell 1: Homing Arrow Homing Arrow only deals light but it does so

More information

High level NavMesh Building Components

High level NavMesh Building Components High level NavMesh Building Components Here we introduce four high level components for the navigation system: NavMeshSurface for building and enabling a navmesh surface for one agent type. NavMeshModifier

More information

CS 354R: Computer Game Technology

CS 354R: Computer Game Technology CS 354R: Computer Game Technology Component-based Software Design Fall 2017 Game Engine Architecture Good practices lay a good foundation 2 Inheritance-based Architecture Deadly diamond Hard to maintain

More information

Session 1 Welcome to Greenfoot & Code Breaker Authored by Brian Cullen

Session 1 Welcome to Greenfoot & Code Breaker Authored by Brian Cullen Session 1 Welcome to Greenfoot & Code Breaker Authored by Brian Cullen (bcullen@rossettschool.co.uk) (c) Copyright 2011 Computing At School. This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike

More information

AN INTRODUCTION TO SCRATCH (2) PROGRAMMING

AN INTRODUCTION TO SCRATCH (2) PROGRAMMING AN INTRODUCTION TO SCRATCH (2) PROGRAMMING Document Version 2 (04/10/2014) INTRODUCTION SCRATCH is a visual programming environment and language. It was launched by the MIT Media Lab in 2007 in an effort

More information

You can also export a video of what one of the cameras in the scene was seeing while you were recording your animations.[2]

You can also export a video of what one of the cameras in the scene was seeing while you were recording your animations.[2] Scene Track for Unity User Manual Scene Track Plugin (Beta) The scene track plugin allows you to record live, textured, skinned mesh animation data, transform, rotation and scale animation, event data

More information

9 Dynamics. Getting Started with Maya 491

9 Dynamics. Getting Started with Maya 491 9 Dynamics Dynamics is a branch of physics that describes how objects move using physical rules to simulate the natural forces that act upon them. Dynamic simulations are difficult to achieve with traditional

More information