├── .ruby-version ├── 01 - Reaction Game ├── game.rb ├── readme.md └── screenshot.png ├── 02 - Snake ├── game.rb ├── readme.md ├── screenshot_1.png └── screenshot_2.png ├── 03 - Pong ├── music.wav ├── ping.wav ├── pong.wav ├── pong_v1.rb ├── pong_v2.rb ├── pong_v3.rb ├── pong_v4.rb ├── readme.md ├── screenshot_v1.png ├── screenshot_v2.png └── screenshot_v3.png ├── 04 - Collision-Detection ├── collision_detection.rb ├── readme.md └── screenshot.png ├── 05 - Platformer game ├── background.png ├── hero.png ├── platformer-game.rb ├── readme.md └── screenshot.png ├── 06 - Asteroids ├── asteroids_v1.rb ├── asteroids_v2.rb ├── asteroids_v3.rb ├── laser.ogg ├── player_1.png ├── player_2.png ├── player_3.png ├── projectile.png ├── readme.md ├── screenshot.png └── v4 │ ├── asteroid.png │ ├── asteroid.rb │ ├── asteroids.rb │ ├── game_screen.rb │ ├── laser.ogg │ ├── player.rb │ ├── player_1.png │ ├── player_2.png │ ├── player_3.png │ ├── player_select_screen.rb │ ├── projectile.png │ ├── projectile.rb │ └── star.rb ├── 07 - Tilesets ├── README.md ├── tilemap.png └── tilesets.rb ├── 08 - Conways game of life ├── README.md ├── game_of_life.rb └── screenshot.png ├── 09 - Demonstration ├── README.md ├── background.png ├── background_music.ogg ├── character.png ├── demo.rb └── jump.ogg ├── 11 - Pairing ├── readme.md └── ship_v1.rb ├── 12 - Hitboxes ├── fish.png ├── hitboxes.rb ├── readme.md └── screenshot.png ├── 13 - Stacker ├── readme.md ├── screenshot.png └── stacker.rb └── readme.md /.ruby-version: -------------------------------------------------------------------------------- 1 | 3.2.1 2 | -------------------------------------------------------------------------------- /01 - Reaction Game/game.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/01 - Reaction Game/game.rb -------------------------------------------------------------------------------- /01 - Reaction Game/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/01 - Reaction Game/readme.md -------------------------------------------------------------------------------- /01 - Reaction Game/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/01 - Reaction Game/screenshot.png -------------------------------------------------------------------------------- /02 - Snake/game.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/02 - Snake/game.rb -------------------------------------------------------------------------------- /02 - Snake/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/02 - Snake/readme.md -------------------------------------------------------------------------------- /02 - Snake/screenshot_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/02 - Snake/screenshot_1.png -------------------------------------------------------------------------------- /02 - Snake/screenshot_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/02 - Snake/screenshot_2.png -------------------------------------------------------------------------------- /03 - Pong/music.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/03 - Pong/music.wav -------------------------------------------------------------------------------- /03 - Pong/ping.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/03 - Pong/ping.wav -------------------------------------------------------------------------------- /03 - Pong/pong.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/03 - Pong/pong.wav -------------------------------------------------------------------------------- /03 - Pong/pong_v1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/03 - Pong/pong_v1.rb -------------------------------------------------------------------------------- /03 - Pong/pong_v2.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/03 - Pong/pong_v2.rb -------------------------------------------------------------------------------- /03 - Pong/pong_v3.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/03 - Pong/pong_v3.rb -------------------------------------------------------------------------------- /03 - Pong/pong_v4.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/03 - Pong/pong_v4.rb -------------------------------------------------------------------------------- /03 - Pong/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/03 - Pong/readme.md -------------------------------------------------------------------------------- /03 - Pong/screenshot_v1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/03 - Pong/screenshot_v1.png -------------------------------------------------------------------------------- /03 - Pong/screenshot_v2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/03 - Pong/screenshot_v2.png -------------------------------------------------------------------------------- /03 - Pong/screenshot_v3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/03 - Pong/screenshot_v3.png -------------------------------------------------------------------------------- /04 - Collision-Detection/collision_detection.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/04 - Collision-Detection/collision_detection.rb -------------------------------------------------------------------------------- /04 - Collision-Detection/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/04 - Collision-Detection/readme.md -------------------------------------------------------------------------------- /04 - Collision-Detection/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/04 - Collision-Detection/screenshot.png -------------------------------------------------------------------------------- /05 - Platformer game/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/05 - Platformer game/background.png -------------------------------------------------------------------------------- /05 - Platformer game/hero.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/05 - Platformer game/hero.png -------------------------------------------------------------------------------- /05 - Platformer game/platformer-game.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/05 - Platformer game/platformer-game.rb -------------------------------------------------------------------------------- /05 - Platformer game/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/05 - Platformer game/readme.md -------------------------------------------------------------------------------- /05 - Platformer game/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/05 - Platformer game/screenshot.png -------------------------------------------------------------------------------- /06 - Asteroids/asteroids_v1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/asteroids_v1.rb -------------------------------------------------------------------------------- /06 - Asteroids/asteroids_v2.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/asteroids_v2.rb -------------------------------------------------------------------------------- /06 - Asteroids/asteroids_v3.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/asteroids_v3.rb -------------------------------------------------------------------------------- /06 - Asteroids/laser.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/laser.ogg -------------------------------------------------------------------------------- /06 - Asteroids/player_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/player_1.png -------------------------------------------------------------------------------- /06 - Asteroids/player_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/player_2.png -------------------------------------------------------------------------------- /06 - Asteroids/player_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/player_3.png -------------------------------------------------------------------------------- /06 - Asteroids/projectile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/projectile.png -------------------------------------------------------------------------------- /06 - Asteroids/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/readme.md -------------------------------------------------------------------------------- /06 - Asteroids/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/screenshot.png -------------------------------------------------------------------------------- /06 - Asteroids/v4/asteroid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/v4/asteroid.png -------------------------------------------------------------------------------- /06 - Asteroids/v4/asteroid.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/v4/asteroid.rb -------------------------------------------------------------------------------- /06 - Asteroids/v4/asteroids.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/v4/asteroids.rb -------------------------------------------------------------------------------- /06 - Asteroids/v4/game_screen.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/v4/game_screen.rb -------------------------------------------------------------------------------- /06 - Asteroids/v4/laser.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/v4/laser.ogg -------------------------------------------------------------------------------- /06 - Asteroids/v4/player.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/v4/player.rb -------------------------------------------------------------------------------- /06 - Asteroids/v4/player_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/v4/player_1.png -------------------------------------------------------------------------------- /06 - Asteroids/v4/player_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/v4/player_2.png -------------------------------------------------------------------------------- /06 - Asteroids/v4/player_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/v4/player_3.png -------------------------------------------------------------------------------- /06 - Asteroids/v4/player_select_screen.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/v4/player_select_screen.rb -------------------------------------------------------------------------------- /06 - Asteroids/v4/projectile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/v4/projectile.png -------------------------------------------------------------------------------- /06 - Asteroids/v4/projectile.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/v4/projectile.rb -------------------------------------------------------------------------------- /06 - Asteroids/v4/star.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/06 - Asteroids/v4/star.rb -------------------------------------------------------------------------------- /07 - Tilesets/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/07 - Tilesets/README.md -------------------------------------------------------------------------------- /07 - Tilesets/tilemap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/07 - Tilesets/tilemap.png -------------------------------------------------------------------------------- /07 - Tilesets/tilesets.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/07 - Tilesets/tilesets.rb -------------------------------------------------------------------------------- /08 - Conways game of life/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/08 - Conways game of life/README.md -------------------------------------------------------------------------------- /08 - Conways game of life/game_of_life.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/08 - Conways game of life/game_of_life.rb -------------------------------------------------------------------------------- /08 - Conways game of life/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/08 - Conways game of life/screenshot.png -------------------------------------------------------------------------------- /09 - Demonstration/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/09 - Demonstration/README.md -------------------------------------------------------------------------------- /09 - Demonstration/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/09 - Demonstration/background.png -------------------------------------------------------------------------------- /09 - Demonstration/background_music.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/09 - Demonstration/background_music.ogg -------------------------------------------------------------------------------- /09 - Demonstration/character.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/09 - Demonstration/character.png -------------------------------------------------------------------------------- /09 - Demonstration/demo.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/09 - Demonstration/demo.rb -------------------------------------------------------------------------------- /09 - Demonstration/jump.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/09 - Demonstration/jump.ogg -------------------------------------------------------------------------------- /11 - Pairing/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/11 - Pairing/readme.md -------------------------------------------------------------------------------- /11 - Pairing/ship_v1.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/11 - Pairing/ship_v1.rb -------------------------------------------------------------------------------- /12 - Hitboxes/fish.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/12 - Hitboxes/fish.png -------------------------------------------------------------------------------- /12 - Hitboxes/hitboxes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/12 - Hitboxes/hitboxes.rb -------------------------------------------------------------------------------- /12 - Hitboxes/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/12 - Hitboxes/readme.md -------------------------------------------------------------------------------- /12 - Hitboxes/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/12 - Hitboxes/screenshot.png -------------------------------------------------------------------------------- /13 - Stacker/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/13 - Stacker/readme.md -------------------------------------------------------------------------------- /13 - Stacker/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/13 - Stacker/screenshot.png -------------------------------------------------------------------------------- /13 - Stacker/stacker.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/13 - Stacker/stacker.rb -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mariovisic/ruby2d-games/HEAD/readme.md --------------------------------------------------------------------------------