/gosu-scrolling-shooter

Project for the speed sprint workshop [first presented at Toronto Ruby Hack Night, January 28, 2016]

Primary LanguageRubyMIT LicenseMIT

gosu-scrolling-shooter

Project for the speed sprint workshop [first presented at Toronto Ruby Hack Night, January 28, 2016]

This project, based on the gosu-examples project, has been selected to be a part of the speed-sprint workshop. The speed-sprint project can be found here: https://github.com/k00ka/speed-sprint.

User Stories

  1. Shoot stars to score points + collisions with stars kill you

Players report collecting stars in lame. Players should have to shoot the stars to score points. Colliding with stars should also kill the player. Player should also see how many lives they have.

  1. New life every 50 points + enemy “obstacles” that kill you

Players should receive a new life for every 50 stars destroyed. But more lives don't come cheaply. New obstacles should appear that can collide with the player.

  1. Shields with power limit and recharge

Stars and obstacles are hard to dodge. Let players have a shield they can activate for a short duration that prevents them from exploding.

  1. Enemies shoot back

Add some new enemy types that appear and shoot at the player. Don't make them too smart!


For #1: Added Player lives. Initialized to 5. Decrements at "collect stars" Player has an method is_dead? When player.is_dead?, we display a message.

Shooting beams

Added methods for ship to shoot beams.

Updated the draw method to draw beams.

TODO: make explode method in Star class. See Beam#update:175

Team 3

  • add code for time delta
  • every ten seconds you gain a life (configure in Player#update_delta)