Programming Games Show your rock-paper-scissors. Demonstrate bouncing ball. Demonstrate and examine Bo the dog. Homework: Modify Bo to make your own.

Slides:



Advertisements
Similar presentations
GAME:IT Junior Learning Game Maker: The Control Tab.
Advertisements

AS3: Events & Listeners eventListeners in ActionScript 3.
Microsoft® Small Basic
Visual Basic: ballistics
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter Eight Sub and Function Procedures.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 18 – Macromedia Flash MX 2004: Building an Interactive Game Outline 18.1 Introduction 18.2 Object-Oriented.
1 Flash Actionscript Event Handling. 2 Event Handling Right now we know all about variables lets go back to our text input/output example: Suppose we.
1 Flash Actionscript Animation. 2 Introduction to Sprites We will now look at implementing Sprites in Flash. We should know enough after this to create.
GAME:IT Junior Bouncing Ball Objectives: Create Sprites Create Sounds Create Objects Create Room Program simple game.
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
Animations Flash ActionScript Introduction to Thomas Lövgren
Programming Games Computer science big ideas. Computer Science jargon. Show virtual dog Homework: [Catch up: dice game, credit card or other form.] Plan.
Game Design Creating a game called PING Phase 3: Steps for building basic game.
Programming games Flash drawing trick(s). Rock paper scissors. Classwork: Complete rock paper scissors.
XP Tutorial 5 Buttons, Behaviors, and Sounds. XP New Perspectives on Macromedia Flash MX Buttons Interactive means that the user has some level.
Click your mouse for next slide Flash – Introduction and Startup Many times on websites you will see animations of various sorts Many of these are created.
Chapter 11 Adding Sound and Video. Chapter 11 Lessons 1.Work with sound 2.Specify synchronization options 3.Modify sounds 4.Use ActionScript with sound.
 2008 Pearson Education, Inc. All rights reserved Adobe ® Flash ® CS3: Building an Interactive Game.
