Video Game Package Intro 1 Last Edited 1/10/04CPS4: Java for Video Games Introduction.

Slides:



Advertisements
Similar presentations
CompSci Today’s topics Java Recursion in Graphics Writing a Class Simple Animation Upcoming Simulation Reading Great Ideas, Chapters 5.
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.
Written by: Dr. JJ Shepherd
CompSci Applets & Video Games. CompSci Applets & Video Games The Plan  Applets  Demo on making and running a simple applet from scratch.
Intro to Programming Algebra-Geometry. Computer Programming? What is programming? The process of writing, testing, and maintaining the source code of.
Aalborg Media Lab 23-Jun-15 Inheritance Lecture 10 Chapter 8.
An intro to programming concepts with Scratch Session 2 of 10 sessions I/O, variables, simple computing.
1 Flash Programming Introduction Script Assist. 2 Course Description This course concentrates on the teaching of Actionscript, the programming language.
SE320: Introduction to Computer Games Week 8: Game Programming Gazihan Alankus.
INTRODUCTION TO SCRATCH. About Me Resources Scratch Website Learn Scratch Washington-Lee Computer.
Intro.1 Computer Science 4: Java for Video Games Jam Jenkins D122 LSRC Dr. Dietolf Ramm D226 LSRC Instructors
CompSci Computer Science 4: Java for Video Games Jam Jenkins D305 LSRC Dietolf (Dee) Ramm D226 LSRC Instructor
Using FangEngine The FangEngine is created by Brian C. Ladd & Jam Jenkins Presentation by Pepper With much credit to: Jenkins, Jam & Brian C. Ladd. Introductory.
Every week: Sign in at the door If you are new: Fill in Registration Form Ask a Mentor how to get started Make sure you are on the Athenry Parents/Kids.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
Applets & Video Games 1 Last Edited 1/10/04CPS4: Java for Video Games Applets &
Introduction to Scratch!
Inheritance & Interfaces. The Plan ● Motivate Inheritance ● Motivate Interfaces ● Examples ● Continue Practice on Observer/Observable.
Sample Video Game & Sound. The Plan 1.Game Theme 2.Game Structure 3.Sprites 4.Trackers 5.Collisions 6.Score 7.Levels 8.Splash Screens 9.Design 10.Implementation.
Locally Edited Animations We will need 3 files to help get us started at
Enhancing JavaScript Using Application Programming Interfaces (APIs)
Exploring Computer Science 2/23/15 2/23 Develop a Scratch story project -Brainstorming 2/24 Develop a Scratch story project –Developing 2/25 Develop a.
Lab 6: Shapes & Picture Extended Ellipse & Rectangle Classes Stand-Alone GUI Applications.
Object Oriented Programming Lecture 4: Refactoring, An Applet Example, Idiom - Animation applets, Introduction to the Laboratorial exercise www2.hh.se/staff/jebe/oop2005/
Computer Science II 810:062 Section 01. How is CS I different from CS II? When you teach Java there are a series of decisions that have to be made…
CoderDojo Roscommon. Today's Ninja Challenge: Create a GhostBuster Game Like This.
Intro to Computers By Alex Pu Computational Thinking: Overview Making Information Available to the World with HTML an d Web Pages Desktop Publishing with.
Graphics and Event-Driven Programming in Java John C. Ramirez Department of Computer Science University of Pittsburgh.
Sample Video Game & Sound. The Plan 1.Game Theme 2.Game Structure 3.Sprites 4.Trackers 5.Collisions 6.Score 7.Levels 8.Splash Screens 9.Design 10.Implementation.
MSc Workshop - © S. Kamin, U. ReddyLect 3 - GUI -1 Lecture 3 - Graphical User Interfaces r GUI toolkits in Java API r JFrame r GUI components.
SCRATCH. Course Outline Session 1 – 8.45am to am  Introduction  Basics of Scratch programming - Control / Movement / Looks and Sound  Example.
Lec 16 Adding Mouse and KeyEvent handlers to an Applet Class.
1 University of Utah – School of Computing Computer Science 1021 "Applets and Applications"
Java Methods Methods contain a group of instructions that together perform a single task. For example if I want to perform the task of “making a pizza”,
Intro to Applets. Applet Applets run within the Web browser environment Applets bring dynamic interaction and live animation to an otherwise static HTML.
Iteration 1 Looping Structures. Iteration 2 The Plan While not everyone understands: 1.Motivate loops 2.For loops 3.While loops 4.Do-while loops 5.Equivalence.
Image #1 Getting Started
EGR 2261 Unit 11 Classes and Data Abstraction  Read Malik, Chapter 10.  Homework #11 and Lab #11 due next week.  Quiz next week.
CompSci Introduction to Jam’s Video Game Package.
CompSci Video Game Package Design Design of the Video Game Package.
Web Programming Overview. Introduction HTML is limited - it cannot manipulate data How Web pages are extended (include): –Java: an object-oriented programming.
Written by: Dr. JJ Shepherd
CompSci 427jd.1 Javadoc. CompSci 427jd.2 Javadoc The Plan  What is Javadoc?  Writing Javadoc comments  Using the Javadoc tool  Practice.
CS 5JA Introduction to Java Graphics One of the powerful things about Java is that there is.
CompSci 44.1 Game Package Introduction to Jam’s Video Game Package.
Today's Ninja Challenge: Write Your First Computer Game!
1 CSC 221: Computer Programming I Fall 2009 Introduction to programming in Scratch  animation sprites  motion, control & sensing  costume changes 
ICT/COMPUTING RULES Only use software allowed by the teacher
12-Jun-16 Event loops. 2 Programming in prehistoric times Earliest programs were all “batch” processing There was no interaction with the user Input Output.
Introducing Scratch Learning resources for the implementation of the scenario
Chapter 5 Introduction to Defining Classes Fundamentals of Java.
CompSci Inheritance & Interfaces. CompSci Inheritance & Interfaces The Plan  Motivate Inheritance  Motivate Interfaces  Examples  Continue.
Greenfoot.
Written by: Dr. JJ Shepherd
Part II Reference:
JavaDoc CECS277 Mimi Opkins.
Introduction to Object-Oriented Programming
Learn… Create… Program
Chapter 10 Algorithms.
Learn… Create… Program
An intro to programming concepts with Scratch
Event loops 17-Jan-19.
Image #1 Getting Started
Week 1 - Introduction and Objects
Learn… Create… Program
Learn… Create… Program
Game creation using scratch
CSC 221: Introduction to Programming Fall 2018
Presentation transcript:

