UFO Abducts Sheep - PowerPoint PPT Presentation

1 / 32
About This Presentation
Title:

UFO Abducts Sheep

Description:

You must avoid the German Shepherds, guardians of Sheep. If you capture a German Shepherd, you will likely garner the unwanted attention of UFO Hunters. ... – PowerPoint PPT presentation

Number of Views:445
Avg rating:3.0/5.0
Slides: 33
Provided by: A1188
Category:
Tags: ufo | abducts | german | sheep | shepherd | ufo

less

Transcript and Presenter's Notes

Title: UFO Abducts Sheep


1
UFO Abducts Sheep!
  • By Tracy Ke

2
Game Slide
3
Game Theme
  • You are a hungry bunch of aliens aboard a UFO
    Fleet searching for food on planet earth. You
    find yourself over a pasture of roaming sheep!
    Viola! Dinnertime!
  • The object of the game is for you to capture as
    many sheep as possible for dinner.
  • However, its not going to be that easy

4
Game Theme (cont.)
  • You must avoid the German Shepherds, guardians of
    Sheep. If you capture a German Shepherd, you will
    likely garner the unwanted attention of UFO
    Hunters.
  • UFO Hunters are roaming the pasture, waiting to
    shoot you down. Their silver bullets do serious
    damage to your ship. Avoid them at all costs!

5
Game Design
  • The object of the game is to get as many points
    as possible by capturing as many sheep as
    possible while avoiding German Shepherds and
    dodging the UFO Shooters bullets.
  • Capture Sheep 20 points
  • Accidentally capture Shepherds -20 points
  • Hit by UFO Shooters bullets -10 points
  • Time You have 15 seconds to accomplish your task
    of capturing sheep.

6
Game Design (cont.)
  • There are Three Levels
  • Level 1 No UFO Shooters. Sheep and Shepherds
    move slowly.
  • Level 2 3 UFO Shooters shooting at a moderate
    pace. Sheep and Shepherds move quickly
  • Level 3 3 UFO Shooters shooting very quickly.
    Many bullets. Sheep and Shepherds move very
    quickly.

7
Game Design (cont.)
  • One Player Game
  • If you have over 100 after the most difficult
    level, Level 3, you WIN and a Animated Splash
    Screen comes up.
  • Otherwise, GAME OVER!
  • MultiPlayer Game
  • Score Sprite keeps track of the game score of
    each player through each successive level.
  • The player with the highest score at the end of 3
    Levels WINS!

8
Technical Overview
  • SheepLoop extends GameLoop.
  • SheepLoop is based on Jams PongLoop class.
  • Other Borrowed Classes (non-gaming engine)
  • (1) TimeUpdater Wackadot
  • (2) ProjectileTracker PongLoop
  • (3) HorizontalScrollTracker Modified from the
    VerticalScrollTracker from SimpleScroller.

9
Sprites
  • UFO, UFO Shadow (Array)
  • Sheep (Array)
  • SpinSheep (ArrayList)
  • Shepherd (Array)
  • SpinShepherd (ArrayList)
  • UFO Shooters (Array)
  • UFO Shooters Bullets (ArrayList)
  • Walls (invisible)
  • Scrolling Cloud Background
  • Static Grass Background

10
Sprite Enhancements
  • Sheep, Shepherds, and Shooters are assigned
    random starting velocities.
  • Spaced evenly along a line at the start of game.
    However, they are allowed to move before the game
    starts (SplashScreen).
  • Projectile Tracker
  • Sheep, Shepherds and Shooters bounce off of each
    other and then the velocities change when they
    bounce.

11
Sprite Rotation Enhancement
  • Once captured, the Sheep and Shepherds rotate and
    shrink as they are sucked up by the UFOs.
  • When the frame is advanced, the velocity of the
    spinning sheep and shepherds is updated to point
    towards the current UFO Location.

12
Image Enhancements
  • UFO Shadow is made transparent by changing the
    Alpha Value of RGB-A.
  • Sprite Backgrounds are made transparent with
    Photoshop (Thanks Chris).
  • UFO shadow moves further away from the UFO as you
    move the mouse UP, and closer to the UFO as you
    move your mouse DOWN.
  • Creates an illusion of depth.

13
Image Enhancements (cont.)
  • Multiple Players
  • Each player has a different colored UFO Shadow
    (for up to 4 players)
  • Created by making an Array of Shadow Colors.
  • Score Sprite
  • Each player has a different colored Score Sprite
    to match his/her shadow.
  • The players score is indicated on his screen as
    My Score

14
Animated Splash Screens
  • Each new level is announced by a Splash Screen
    that tells what level it is.
  • The level is the StringSprite.
  • The end of the game is announced either by
    Winner or Game Over.
  • SplashSprite rotates and gets bigger.
  • At Time1 sec, SplashSprite stops spinning but
    keeps getting bigger.

15
Audio Files Added
  • Sheep captured ? BAA
  • German Shepherds captured ? BARK
  • UFO Shooters shoot bullets ? LASER
  • UFO collision with bullets ? GUNSHOT

16
Background
  • Scrolling Backgrounds
  • Cloud.jpg (SimpleScroller Example)
  • Grass.jpg (Scroller Example)
  • Score counter (Implemented from Pong)
  • Multiple score indexes for MultiPlayer Game.
  • Timer (Implemented from Wackadot)