Learning Game Maker Studio:
Programming Games Simulated ballistic motion: cannon ball. Classwork: Final day for midterm project and all projects for first part of class. Homework:
Warm-Up Warm-Up I will be coming around checking your homework while you are working on your warm-up 1)2(-4 + k) = 24 2)37 = 4x – 6x ) ½(14x – 22)
Description, Classes, Interfaces, Hierarchy, Specifics George Georgiev Telerik Software Academy academy.telerik.com Technical Trainer itgeorge.net.
AD 305 Electronic Visualization I : School of Art and Design : University of Illinois at Chicago : Spring 2007 Intro to Action Script 3 "The games of a.
Tutorial 8 Programming with ActionScript 3.0. XP Objectives Review the basics of ActionScript programming Compare ActionScript 2.0 and ActionScript 3.0.
Getting a handle on ActionScript A basic primer for non-programmers.
Programming Games Show project. Refresher on coordinates. Scaling, translation. HTML5 logo. Refresher on animation. Bouncing ball. Homework: Do your own.
AD 305 Electronic Visualization I : School of Art and Design : University of Illinois at Chicago : Spring 2007 Intro to Action Script 2 "The games of a.
Programming games Flash drawing trick(s). Past due: Your completion of rock-paper-scissors) Classwork: Bouncing ball: read tutorial. Start coding.
Programming games Reflection Bouncing things, Memory Server-side: Survey. ActionScript 2 examples. Homework: Finish Video or Audio. Post proposal for your.
Programming games Show your version of Bo the dog. Start cannonball Preview: video, audio work session (cannonball) Homework: Cannonball with ball in a.
Tutorial 7 Planning and Creating a Flash Web Site.
More Tips on Flash CSC361/661 Digital Media Spring 2007 Burg.
Programming games Registration experiment. Drawing. Equations of motion. Odds and ends. First phase of cannonball due. Preview video, audio. Homework:
CSC 361/661 Digital Media Spring 2010 Professor Burg.
Programming Games Preview Video & Audio. Work on cannonball. Homework: finish cannonball!
1. Press the New Layer Button 3. Double click names to re-name Ball & Shadow layers 2. Click to change to 12 fps Step 1.
Motion Tweening – Lesson 81 Motion Tweening Lesson 8.
Distributed Multimedia Programming Week – 4A Buttons Movie Clips.
XP Tutorial 8 Adding Interactivity with ActionScript.
Building the Events Components– Lesson 111 Building the Events Components Lesson 11.
Programming games Problems. Schedule Various examples. Homework: rps, bo (don't go back to do this), cannonball, Video or Audio should be complete. Now.
Robotics NXT-G: variables, file Rotation sensor Lab: Use buttons to hit specific ball. Homework: Postings. Start planning mapping the room.
[My] Experiences building games in Visual Basic & Flash Focus on 'cannonball' Jeanine Meyer Math Senior Seminar.
Distributed Multimedia Programming Week - 3 Shape Tweening Symbols and Instances.
Programming games Cannonball due. Drawing & printing example. Acquiring video or sound Homework: Catch up: complete projects (rps, Bo, cb). Start video.
Computer Game Design ActionScript is… Object-oriented programming Everything you do in ActionScript does something to some object* Some objects.
Programming games Flash concepts. Coin toss. Filezilla: upload your project(s) Homework: Enjoy Spring Break.
Video in Macromedia Flash (Optional) – Lesson 121 Video in Macromedia Flash (Optional) Lesson 12.
FLASH!!!!!!!!!!!!!!!!!!!!!!!!! A TUTORIAL BY BRITTANY HESS AND MARGARET DENTON.
Computer Science I Share plans for virtual something. Text. Show my virtual dog. Classwork: Plans for your virtual something. Homework: start implementation.
CIS 205—Web Design & Development Flash Chapter 3 Appendix on Using Buttons.
© 2011 Delmar, Cengage Learning Chapter 11 Adding Sound and Video.
Programming Games Reprise: radio buttons. Creating instances at runtime. Buttons. Present your sound or video. Final project assignment. Homework: [Catch.
VB 4 Controls Scrollbar Radio button check box listboxes timers control arrays.
REVIEW FOR LESSON 4 Variables. 1. W HAT IS THE BEST DEFINITION FOR A VARIABLE ? A. A number B. A letter that stands for any number C. A placeholder for.
Computer Science I Animations. Bouncing ball. The if statement. Classwork/homework: bouncing something. Compress and upload work to Moodle.
Lives and Scoring Games Programming in Scratch. Games Programming in Scratch L2 Lives and Scoring Learning Objectives Define a variable Understand the.
Integrating Components and Dynamic Text Boxes with the Animated Map– Lesson 101 Integrating Components and Dynamic Text Boxes with the Animated Map Lesson.
AD 206 Intermediate CG : School of Art and Design : University of Illinois at Chicago : Spring 2009 Intro to Action Script 11 "The games of a people reveal.
FINAL EXAM REVIEW 2015 Computer Game Design. 1 A. What is a.fla file?.swf file? B. Action Script is an example of what type of programming language? C.
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
To play, start slide show and click on circle Lesson 3 Lesson 3 Lesson 3 Lesson 4 Lesson Lesson 4.
Animation and Simulation Plus Interaction
Tank Game Part 4 of 6.
Flash & ActionScript Syntax is similar to JavaScript
Programming games Classes and objects (used for Jigsaw, Bouncing stuff, other projects) Homework: Complete cannonball. Video or Audio. Your own project.
Week 6: Time and triggers!
Tank Game Part 4 of 6.
Programming games Demonstrate cannonball
Flash Demonstration – Unit 5 – ActionScript 3.0
Presentation transcript:

Programming Games Show your rock-paper-scissors. Demonstrate bouncing ball. Demonstrate and examine Bo the dog. Homework: Modify Bo to make your own.

Time event Flash has Timer objects. You/your code needs to do 3 things: –create the Timer object, setting the time and, optionally, the number of events var btimer = new Timer(100); var limitedtimer = new Timer(1000,3); –set up the event handling btimer.addEventListener(TimerEvent.TIMER,movb) –start the timer btimer.start();

Collisions There are no balls, dogs, walls, etc. Collisions are detected by doing calculations and, as appropriate, changing variables. Bouncing ball example: if (rightwall.hitTestPoint(ball.x,ball.y, true)) { xd=-1; }

Bouncing ball ball as movie clip instance on the Stage along with 4 instances of the movie clip symbol wall each with its own instance name! Timer object: set up event to happen every interval of time and invoke function that function moves the ball in x and y specified amounts and checks for hitting walls. When that happens, the appropriate deltas are changed. Demonstrate. Skim tutorial.

Bo the barking dog The movie clip symbol has several frames representing moving legs… The whole symbol is moved within a virtual box. Instead of bouncing, Bo disappears and reappears at the other side. This is combination of cel and computed animation. Demonstrate. Examine code.

Assignment Read Bouncing Ball tutorial and Bo the dog tutorial. Download source for Bo the dog. Change –all the graphics –something in the code make dog/whatever speed up and slow down add a button to change speed –add a slider to change speed. Look at examples, use Help. change to bounce instead of exiting one side, etc. ?

Other applications If you complete this, you can look at other Bo the Barking Dog programs –source code –tutorial/notes