Programming Games Preview Video & Audio. Work on cannonball. Homework: finish cannonball!

Slides:



Advertisements
Similar presentations
1What is the Stage. 2How do you open a panel in Flash
Advertisements

Video Game Design Lesson 1. Game Designer Person involved in the development of a video game Person involved in the development of a video game Usually.
Macromedia Director 8 Intermediate Level Course. Ink Masks Using the Ink Mask feature will allow you to create parts of a bitmap cast member to become.
 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 Animation. 2 Introduction to Sprites We will now look at implementing Sprites in Flash. We should know enough after this to create.
Macromedia Flash 5 Intermediate Level Course. Animation Basics Playhead In-Between Frames Keyframe Current Frame Number Framerate Current Time Frames.
SM5312 week 11: Flash Objects in HTML1 Flash Objects in HTML Nick Foxall.
Flash Video Flash ActionScript 3.0 Introduction to Thomas Lövgren, Flash developer
Created by: Ian Osborn. Possibilities Of Movie Maker Windows Movie Maker allows users to organize and add effects to media clips that ordinarily would.
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
A Prezi presentation is like creating a mind map. It is created on a blank canvas and you decide where the information goes on this canvas.
Programming Games Computer science big ideas. Computer Science jargon. Show virtual dog Homework: [Catch up: dice game, credit card or other form.] Plan.
Creating Mobile Apps with App Inventor! Day 5 Google search Kris Gordon Ludlow for links.
Programming games Flash drawing trick(s). Rock paper scissors. Classwork: Complete rock paper scissors.
BUILDING RICH MEDIA ELEMENTS. Design Decisions Based on Design Specification  Following the design specification will ensure that the application is.
Introduction to TouchDevelop
Programming Games Basic HTML5 audio example. Catch-up. Work on basic video. Homework: Complete basic video.
Welcome to Minnesota’s eFolio Rochester Workforce Center September 12, 2003 Norman Baer Matthew St. Martin.
My First ACCESSIBLE Flash Movie. Course notes Detailed course notes, a printable copy of my slides, and all the samples shown today can be downloaded.
GLOGSTER What is GLOGSTER? Getting started There are two GLOGSTER sites. With students, make certain you use the education site at.
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.
Programming games Another sound example General review Homework: [finish project], look over study guide.
 2008 Pearson Education, Inc. All rights reserved Adobe ® Flash ® CS3: Building an Interactive Game.
