This project was completed as a team assignment at the conclusion of a seven-week Ruby class at Epicodus.
Our goal was to make learning VIM less intimidating. We chose to develop a game that would help users learn VIM commands.
-
A user should be able to navigate a maze using h, j, k, l, which are the VIM commands for left, down, up, and right, respectively.
-
The Pacman can move progress from one level to the next by collecting dots and the bonus cherries.
-
A game ends when the Pacman comes in contact with one of the villains (ghost, goose, or giant Yoshi) or when the player hits either esc or q to quit the game.
-
There are three levels in total.
Ruby 2.6.5, Gosu, Bundler
Project was written using MacOS. No other operating systems were tested.
All of these commands will be entered in your terminal window.
- Ensure that you have the correct version of Ruby installed.
- Install Bundler if you do not already have it by running gem install bundler in the terminal.
- MacOS users: to install Gosu, start by installing Homebrew and running brew install sdl2. For Windows, Linux, or Raspbarian/Raspberry Pi, see https://github.com/gosu/gosu/wiki
- Clone the project locally from github (https://github.com/Michael-Wayne-Wells/vim-game.git).
- Run gem install gosu.
- Run bundle install to manage gems; if you make additional changes to the Gemfile, you will need to run this command again.
- Enter ruby app.rb, which should open a Gosu window that shows the game's welcome screen.
- Click the space bar to enter the game.
- Navigate your character through the game maze with using h, j, k, l, which are the VIM commands for left, down, up, and right, respectively.
- Use i to collect dots or grab the bonus bunch of cherries.
- To exit, press esc or q.
Gosu guidance from https://guides.railsgirls.com/ruby-game
-
honk-sound.mp3: https://www.myinstants.com/instant/goose-honk-44161/
-
success-sound-effect.mp3: http://www.orangefreesounds.com/success-sound-effect/
-
yoshi-ow.mp3: https://www.myinstants.com/instant/yoshi-ow/
-
GHOSTLY.mp3: https://www.freesoundeffects.com/free-track/ghostly-466382/
-
menu-screen.mp3: https://files.freemusicarchive.org/storage-freemusicarchive-org/music/Music_for_Video/Komiku/Captain_Glouglous_Incredible_Week_Soundtrack/Komiku_-_06_-_School.mp3 freemusicarchive.org licensing information: "The Free Music Archive offers free downloads under Creative Commons and other licenses."
-
8-punk-8-bit-music.mp3: http://www.orangefreesounds.com/8-punk-8-bit-music/ orangefreesounds.com licensing information: "The song is permitted for non-commercial use under license “Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0)"
- Goose was inspired by the Untitled Goose Game. Our sprite was drawn with piskelapp.com, using this sprite sheet as inspiration https://www.spriters-resource.com/custom_edited/untitledgoosegamecustoms/sheet/122248/.
- While not a bug per se, we have noticed variations in the order in which different game levels display depending on version of MacOS.
If something doesn't display correctly or goes wrong somehow, please contact us at [email protected] [email protected], [email protected] and we will do our best to troubleshoot for you.
https://github.com/Michael-Wayne-Wells/vim-game.git
This software is licensed under the MIT license.
Copyright (c) 2020 Celeste Morton, Drew Peterson, Lara Bjork, and Michael Wells