Skip to content
/ rxBall Public

RXBall is a game similar to popular DXball and Breakout written in Ruby programming language originally as a project for a programming paradigms course.

License

Notifications You must be signed in to change notification settings

d1mic/rxBall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rx Ball

RXBall is a game similar to popular DXball and Breakout written in Ruby programming language originally as a project for a programming paradigms course.

alt text

Getting Started

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.

Prerequisites

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:

Installation

Download the repository and simply run main.rb

ruby main.rb

Playing the game

Controls

  • Select: space
  • Exit the game/ Go back: Escape
  • Pause the game: P
  • Pause the music: M
  • Movement: Left/Right arrow

alt text

Make your own level

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)

Built With

  • Gosu - 2D game development library

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

RXBall is a game similar to popular DXball and Breakout written in Ruby programming language originally as a project for a programming paradigms course.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published