Skip to content

Instantly share code, notes, and snippets.

@stevepentler
Last active March 28, 2016 22:33
Show Gist options
  • Save stevepentler/fc3d40bf81904bae3c04 to your computer and use it in GitHub Desktop.
Save stevepentler/fc3d40bf81904bae3c04 to your computer and use it in GitHub Desktop.

#Fish in a Barrel || Check-in #1

###Team

###User Story

  • User will press start game
  • instructions appear
  • user receives 5 "arrows"
  • When user presses spacebar, arrows is shot down vertically until it either hits a fish or the bottom of the sea
  • Each time a fish is hit, it's (y-coordinate) score is added to the overall score
  • Once a user has used all 5 "arrows" game is over and total score is put above leaderboard and on leaderboard if appropriate
  • User is able to restart the game

Difficulty settings

  • fish at surface swim relatively faster act as obstacles for bigger fish at bottom
  • as time increases fish swim faster making it harder to reach bottom fish

MVP

  1. Create Canvas (blue rectangle 80% of height)
  2. Fish hit boundary and reverse direction along same x axis
  3. Create boat stationary in center
  4. Boat shoots bullets vertically at fixed velocity when spacebar is pressed
  5. Bullet collision with fish results in bullet
  6. fish disappearing fishes y coordinate added to score
  7. Shots remaining counter decreases by 1
  8. When shots remaining counter == 0, Game Over
  9. Leaderboard appears with newest score on top
  10. Leaderboard has link to restart
  11. Fish move faster as time increases

Extensions

  • Fish move up and down along y-axis
  • user adds initials to score on leaderboard

Crazy Extensions

  • p5.js amplitude dependent fish speeds, beginner level is slow song with smooth moving fish, expert is fast song with jerky fish

Current Accomplishments

Questions, Comments, Concerns?

Instructor Section

Points for first check-in (50 possible)

Insructor goals for next checkin

Feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment