Review! This is for your test, so pay attention!.

Slides:



Advertisements
Similar presentations
Driving Test 1 Marking Scheme Focus on five areas to pass driving test 1.
Advertisements

Pages and boxes Building quick user interfaces. learning objectives o Build a quick UI with pages and boxes o understand how pages and boxes work o click.
Windows Basics: The Mouse. The Mouse Before you can explore the Desktop and Taskbar, you must know how to use your mouse. Your mouse is a pointing device.
The Web Warrior Guide to Web Design Technologies
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
Introducing ActionScript 3.0 Object-oriented programming language Used to power Flash Player Similar to JavaScript Can be embedded in a Flash project.
1 Flash Actionscript Adding Interactive Actions Variables.
Conversational Computers
VB DATATYPES, VARIABLES, CONSTANTS & CALCULATIONS.
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
Chapter 8: String Manipulation
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
© 2011 Delmar, Cengage Learning Chapter 9 Introduction to ActionScript 3.0.
Rote Learning of the Week "A variable is a named section of RAM that stores data of a specific data type"
Tutorial 2 Variables and Objects. Working with Variables and Objects Variables (or identifiers) –Values stored in computer memory locations –Value can.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 27 - Phone Book Application Introducing Multimedia.
Getting a handle on ActionScript A basic primer for non-programmers.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
Fundamentals of GUI Programming. Objectives: At the end of the session, you should be able to: describe the guidelines that are used for creating user-friendly.
IB Computer Science Unit 1 – Introduction to Java Variables.
WDMD 170 – UW Stevens Point 1 WDMD 170 Internet Languages eLesson: Variables, Functions and Events (there is an audio component to this eLesson) © Dr.
Scratch Programming Lesson 4 Question asking and answering.
Term 2, 2011 Week 1. CONTENTS Problem-solving methodology Programming and scripting languages – Programming languages Programming languages – Scripting.
Variables When programming it is often necessary to store a value for use later on in the program. A variable is a label given to a location in memory.
1 Computer Science of Graphics and Games MONT 105S, Spring 2009 Session 1 Simple Python Programs Using Print, Variables, Input.
Data Types and Variables. Data Type! Computers are all about Data! Data can be in the form of Text Dates Sounds Pictures.
Game Maker – Getting Started What is Game Maker?.
Variables and Functions Chapter Variables Named storage location in computer’s memory Programs may need to store data when running Types of data.
IS2802 Introduction to Multimedia Applications for Business Lecture 3: JavaScript and Functions Rob Gleasure
Variables 1. What is a variable? Something whose value can change over time This value can change more than once over the time period (no limit!) Example:
Memory Management in Java Computer Science 3 Gerb Objective: Understand references to composite types in Java.
Welcome to AP Computer Science A We use the Java language, but this class is much more rigorous than Intro to Java More programming, but also more theory.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 14 Key Concepts 1 Copyright © Terry Felke-Morris.
Copy of the from the secure website - click on the AccoridaLife.zip link.
Event Handling (the right way). A Simple Web Page Events - Summary The web page looks like this:
Introduction to TouchDevelop Lesson 3 – Comments & Lists Created by S. Johnson
Slide 1 Chapter 3 Variables  A variable is a name for a value stored in memory.  Variables are used in programs so that values can be represented with.
JavaScript Programming. What Is JavaScript “the most popular programming language in the world”— w3schools.com “the language for HTML, the Web, computers,
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
Understanding Objects. value Example: txtFirstName. The dot notation is the key that opens the door to the house. Properties room Methods room Events.
Chapter 2 Variables and Constants. Objectives Explain the different integer variable types used in C++. Declare, name, and initialize variables. Use character.
By Melissa Dalis Professor Susan Rodger Duke University June 2011
Unit 2 Technology Systems
Scratch Helicopter Game
A variable is a name for a value stored in memory.
More Events.
Have you signed up (or had) your meeting?
Chapter 2 Overview of C.
Variables Data Types and Assignment
AppLab Studio.code.org.
Chapter 16 – Programming your App’s Memory
Introduction to Object-Oriented Programming
Computer Science and an introduction to Pascal
Use proper case (ie Caps for the beginnings of words)
Introduction to TouchDevelop
Introduction to TouchDevelop
Hardware, Software & Firmware
ICT Gaming Lesson 3.
Game Over Module 4 Lesson 2.
Introduction to Programming
Chapter 8 - Functions and Functionality
Variables Data Types and Assignment
Tutorial 10: Programming with javascript
Tank Game Int 10 Unit 3 – Game Maker.
Variables Here we go.
Technology 5 Programs.
The monitor shows information.
Variables Data Types and Assignment
Variables and Constants
The system unit processes information.
Presentation transcript:

Review! This is for your test, so pay attention!

Whats a variable? A spot in memory to store information Can be numbers, strings etc You have to declare them in order to use them (ie you have to give your variable a name before you can use it.

Whats a declaration? Tells the computer to reserve a memory spot, and to give that spot a name. Example: var name1:string; The variables name is name1, and it is a string variable that stores words.

Whats a function? Also called a “method” It’s a mini program that usually gets run many times Using functions generally saves on space so you don’t have to copy and paste the same code over and over. We use them most with listeners.

Whats a Listener? A program built into flash that runs in the background while your game is running. They wait for a specific event to happen (like a mouse click) and run a small mini program (a function) every time the event happens. Most objects in your game will use these listeners (aka event handlers)

Whats an Object? A specific instance of a general type Example: You can have type: Baseball (its not an actual baseball, just the definition of a baseball) Now if we make several baseballs and number them 1 through 5 We get 5 Objects of type baseball To do anything with one of the baseballs, we need to call each ball by name, baseball1.doStuff(); etc

What are Properties? Every Object in flash has what we call properties Example: baseball1.x is the x coordinate of the baseball baseball1.alpha is the transparency of the baseball1

Last of all… Watch your capital vs lower case letters, they are completely different things to a computer Don’t give your variable names spaces in them, and definitely don’t use weird characters like (- + * etc)

Review Assignment Make 4 narrow boxes that make up a border around the screen Make a zombie you can drag (see Activity 5 for the code) Setup hitTests for the zombie, so that if it touches any of the boxes, the zombie moves back to the middle of the screen