RXBall is a game similar to popular DXball and Breakout written in Ruby programming language originally as a project for a programming paradigms course.
These instructions will get you a copy of the game up and running on your local machine. This version is mainly tested on MacOS Sierra.
What things you need to install the software and how to install them
Install Ruby:
- For MacOS:
$ brew install ruby
- For Linux:
$ sudo apt-get install ruby-full
Install Gosu library:
- For MacOS : Gosu installation guide
- For Linux : Gosu installation guide
Download the repository and simply run main.rb
ruby main.rb
- Select: space
- Exit the game/ Go back: Escape
- Pause the game: P
- Pause the music: M
- Movement: Left/Right arrow
Level can be made in two ways, one is with automated script:
- Go to levels file
cd levels
- Run python script
python lvlGenerator.py
and set up a level number, number of regular and power up bricks
Second way is to make a .txt file in form of other levels :
- max 10 elements in line
- n - normal brick
- '-' - empty space
- p - purple brick ( reverse power-up)
- y - yellow brick ( slow ball power-up)
- g - green brick (wider paddle power-up)
- r - red brick ( faster paddle power-up)
- Gosu - 2D game development library
This project is licensed under the MIT License - see the LICENSE.md file for details