The coordinate system Susan Ibach | Technical Evangelist

Slides:



Advertisements
Similar presentations
The Coordinate Plane By: Christine Berg Edited By:VTHamilton.
Advertisements

In this tutorial, we are going to create: A race car that the user can control with the arrow keys for direction and speed. A simulated road with a striped.
physics engine + graphics
Quiz Time What button stops the sprite from vanishing off the screen?
OBLIQUE VIEWS Oblique drawings provide a quick way to sketch an object and represent the three dimensions of height, width and depth. Oblique drawings.
Ordered Pairs An ordered pair comes in the form (x,y) with x always first and y always second The x value refers to the numbers on the x axis The y value.
The Cartesian Coordinate System
MOTION.
CATCH SCRATCH! Programming from Scratch. Remember Scratch?
Image Processing & Perception Sec 9-11 Web Design.
Hyperbolas.
Computer Science 112 Fundamentals of Programming II Graphics Programming.
Graphing. 2. Coordinate Plane 3. Grid 4. Lattice Points 1. Number Line.
Data & Statistics Math Vocabulary. Pictograph Data – another word for information. Pictograph – a graph that uses pictures or symbols to show data. Key.
Game Maker Terminology
 In mathematics, we use a grid to locate points..
Transparency 6 Click the mouse button or press the Space Bar to display the answers.
CIS125G Computer Game Development. Goals Learn: – How to design games – How games are studied – How games are developed – How to manage software projects.
2D Platform Game Game Maker Terminology. Object  Item in a game that has behavior, such as a main character who can move.
GRAPHING ON A COORDINATE PLANE. VOCABULARY Coordinate system- a system which uses one or more numbers or coordinates, to uniquely determine the position.
Section 1-9 The Coordinate Plane SPI 31A: Identify ordered pairs in a coordinate plane Objectives: Know terms related to the coordinate plane Graph points.
Adds the rectangles, where n is the number of partitions (rectangles) Height of rectangle for each of the x-values in the interval Width of partition:
Sprite sets. project of the week: bubble popper o objects appear from the bottom and slide up o player needs to avoid objects to earn points (objects.
Susan Ibach | Technical Evangelist Sage Franch | Microsoft Student Partner.
Motion and Force Chapter Three: Motion 3.1 Position and Velocity 3.2 Graphs of Motion 3.3 Acceleration.
Collision testing. learning targets Increase awareness of the struggles that of game development; Recognize computer science elements for game logic;
Sage Franch | Technical Evangelist Susan Ibach | Technical Evangelist.
Susan Ibach | Technical Evangelist Sage Franch | Technical Evangelist.
Martin Norris Computing Teacher/Leader at Moldgreen Community Primary School, Huddersfield
Susan Ibach | Technical Evangelist Sage Franch | Technical Evangelist.
Game development.
Game development.
11.1 Polar Coordinates.
Plotting Points Jessica Tate.
Graphics Fundamentals
Objects, Functions and Parameters
Images Presentation Name Course Name Unit # – Lesson #.# – Lesson Name
Introduction to Functions
Lesson 2.8 The Coordinate Plane
EEL 3705 / 3705L Digital Logic Design
The Coordinate Plane Chapter 2 Integers pg. 88.
The Coordinate Plane By: Mr. Jay Mar Bolajo.
LEAPS Summer School 2015 Group Project.
The Coordinate Plane By: Christine Berg Edited By:VTHamilton.
A ( , ) W ( , ) H ( , ) L ( , ) 0 2 A’ ( , ) W’ ( , ) H’ ( , )
2.1 Graphs of equations.
“Keep looking up…that’s the secret of life.”
Tutorial on using Java Sprite Animation
Motion and Force. Motion and Force Chapter Three: Motion 3.1 Position and Velocity 3.2 Graphs of Motion 3.3 Acceleration.
Download : to follow along.
The Coordinate Plane By: Christine Berg Edited By:VTHamilton.
Images Presentation Name Course Name Unit # – Lesson #.# – Lesson Name
Cartesian Coordinate System
Motion and Force. Motion and Force Chapter Three: Motion 3.1 Position and Velocity 3.2 Graphs of Motion 3.3 Acceleration.
Flappy bird Demo: Lesson 5 Flappy bird Demo:
Similar Figures Investigation 2
Transparency & magic pixel
The Cartesian coordinate system
Chapter 2: Lesson 2: The Coordinate Plane
L.O Read and plot coordinates in all quadrants
Motion and Force. Motion and Force Chapter Three: Motion 3.1 Position and Velocity 3.2 Graphs of Motion 3.3 Acceleration.
11.3 Coordinate Plane Math 1.
The COORDINATE PLANE The COORDINATE PLANE is a plane that is divided into four regions (called quadrants) by a horizontal line called the x-axis and a.
Coordinate Shirley Sides
Nate Brunelle Today: Games
Graphing on a Coordinate plane
Objectives To understand what makes a good game
Position in Scratch.
Detecting collisions Susan Ibach | Technical Evangelist
Presentation transcript:

The coordinate system Susan Ibach | Technical Evangelist Sage Franch | Microsoft Student Partner

Why are coordinates important? (What are they used for?) The position of objects are used to… Determine when an object goes off the screen Determine when objects overlap And much more…

The coordinate system you are used to 1 2 3 4 5 6 7 … y increasing y axis x increasing 1 2 3 4 5 6 7 … (0, 0) x decreasing … -7 -6 -5 -4 -3 -2 -1 -1 -2 -3 -4 -5 -6 -7 … y decreasing x axis Two number lines that intersect at the point where each is 0. (0, 0) is called the origin.

Points are plotted as pairs: (x, y) y axis (5, 4) 4 (0, 0) 5 x axis -4 (5, -4)

The coordinate system on a computer is similar, but different… y axis 1 2 3 4 5 6 7 … y INCREASING (0, 0) x axis

A screen is made up of pixels x axis (0, 0) 21 20 (21, 20) Positive! y axis

In our game… Width = 800 pixels x axis (0, 0) 400 The robot’s starting position is (400, 200) – the center of the game board. Only his y-coordinate changes as you play. (Motion of obstacles and background makes it appear as if the robot is moving forward.) 200 Height = 400 pixels Characters (or sprites, as they are called) are actually rectangular pictures. The position of the sprite is the “center” of the rectangle. y axis

Setting positions, sizes, and speeds

Your challenge Add an obstacle Set its height Set its x-position Set its y-position to be a random number Set its speed

Congratulations! You are a master of the coordinate system!

Vocabulary and concepts Pixel: A tiny dot on a computer screen A screen is made up of a rectangular grid of pixels The coordinate system: Used to track the location of objects in a game. All sprites are rectangular A sprite’s location is the point at the center of its rectangle The origin (the point (0,0)) is in the upper left corner of the screen Values on the y-axis INCREASE as you move DOWN