GTECH 731 Lab Session 10 11/2/10 Lab 9 – ArcObjects Pseudo-code Example.

Slides:



Advertisements
Similar presentations
Game Making with Alice Eat the Hay Game
Advertisements

Microsoft ® Office Training Get up to speed with the 2007 system presents:
Main Menu SquaredCrazy Mouse Quit Important: Use the Quit button located on the top right of this slide to exit the presentation! Why? Created by Ethan.
Microsoft® Small Basic
Unit 3 Day 4 FOCS – Web Design. No Journal Entry.
© 2012 Microsoft Corporation. All rights reserved. Take control with charms. Working in a consistent way, charms are five simple system commands that help.
Drawing as a discussion tool will be broken down into discussion sessions. The artist displays the drawing and the group states something about the picture.
Lets Play Catch! Keeping Score in Alice By Francine Wolfe Duke University Professor Susan Rodger May 2010.
© 2010 Bennett, McRobb and Farmer1 Use Case Description Supplementary material to support Bennett, McRobb and Farmer: Object Oriented Systems Analysis.
App Inventor Barb Ericson July 3, 2013.
GTECH 731 Lab Session 10 11/2/10 Lab 8 – Simple Agent Model Review Exploring ArcObjects Lab 9 – ArcObjects.
Game Design and Programming. Objectives Classify the games How games are design How games are implemented What are the main components of a game engine.
Stay Connected: Social Media and Digital Space Video Sharing via Language Learning Center December 11 th, 2009 Brittany Sherman ‘12 & Carla Drumheiser’11.
Exploring Visual Programming Stagecast Creator Tutorial, Activity I: Kids Smoking on the Playground Visual Programming Group Center for Human-Computer.
Cosc 4755 Phone programming: GUI Concepts & Threads.
GTECH 731 Lab Session 6 10/12/10 Quiz Review Lab 5 Review Lab 6 Intro.
GTECH 731 Lab Session 9 11/2/10 Lab 7 – Geotools Review Lab 8 – Simple Agent Model Semester Project.
SCRATCH This Design Notebook belongs to:. 3 What are the different ways you interact with computers? List your answers here: 5.
Sequencing Miss Regan. Blood Hound  Does anyone know what the Bloodhound project is?  Video 1 Video 1  Video 2 Video 2  Link to website Link to website.
CIS 205—Web Design & Development Flash Chapter 1 Getting Started with Adobe Flash CS3.
By Mr. Lee. Backgrounds The image that appears in the background (duh!). This might be a horizon, or clouds, trees and rainbows in the distance If you’re.
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
Create an Image Map Web Publishing & Design. Hot Spots  hot spot: An area on an object containing a hyperlink. An entire object can be a single hot spot,
Photograph as Background Drag the resize boxes until the photo fills the screen From the Draw menu choose Order then Send to back. Select a text color.
The ultimate quiz. Objective Can I improve my quiz program by adding some new features? How do I change the look of my form? How do I link my code to.
Visual Basic .NET BASICS
Continuous February 16, Test Review What expression represents the zip car eligibility rules of at least 18 years old and no incidents?
Learning Unity. Getting Unity
Game Maker Terminology
Making Python Pretty!. How to Use This Presentation… Download a copy of this presentation to your ‘Computing’ folder. Follow the code examples, and put.
Java Applets: GUI Components, Events, Etc. Ralph Westfall June, 2010.
WebView is an online booking system that lets you look and apply for work experience placements. It also has a journey planner to help you figure out.
1 CSC160 Chapter 7: Events and Event Handlers. 2 Outline Event and event handlers onClick event handler onMouseOver event handler onMouseOut event handler.
Computer Game Design ActionScript is… Object-oriented programming Everything you do in ActionScript does something to some object* Some objects.
WDMD 170 – UW Stevens Point 1 WDMD 170 Internet Languages eLesson: Variables, Functions and Events (NON-Audio version) © Dr. David C. Gibbs WDMD.
The BIG idea CHAPTER OUTLINE NEW CHAPTER Motion CHAPTER The motion of an object can be described and predicted. An object in motion changes position. Speed.
Dr Nick Mitchell (Room CM 224)
AP Human Geography GRAVITY MODEL.
Open a new Flash File Action Script 2.0. Create a button like you did last lesson and name it Click to Play.
Galactic Mail Part 2. Winning and Losing Exploding Asteroids Including Scoring Adding Levels And more.
Scratch for Interactivity Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
Get Going On ….. Load the word file ‘Glossary’ and complete it. You will have homework today.
Introduction to: Python and OpenSesame FOR PROS. OpenSesame In OpenSesame you can add Python in-line codes which enables complex experiment. We will go.
CS320n –Visual Programming Execution Control with If / Else and Boolean Functions (Slides 6-2-1) Thanks to Wanda Dann, Steve Cooper, and Susan Rodger for.
Computer Programming Modeling a Passive Solar Home.
Designing User Experience (UX) This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.Creative Commons.
1.Select an Explorer from the list located on my Class Website: 1.From the CPSB homepage, select Combre-Fondel from the “Select a School” drop-down box.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
ENGINEERING 1D04 Tutorial 4. What are we doing today? Focus Functions Scope of Variables Returning Values Objects Graphics library Aliasing Events Mouse.
Scratch Programming Cards
Customer Journey Mapping
Complex Conditionals Human languages are ambiguous
Scratch for Interactivity
Exploring Mathematical Relationships Module 5: Investigation 3
Introduction to Event-Driven Programming
FOP: Buttons and Events
HTML & teh internets.
Event-driven programming
Call for How to Unblocking Flash Player on Safari?
Introduction To Programming with LEGO NXT 2
HOW TO ACTIVATE ROKU PREMIERE ONLINE? Smart Tv Help Line Toll Free ( ) Visit Our Website :-
Introduction to Events
Ellen Walker Hiram College
Learning Java with Alice 3.0 Game Design Kathy Bierscheid
Unit 11: Interactive Presentations
Designing User Experience (UX)
iMovie basics What is the purpose of iMovie?
The storytelling icon game
Presentation transcript:

