Giter Site home page Giter Site logo

breakout's Introduction

Breakout!

Preview

alt text

How to make and run

  1. Go to src folder
  2. Use Makefile
    • Run "make" to compile the .java files
    • Run "make run" to compile and run with splash screen
    • Run "make clean" to clean .class files

Command line argument

(1) FPS:

  • must be first argument
  • must be an integer
  • recommend FPS in 25-40
  • default is 40

(2) Ball Speed:

  • must be second argument
  • must be an integer
  • recommend the ball speed to be under 300
  • default is 125

(3) Splash Screen

  • must pass this VM option below to open with the splash screen
  • -splash:../images/BreakoutSplash.png

Example:

java -splash:../images/BreakoutSplash.png Breakout 40 125 will open up with the splash screen with the FPS set to 40 and the Ball Speed set to 125 in the default window screen

How to play the game

  1. Move your mouse to control the paddle
  2. Press the key Space to Start Play / Pause / Resueme
  3. Press the key Q to Quit the game

CHEAT FUNCTIONS

  1. Press the key C to Clear the current game level
  2. Press the key R to force Restart the game

Additional features

  1. Level implementation

    • Level 1: 1 row, ball speed at default window size is 125 (Easy - Testing Mode)
    • Level 2: 5 rows, ball speed at default window size is 175 (Normal)
    • Level 3: 8 rows, ball speed at default window size is 225 (Hard)
  2. Lives

    • You have three chance to play the game
  3. Highest Score

    • Highest score is displayed on the top right corner

Scores

  • 1 for every bounce off the wall or paddle
  • 110 for destroying red block
  • 90 for destroying orange block
  • 70 for destroying yellow block
  • 50 for destroying green block
  • 30 for destorying blue block
  • 10 for destroying violet block

Clear Bonus:

  • 1000 x current level
  • 500 x number of lives

================================================

breakout's People

Contributors

dongwoo1005 avatar

Watchers

 avatar  avatar  avatar

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.