Giter Club home page Giter Club logo

javabreakout's Introduction

How to run the program

$ gradle build
$ gradle run --args="[FPS] [Speed]"

Command line arguments

  • [FPS] is the FPS the game will be run in (Range: 20 - 60)
  • [Speed] is the Ball speed, this can be changed afterwards (Range: 1 - 4)
  • Sample argument: "50 2"

Game Rules

How to win

  • Move the paddle around to keep the ball bouncing, if the ball touches the bottom, you will lose the ball, if there is no ball remaining, you lose
  • If the timer runs out before you clear all the bricks, you lose
  • Clear all the bricks to win the game

How to score

  • Clearing a brick awards 10 points
  • If you clear all the bricks, the remaining time will be rewarded as points (1s = 1 point)
  • Clear all the bricks as fast as possible to get high scores

Special Bricks

  • Clearing a GREEN brick will award you a second ball, don't worry if you lose on of them, you lose the game only if you lose both balls
  • Clearing a CYAN brick will permanently extend the length of your padldle

Game Controls

Menu

  • Press SPACE to start the game
  • Press UpArrow/DownArrow to increase/decrease the speed of the ball

Paddle Movements

  • Move cursor around on the screen, the paddle will follow the cursor's movement
  • Press and hold RightArrow/LeftArrow to move the paddle to the right/left (May have delays)

Pausing/Continuing/Restarting

  • Press SPACE to start the game, press SPACE to shoot the ball during the pre-start phase
  • Press ESC to pause the game, when the game is paused, you have the option to restart (press R) or return to main menu (press BackSpace)
  • Whne you win/lose, press R to restart or press BackSpace

References

Built and tested on MacOS Mojave 10.14.5

javabreakout's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.