Difference between revisions of "Scratch - Frogger Game"

From WLCS
(Created page with "'''Objective:''' * You will create a game that allows a player to travel around the screen * The player will be able to move around * The player must also avoid cars or enemies ...")
 
Line 7: Line 7:
  
 
'''Requirements'''
 
'''Requirements'''
*# Give your game a simple background
+
# Give your game a simple background
*# Have your stage play some background music
+
# Have your stage play some background music
*# You will need several sprites.
+
# You will need several sprites.
*# 1 player sprite will be the player and it will cross the screen by using the keyboard.   
+
# 1 player sprite will be the player and it will cross the screen by using the keyboard.   
*# 3-5 enemy sprites will be used to move back and forth horizontally or vertically across the screen (the number depends on how big you make them)
+
# 3-5 enemy sprites will be used to move back and forth horizontally or vertically across the screen (the number depends on how big you make them)
*# When you play your game, you want to cross the entire screen without hitting the enemy sprites.
+
# When you play your game, you want to cross the entire screen without hitting the enemy sprites.
*# Start the player off with 3 lives (HINT: use a variable)
+
# Start the player off with 3 lives (HINT: use a variable)
*# If you hit any of the enemy sprites:
+
# If you hit any of the enemy sprites:
*## Subtract one life away
+
## Subtract one life away
*## Play a sound effect of getting hit
+
## Play a sound effect of getting hit
*## Say "Ouch!"
+
## Say "Ouch!"
*## Move the player back to its starting location
+
## Move the player back to its starting location
*# If lives hits 0, then say "Game Over" and end the game
+
# If lives hits 0, then say "Game Over" and end the game
*## Play a sound effect for the "Game Over"
+
## Play a sound effect for the "Game Over"
*# If the player reaches the other side of the screen, then say "You win!"
+
# If the player reaches the other side of the screen, then say "You win!"
*## Play a sound effect for winning
+
## Play a sound effect for winning
*#* Hint: You can use all sorts of different ways to detect how you hit the other side of the screen
+
#* Hint: You can use all sorts of different ways to detect how you hit the other side of the screen
*#* Create a long sprite that you detect hitting OR...
+
#* Create a long sprite that you detect hitting OR...
*#* Check the y-coordinate of the sprite and if it is greater than the upper bound of the screen
+
#* Check the y-coordinate of the sprite and if it is greater than the upper bound of the screen
  
 
'''Additional Bonus Features:'''
 
'''Additional Bonus Features:'''

Revision as of 11:24, 30 September 2013

Objective:

  • You will create a game that allows a player to travel around the screen
  • The player will be able to move around
  • The player must also avoid cars or enemies going back and forth
  • The player wins when he/she reaches the end
  • The player loses a life when he/she hits an enmy

Requirements

  1. Give your game a simple background
  2. Have your stage play some background music
  3. You will need several sprites.
  4. 1 player sprite will be the player and it will cross the screen by using the keyboard.
  5. 3-5 enemy sprites will be used to move back and forth horizontally or vertically across the screen (the number depends on how big you make them)
  6. When you play your game, you want to cross the entire screen without hitting the enemy sprites.
  7. Start the player off with 3 lives (HINT: use a variable)
  8. If you hit any of the enemy sprites:
    1. Subtract one life away
    2. Play a sound effect of getting hit
    3. Say "Ouch!"
    4. Move the player back to its starting location
  9. If lives hits 0, then say "Game Over" and end the game
    1. Play a sound effect for the "Game Over"
  10. If the player reaches the other side of the screen, then say "You win!"
    1. Play a sound effect for winning
    • Hint: You can use all sorts of different ways to detect how you hit the other side of the screen
    • Create a long sprite that you detect hitting OR...
    • Check the y-coordinate of the sprite and if it is greater than the upper bound of the screen

Additional Bonus Features:

  • Add bonus items that give back lives to the player
  • Add increasing difficulty levels
  • Add sprites that move across the screen that need to be used to cross the street (e.g. a moving log that the frog can jump on)