17
Background Enhancements
  • Illusion of 3D created by dividing up the frame
    into 2 parts
  • The sheep can only move about in the bottom third
    of the screen while the UFO can only move in the
    upper 2/3s.
  • Walls made invisible by placing the background
    splash screens over the lines.
  • Walls made thick enough to guard against sheep,
    shepherds and shooters escaping.

18
Collisions
  • Handle Collisions
  • Detects the collision of sheep and/or shepherds
    with the shadow when the Mouse is clicked.
  • Detects the collision of bullets with UFO.
  • Once there is a collision, the sheep and/or
    shepherds spiral up towards the UFO and shrink.
  • Once the sheep/shepherds collide with the UFO,
    they disappear.
  • UFO Shooters shoot bullets randomly at the UFO
  • Bullets disappear when they collide with the UFO
    or leave the canvas.

19
JavaDoc
  • JavaDoc
  • All Classes and Methods commented.
  • Parameters explained.
  • Return values explained.
  • getShadowLocation
  • The position of the shadow
  • Purpose of methods explained.
  • Demonstration of Game
  • User Instructions
  • Applet embedded in the webpage.

20
Original Timeline
  • November 7th Design of video game classes,
    methods, and theme.
  • November 14th Implementation of basic game
  • November 21st Testing/Debugging
  • December 1st Documentation
  • December 7th Enhancements
  • December 11th Release

21
Revised Timeline
  • Nov. 7th (1) Game theme created (2) Basic
    classes implemented (3) Basic Methods
    constructed.
  • Nov. 14th (1) Basic sprites and image added as
    arrays and enhancements created. (2) Audio files
    added.
  • November 21st (1) Testing/Debugging.
  • Dec. 1st (1) Networking the game (2) Networked
    Applets linked to website.
  • Dec. 7th (1) Documentation. JavaDoc generated
    and all classes and methods commented and
    authored.
  • Dec. 11th (1) Creating the presentation
    balancing descriptive need with technical need.
    (2) Making sure all comments are accurate and
    descriptive.

22
TimeLine Comparison
  • I accomplished all that I set out to do in my
    original timeline.
  • The game has the basic functionality I described.
  • Documentation done after the enhancements were
    added.
  • I made more enhancements than I originally set
    out to.

23
Extra Enhancements
  • Multiplayer Game Networked Applets.
  • Spinning Sheep and Shepherds chasing UFO.
  • Different player colors for UFO Shadows and
    ScoreSprites.
  • Scrolling Background
  • Different levels of difficulty with additional
    bullets and higher speeds.

24
Debugging
  • Flashing Sprites
  • An issue with the version of the Gaming Engine
  • The new version did not have this bug.
  • Score Sprites
  • The Score Sprites would not remember the score
    after each level.
  • Had to remove a Score0 statement that was being
    called every time a new level started.

25
Debugging (cont.)
  • Applet
  • There were also problems with getting a
    functional applet on the website, making sure
    that the applet tags were accurate.
  • I had to look at Jams sample games to get the
    correct applet Tag.
  • JavaDoc
  • There were problems with the JavaDoc after I
    renamed instead of refracted the folder from
    pong to sheep.
  • I had to refresh and update all the instances of
    pong in the file to make it match sheep.

26
Possible Additional Enhancements
  • Adding Music to the Background
  • Although then the sounds might be too
    overwhelming.
  • Adding Artificial Intelligence
  • i.e. Making the sheep move radially from the
    shadow at a slower rate than the UFO can move.

27
Grading Criteria
  • Game Functionality 240 points
  • Most basic game functions entirely correctly
    100 points
  • Graphics are implemented 20 points
  • Collisions completely work 20 points
  • Trackers are attached and functional 20 points
  • Mouse control implemented 20 points
  • Score and Timer 20 points

28
Grading Enhancements Simple
  • Several Enhancements 50/50
  • Sprite Enhancements 20 points
  • Sound Effects 10 points
  • Background Enhancements 10 points
  • Collision Enhancements 10 points
  • Bullets disappear from screen after it leaves the
    canvas, freeing up memory.

29
Grading Enhancements Complex
  • Complex Enhancements 90/50
  • Rotating and Shrinking ImageSprites 10 points
  • Sprites Chasing UFO 10 points
  • Score Sprite Enhancements 20 points
  • Game Networking 40 points
  • Rotational Splash Screens 10 points

30
Grading Javadoc
  • Javadoc 100/100 points
  • Every class is authored 20/20 points
  • Every class is commented 20/20 points
  • Method comments 60/60 points.
  • Parameters explained 20/20 points
  • Return values explained 20/20 points
  • Purpose of method explained 20/20 points

31
Grading Webpage
  • Webpage 100/100 point
  • Functional Applet link 30/30 points
  • Help Screen 25/25
  • Javadoc link 15/15 points
  • Game progress proposal links 30/30 points

32
Total Grading
  • Javadoc 100/100
  • Webpage 100/100
  • Game Functionality 240/200
  • TOTAL 440/400 (110)
Write a Comment
User Comments (0)
About PowerShow.com