GTECH 731 Lab Session 10 11/2/10 Lab 9 – ArcObjects Pseudo-code Example

Lab 9 – ArcObjects Questions?

Designing Your Project Have programming project in mind with geographic aspect Agent model More extensive drawing package Raster image manipulation First step might be to visualize or imagine what you want to see happen on the screen What happens when button “X” is clicked? What happens when the mouse moves over object in scene? What happens if mouse is clicked in image? Describe, using plain language, what happens when you use your program Then outline of steps needed to make your vision happen Keep it abstract – don’t focus on minute programming steps Map out high level, abstract steps to accomplish your goal

Example – Nautical Navigation Game A player guides a ship from a “Home Port” to a “Destination Port” while avoiding being pulled into a “Whirlpool”

What is the Functionality of the Game Click mouse to create “puff of wind” to “blow” the ship Wind comes from click point and moves out in all directions Ship moves in opposite direction or away from mouse click position “Power” of wind is inversely proportional to distance of click point to ship Whirlpool has “attractive power” pulling ship into the center Power is inversely proportional to whirlpool distance to ship Ship is “docked” at a port until clicks of “wind” move it away so that it no longer touches the port When the ship is not “docked”, the Whirlpool pulls it to the center Can move ship back and forth from port to port Game ends when ship is pulled into whirlpool Click “Restart Button”

What are the basic steps for this or any game? Setup the Game Play the Game End the Game

Basic Steps Broken Down Setup the Game Build the Scene Add Home Port Add Destination Port Add Whirlpool Add Ship Play the Game (based on events) When mouse is clicked If ship not stuck in whirlpool Move ship away from mouse click position Else Restart game At each time step If ship is not docked and ship not stuck in whirlpool Move ship toward whirlpool center End the Game Close program with click of “X” in upper right corner of window

Outline Gives Clues to Coding Requirements Setup the Game Build the Scene Add Home Port Add Destination Port Add Whirlpool Add Ship Play the Game When mouse is clicked If ship not stuck in whirlpool Move ship away from mouse position Else Restart game At each time step If ship is not docked and ship not stuck Move ship toward whirlpool End the Game Program closes with click of “X” in upper right corner of window Port Object Whirlpool Object Ship Object MouseUp Event Handler Boolean Variable “stuck”: interaction with Whirlpool Ship Object “Move” Method Rebuild the Scene Clock Tick Event Handler Boolean variables Stuck, Docked: interact Whirlpool Ports Ship Object “Move” Method Ship object interacts with Whirlpool object

Outline Suggests Other Requirements Setup the Game Build the Scene Add Home Port Add Destination Port Add Whirlpool Add Ship Draw the Scene Play the Game When mouse is clicked If ship not stuck Move ship away from mouse position Check to see if ship docked Redraw the Scene Else Restart game At each time step If ship is not docked and ship not stuck Move ship toward whirlpool Redraw the Scene End the Game Program closes with click of “X” in upper right corner of window

More Detailed Requirements Setup the Game Build the Scene Add Home Port Create Port Class (may need initial information such as location relative to scene) Information about size and position Geometric object (Polygon) Draw method Add Destination Port Ditto above (with different initial information such as location relative to scene) Add Whirlpool Create Whirlpool Class (may need initial information such as location and size relative to scene) Information about attractive force and size Geometric object (Point) Draw method ?

More Detailed Requirements Add Ship Create Ship Class (may need initial information such as direction and location relative to scene) Information about travel direction and current position Geometric object (Polygon) Draw method Move method (one for Wind and one for Whirlpool?) Draw the Scene Draw Home Port Use Draw method Draw Destination Port Use Draw method Draw Whirlpool Use Draw method Draw Ship Use Draw method

More Detailed Requirements Play the Game When mouse is clicked If ship not stuck Move ship away from mouse position Calculate distance and direction from “wind” position to ship position Move Ship according to direction and distance of mouse click to ship Change Ship direction according to direction and distance of mouse click to ship Check to see if ship docked If Ship object overlaps Port object Ship becomes docked Redraw the Scene (as above) Else Restart game

More Detailed Requirements At each time step If ship is not docked (ship stuck condition moved below ) If Ship object overlaps buffer around Whirlpool center Ship becomes stuck If ship not stuck Move ship toward whirlpool Calculate distance and direction from Whirlpool to ship Move Ship according to direction and distance to Whirlpool Redraw the Scene (as above)

Play the Whirlpool Game!