Giter Site home page Giter Site logo

brick's Introduction

Software Maintenance Coursework

Brick_Destroy

This is a simple arcade video game. Goal of the game is to destroy a wall with a small ball.

How to Play :

Press SPACE : Start / Pause the game
Press Left : Move paddle to Left
Press Right : Move paddle to Right
Press ESC : Enter / Exit pause menu
Press ALT + SHITF + F1 : Open console

The game automatically pause if the frame loses focus

Refactoring

  1. Implemented MVC Design Pattern in the game.
  • Split classes into Model, View, Controller packages.
  • Create mainGame package for main class.
  1. Rename classes
  • Wall -> GameModel
  • GameBoard -> GameView
  • GameFrame -> GameController
  1. Extract class from GameModel
  • The original GameModel class has too many instructions, so i split the code related to crack into a new class
  • Extracted crack related code into Crack class.
  1. Improve code presentation
  • Removed extra lines and blank space
  • Comment on all methods for better understanding of the code
  1. Build file using Maven

  2. JUnit Test on some classes

  • CementBrickTest
  • ClayBrickTest
  • GoldBrickTest
  • PlayerTest
  • RubberBallTest
  • SteelBrickTest

Addition

  1. Added ScoreBoard
  • ScoreBoard displays the previous scores of user with their names
  • Input page will show up when game over, letting user to input their names to save their scores
  • Clicking the Scoreboard button on HomeMenu screen will direct you to ScoreBoard page
  • Added Back to Main button to return to HomeMenu
  1. Added Info page
  • Clicking the Info button on HomeMenu screen will direct you to Info page
  • Added Back to Main button to return to HomeMenu
  • Info displays the command keys to play the game
  1. Added additional levels and different Brick type
  • More levels available for the player to play
  • When level increases, the bricks are harder and will crack before breaking
  1. Added Background music and Background image
  • To make the game look more interesting and attractive

Documentation

  1. README file
  2. Included Javadocs
  • All javadocs file can be accessed in the JavaDocs folder
  1. Class diagram
  2. Github commit history
  3. Github commit Github project url : https://github.com/hfykc7/Brick

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.