Copyright © 2002 Bolton Institute Scrolling Andrew Williams

Slides:



Advertisements
Similar presentations
NMDS 2.0 Program Description Dealing with Missing Values (MV) Basic Knowledge about the Interface This is a usual Power Point Presentation. Use Mouse-Clicks.
Advertisements

Mission Technology Introduction to Scratch! June 2007.
RANDOM 2D PLATFORMER Concept 1. Gameplay The Game Play is simple. It is a 2d platformer with randomized platforms. Platforms of varying in size and distance.
General Ledger – Version Freedom Systems – General Ledger – Version 8.20 Webinar WELCOME TO THE GENERAL LEDGER – VERSION 8.20 WEBINAR PLEASE USE.
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
Copyright © 2002 Bolton Institute The AWSprite Library Andrew Williams
Games at Bolton OpenMP Techniques Andrew Williams
Copyright © 2002 Bolton Institute Fonts Andrew Williams
Chris Orona CS 491B June 2, High Score Score 200 Game Components Introduction Storyline Objective System Game threads Scheduling Characters.
Games at Bolton Scrolling Andrew Williams adw1.
Logo Lesson 2 Logo Procedures
Chapter 1 Understanding the Web Design Environment
HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2011 Hawkes Learning Systems. All rights reserved. Hawkes Learning Systems: College Algebra.
Key Applications Module Lesson 12 — Word Essentials
Frame origin: coordinates 0, 0 How a tablet works April 2012, Mshs, University of Poitiers, France.
Creative Commons Attribution 3.0 creativecommons.org/licenses/by/3.0 Key Abstractions in Game Maker Foundations of Interactive Game Design Prof. Jim Whitehead.
Introduction to TouchDevelop
Introduction to Scratch!
Game Maker Day 2 Making a Maze Game.
VIDEO GAME PROGRAMMING Video Game Programming Junior – DigiPutt INSTRUCTOR TEACHER’S ASSISTANT.
Step 2: Solve the 1st side/layer
GAME:IT Junior Learning Game Maker: The Move Tab.
Unit 4 Prototype Summary prepared by Kirk Scott 1.
©Robomatter – Distribution or copying without permission is prohibited. 3B STEM Computer Science 1 ©Robomatter – Distribution or copying without permission.
Art 315 Lecture 6 Dr. J. Parker. Variables Variables are one of a few key concepts in programming that must be understood. Many engineering/cs students.
Sega 500 Placing target boxes on the HUD Jeff “Ezeikeil” Giles
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.
Edusoft Training for LAUSD © Copyright 2004 Edusoft, Inc. | December Edusoft Training Scanning, Uploading, and Viewing Results.
Institute for Personal Robots in Education (IPRE)‏ CSC 170 Computing: Science and Creativity.
Moving Around in Scratch The Basics… -You do want to have Scratch open as you will be creating a program. -Follow the instructions and if you have questions.
Test Environment Algorithm Program Requirements/ Enhancements Analyze the Problem and Design a Solution Programming Software Translates the Source Code.
Copyright © The OWASP Foundation Permission is granted to copy, distribute and/or modify this document under the terms of the OWASP License. The OWASP.
Joseph Dowden Philip Ho James Gedarovich.  Pick up and play game  Images scroll vertically  Bitmapped ground  Sprites  Ship  Hazards  Bullets 
Shooters in GameMaker J Parker.
Computer Graphics Rendering 2D Geometry CO2409 Computer Graphics Week 2.
Final Project Proposal Space Invaders By Jordan Mahaffey.
Slide 1 Copyright © 2004 Pearson Education, Inc..
Copyright © Curt Hill The IF Revisited If part 4 Style and Testing.
Introduction to KE EMu Unit objectives: Introduction to Windows Use the keyboard and mouse Use the desktop Open, move and resize a.
Variables and Random Numbers Computer App Session 4.
Welcome to... A Game of X’s and O’s. Another Presentation © All rights Reserved
Copyright © 2015 Curt Hill Building a Simple Level No UnrealScript but several editors.
First Project: Dance Dance Sprite  Write a dance with your sprite (You pick or create the sprite)  Incorporate as many of the Motion Commands as you.
Computer Graphics Matrices
Using MIT Scratch for Programming and Control Exercise 4 – Cat and Dog game Year 9 ICT Autumn Term 2007.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III.
Scratch Programming Lesson 1 Moving objects with sound and changing colours.
Choose Sprite. Add collision event for object and add score action. Set your score to plus 100 and check relative.
Key Applications Module Lesson 12 — Word Essentials Computer Literacy BASICS.
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
CHANGES  Fixed dug dirt bug  Background Color + Glow  Random Level Generation  Point Value Display  New sounds.
DAY 4. MAKING SOMETHING ‘JUMP’ Simple! Move it a certain amount ‘up’ Glide back to your original spot.
Index Background Costumes Making object walk smoothly Controlling an object with the keyboard Control an object with the mouse Changing costume when hit.
Chapter 11: Scrolling with Greenfooot. What Is Scrolling? Scrolling is an important and often necessary concept in games. It can be used to: a)Convey.
Equation for a Vertical Line and a Horizontal Line
Chapter 4 - Finishing the Crab Game
Game Description Story Goals Controls. Game Description Story Goals Controls.
Quiz : Part 3 - The coordinate system
Copyrights apply.
6.2 Volume: The Disc Method
Introduction to C++ Programming
Run-on / Fused sentences
The In’s & Outs of Probability
Web Development & Design Foundations with H T M L 5
Gladys Nzita-Mak - Storyboard
Flappy bird Demo: Lesson 5 Flappy bird Demo:
Put it all together Lesson 5.
MTA-4201 Game Programming Chapter 8 : Scrolling Background & Font
Transparency & magic pixel
Lesson Eleven Moving Backgrounds.
Presentation transcript:

Copyright © 2002 Bolton Institute Scrolling Andrew Williams

Copyright © 2002 Bolton Institute scrollh The first example simply scrolls horizontally –Look at screenRect in the program –Read the comments in the program

Copyright © 2002 Bolton Institute scrollv This is the equivalent of scrollh, only with vertical scrolling –Obviously, it is scrolling the “wrong way” –Again, screenRect is the key

Copyright © 2002 Bolton Institute scrollhsprite1 Adding a sprite to the example Although it looks right, it’s actually wrong. The sprite is in screen space and the background scrolls in world space

Copyright © 2002 Bolton Institute scrollhsprite2 This time, although it looks wrong, it is actually correct! –Both background and sprite live in the same coordinate system

Copyright © 2002 Bolton Institute scrollhsprite3 In this version, we move the sprite in an attempt to “keep up with” the background –But is this the right approach?

Copyright © 2002 Bolton Institute scrollhsprite4 This is probably more correct: –The sprite moves in world space –We move the “viewport” on the background as the sprite moves

Copyright © 2002 Bolton Institute scrollhsprite5 If we use this approach, we can place other sprites in world space and wait for our sprite to encounter them

Copyright © 2002 Bolton Institute scrollhsprite6 Simple control of the player’s sprite –Notice particularly the new, more complex approach to keyboard control This fixes the problems we’ve been having with the PS2

Copyright © 2002 Bolton Institute scrollhsprite7 This time there is no automatic movement of the player’s sprite –We move forward using the right-arrow key –Whether this is what you want is up to you

Copyright © 2002 Bolton Institute scrollhsprite8 Random location of the enemies –Look out for srand(...) and rand() The s stands for “seed”