Video Game Package Intro 1 Last Edited 1/10/04CPS4: Java for Video Games Introduction to Jam’s Video Game Package

Video Game Package Intro 2 Last Edited 1/10/04CPS4: Java for Video Games The Plan Scope of Video Game Package Basic Design of the Video Game Package Steps to making a game How the Pong was made Limitations of the Video Game Package

Video Game Package Intro 3 Last Edited 1/10/04CPS4: Java for Video Games Scope of the Video Game Package Goals of Jam’s Video Game Package –Simple to use –Reasonably fast –Designed to be examined and modified for academic purposes in computer science courses What Jam’s package is not designed for –High speed animation/user input –Scripting games –Complex games

Video Game Package Intro 4 Last Edited 1/10/04CPS4: Java for Video Games Basic Design of the Video Game Package Animation Canvas Keyboard Mouse GameLoop JFrame Or Applet Tracker Sprite Tracker Sprite Tracker Sprite

Video Game Package Intro 5 Last Edited 1/10/04CPS4: Java for Video Games Basic Design of the Video Game Package Tracker The Tracker is what Makes the BallSprite move

Video Game Package Intro 6 Last Edited 1/10/04CPS4: Java for Video Games Basic Design of the Video Game Package Point2D.Double getLocation() double getScaleFactor() double getRotationAddition() void advanceTime() Tracker

Video Game Package Intro 7 Last Edited 1/10/04CPS4: Java for Video Games Basic Design of the Video Game Package Tracker Sprite

Video Game Package Intro 8 Last Edited 1/10/04CPS4: Java for Video Games Basic Design of the Video Game Package Has instance variables, and mutator and accessor methods for: Shape Location Size Rotation Color Tracker Sprite