Programming Games Simulated ballistic motion: cannon ball. Classwork: Final day for midterm project and all projects for first part of class. Homework:
Programming Games Show your simple video. More video examples. Audio. Classwork/Homework: Produce more complex video program.
Chapter 6 Publishing to the iPad. Installing Software for Working with the iPad When you create layout in InDesign, you can use the Adobe Content Viewer.
Tutorial 8 Programming with ActionScript 3.0. XP Objectives Review the basics of ActionScript programming Compare ActionScript 2.0 and ActionScript 3.0.
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.
Addison Wesley is an imprint of © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 7 The Game Loop and Animation Starting Out with Games & Graphics.
Photo Story 3 Importing Pictures. When you create a new Photo Story, the first thing that you will do is import pictures. You can import pictures from.
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.
Adobe Flash CS5 Introduction. What is Flash? Flash is a multimedia platform used to add animation, video, and interactivity to Web sites. It is often.
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.
Introduction to Flash Animation CS 318. Topics Introduction to Flash and animation The Flash development environment Creating Flash animations  Layers.
Programming Games Reprise on drawing on canvas. Jargon (concepts): objects. Demonstrate slingshot. Mouse events. Work on your cannonball. Homework: Finish.
Game Maker Terminology
Welcome to Minnesota’s eFolio St. Cloud Technical College June 2, 2003 Norman Baer Matt St. Martin.
XP Tutorial 8 Adding Interactivity with ActionScript.
Programming games Problems. Schedule Various examples. Homework: rps, bo (don't go back to do this), cannonball, Video or Audio should be complete. Now.
Go to your Blog URL: Then click on “Log in” Your students do not need to remember their password, they can select.
© 2011 Delmar, Cengage Learning Chapter 10 Using ActionScript to Enhance User Experience.
Programming games Context of what we are doing. Drawing on canvas. Homework: [Complete coin toss examples.] Do your own drawings. Upload files to website.
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 Show your rock-paper-scissors. Demonstrate bouncing ball. Demonstrate and examine Bo the dog. Homework: Modify Bo to make your own.
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.
The first thing you need to do is log in. This is what the “Log In Screen” looks like. Remember to get teacher permission and login information prior.
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.
Computer Science I Animations. Bouncing ball. The if statement. Classwork/homework: bouncing something. Compress and upload work to Moodle.
Computer Science I More class examples. Paths. Jigsaw. Tolerance. Classwork/homework: Your class project. Post proposal for midterm project.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
© 2003 By Default! A Free sample background from Slide 1 Week 6  Flash Video  Flash Sites (Continued) Please Visit:
CDM105 Session 12 Macromedia FLASH MX 2004 Part 5 : Sounds, publishing your movies, and the ‘Get URL’ action.
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.
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
Programming games Show work on site. Work on slide show. Timed event for bouncing ball. Homework: [Finish slide show and upload to site.] Acquire a short.
Using Video, and Flash Components, and Printing Flash Content
Programming games Classes and objects (used for Jigsaw, Bouncing stuff, other projects) Homework: Complete cannonball. Video or Audio. Your own project.
Programming games Demonstrate cannonball
Learning How to Create an Online Interactive Poster using
Programming Games Reprise on drawing on canvas. Jargon (concepts): objects. Demonstrate slingshot. Mouse events. Work on animation project. Homework: Finish.
Presentation transcript:

Programming Games Preview Video & Audio. Work on cannonball. Homework: finish cannonball!

Video in Flash More than one way to incorporate video into Flash –bring in whole video that plays along with the frames. We will not use this way! For this class, we will use a FLVPlayback object Requires an import statement –This allows shorthand names for built-in parts of ActionScript Requires statement adding to Display list –Objects created in code (as opposed to put directly on the Stage) need to be added to the Display list to be shown.

Videos Different types of videos (like different types of images) Flash video playback requires videos of type.flv Can use Adobe Flash Media Encoder (part of the Adobe CS5 package) to take one type of video and produce an flv

Basic coding import fl.video.*; //get the builtin classes var flv:FLVPlayback; //set up variable flv = new FLVPlayback(); //give it a value flv.source= "dickey2.flv"; //set source attribute flv.x = 10; //position on screen horizontally flv.y = 10; // and vertically addChild(flv); // make visible by adding to // Display list

addChild Adds to the Display list. In my tutorials, you also will see canvass.addChild(stuff); This adds the newly created stuff object as a child of canvass. This will determine the positioning of stuff.

Skins These are the video clip controls. Appropriate when you want to give the player/user/customer more controls –You may choose NOT to give user control in certain cases Many choices USE HELP! Requires you to upload an.swf file to the server.

Files for your application Your application will consist of the following files. Say your application is called mywork.fla –mywork.html –mywork.swf –For each video: f1.flv, f2.flv, etc. The names f1, f2, need to be replaced by the names you gave the video. (Remember: no blanks!) –For each skin: the name of the skin file: xxxx.swf

Video examples Play back single video Play back choice of video (two ways) Bouncing Ball –Used mask to make the playback a circle Jigsaw puzzle turning into video –This can be your final project, not this 1 week assignment. ???

Video Use camera –Need to upload If not.flv, use Flash Media encoder to made an.flv Use (or other sites) to download video from YouTube –Note: I prefer you to use your own. If you use someone else's, you must make 'value-add' to the project.

Audio The name of the Flash object is Sound. The object for video is FLVPlayback. So I tend to say video and sound…. Two ways for including audio –associate with a frame See Bo the Barking Dog. –use code to get the sound file to set a Sound object to start and stop and….

Sample sound code import flash.media.Sound; import flash.net.URLRequest; var req:URLRequest=new URLRequest("missle.mp3"); var msound:Sound=new Sound(); msound.load(req); function playsound(event) { msound.play(); } playbtn.addEventListener(MouseEvent.CLICK,playsound); could be any URL

Reprise: Cannonball Mixture of computed and cel animation. Caution: angle –set in editable/input text field as text, –code calculates number representing degrees, and –code calculates number representing radians. Must test (and keep testing) ball missing target (in front and over…) and hitting target. Collisions –hitTestPoint: origin of ball versus occupied pixels of target. –Check of ball.y > (further down screen) of ground.y.

Collision detection alternatives a.hitTestObject(b) checks for intersection of bounding boxes around a and b. compose target of multiple distinct objects and do hitTestPoint versus each one. Can calculate points intersecting circles: is distance from point to center of circle less than radius.

distance function function distance(px,py,qx,qy) { var xd = px-qx; var yd = py-qy; var dsquared = xd*xd+yd*yd; return (Math.sqrt(dsquared)); }

Phases Doing projects in phases is the way to go… Any division of work is better than trying to do the whole thing before testing. …

Homework Complete cannonball. Start planning sound or video project.