cse442-fall-2019-offering / 442projects-chicken-add

442projects-chicken-add created by GitHub Classroom
0 stars 0 forks source link

Gun #77

Open zatenenb opened 4 years ago

zatenenb commented 4 years ago

As a player, I want the character to be able use a gun in the environment, and be able to shoot bullets with it. The character should always have it's gun ready to shoot, so I will add a gun to the character sprite that can be used to shoot bullets.

zatenenb commented 4 years ago

Super useful link for adding animations:

https://www.youtube.com/watch?v=eXIuizGzY2A&list=LLC183YwNWwi8cx-Dw0rMJZA&index=1

zatenenb commented 4 years ago

Acceptance test #1:

  1. Start the game
  2. Click the 'play' button
  3. Sprite will by default by in 'idle' animation, and sprite animates with gun pointed
  4. Any time sprite returns to rest (from jumping/running) sprite re-enters idle animation.

Acceptance test #2:

  1. Start the game
  2. Click the 'play' button
  3. When you press the right arrow/d key, the sprite moves right and the running animation plays with gun pointed right.
  4. When you press the left arrow/a key, the sprite moves left and the running animation plays with the gun pointed left.

Acceptance test #3:

  1. Start the game
  2. Click the 'play' button
  3. When you press the up arrow/w key, the sprite jumps, and enters a 'jumpin' animation with the gun pointed in the direction the sprite is facing.