Video Game Package Intro 9 Last Edited 1/10/04CPS4: Java for Video Games Basic Design of the Video Game Package Animation Canvas Tracker Sprite Tracker Sprite Tracker Sprite

Video Game Package Intro 10 Last Edited 1/10/04CPS4: Java for Video Games Basic Design of the Video Game Package AnimationCanvas is a JPanel with a collection of Sprites that paints itself by painting all of its Sprites Animation Canvas Tracker Sprite Tracker Sprite Tracker Sprite

Video Game Package Intro 11 Last Edited 1/10/04CPS4: Java for Video Games Basic Design of the Video Game Package GameLoop adds: animation interaction via –Keyboard –Mouse Keyboard Mouse GameLoop Animation Canvas Tracker Sprite Tracker Sprite Tracker Sprite

Video Game Package Intro 12 Last Edited 1/10/04CPS4: Java for Video Games Basic Design of the Video Game Package JFrame or Applet used to: Put the game on the screen Start the game Provide game control JFrame Or Applet

Video Game Package Intro 13 Last Edited 1/10/04CPS4: Java for Video Games Basic Design of the Video Game Package Animation Canvas Keyboard Mouse GameLoop JFrame Or Applet Tracker Sprite Tracker Sprite Tracker Sprite

Video Game Package Intro 14 Last Edited 1/10/04CPS4: Java for Video Games Steps to Making a Game 1.Extend GameLoop.java –In Constructor a.Make Sprites b.Make Trackers c.Attach Trackers to Sprites d.Add Sprites to AnimationCanvas –In advanceFrame provide game logic 2.Make a JFrame or Applet 3.Add extended GameLoop to JFrame or Applet 4.setFrameRate to start the game

Video Game Package Intro 15 Last Edited 1/10/04CPS4: Java for Video Games Basic Design of the Video Game Package Animation Canvas Keyboard Mouse GameLoop JFrame Or Applet Tracker Sprite Tracker Sprite Tracker Sprite 1.Extend GameLoop.java –In Constructor a.Make Sprites b.Make Trackers c.Attach Trackers to Sprites d.Add Sprites to AnimationCanvas –In advanceFrame provide game logic 2.Make a JFrame or Applet 3.Add extended GameLoop to JFrame or Applet 4.setFrameRate to start the game

Video Game Package Intro 16 Last Edited 1/10/04CPS4: Java for Video Games How Pong was Made 1.BallSprite was written to extend Sprite 2.WallSprite was written to extend Sprite 3.ProjectileTracker was written to implement a Tracker 4.PongLoop was written to extend GameLoop 5.Pong was written to use PongLoop

Video Game Package Intro 17 Last Edited 1/10/04CPS4: Java for Video Games How Pong was Made Some of the more complex parts of Pong that we’ll talk about in more detail later: Loops Conditionals Event handling Inheritance & Interfaces Collections Collision detection

Video Game Package Intro 18 Last Edited 1/10/04CPS4: Java for Video Games How Pong was Made What you will need to know shortly: Basic classes in the package Basic structure of the package Basic steps to making the game General idea about how Pong.java and PongLoop.java work Enough familiarity to make minor modifications to BallSprite and PongLoop

Video Game Package Intro 19 Last Edited 1/10/04CPS4: Java for Video Games How Pong was Made What you don’t need to understand yet: All of the classes in the package All of the code in the basic classes How to make your own classes like Pong and PongLoop from scratch

Video Game Package Intro 20 Last Edited 1/10/04CPS4: Java for Video Games How Pong was Made What you’ll be doing in the next homework: (in addition to problems from Big Java) Altering BallSprite Altering ProjectileTracker …and it will be fun (when it works)

Video Game Package Intro 21 Last Edited 1/10/04CPS4: Java for Video Games How Pong was Made Let’s take a look at two classes: 1.Open up a web browser 2.Go to the course website and download pong.jar to the desktop (from code link) 3.Open up Eclipse 4.Import pong.jar 5.Look in tipgame for BallSprite.java 6.Look in tipgame for ProjectileTracker.java