Skip to content

oli2tup/Covid_BrickBreaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Covid_BrickBreaker

image

Covid19 informational brick breaker game

Image of the application running – 1

image

Compling.gif – This shows the program compiling and running.

From the screen shot and gif the you can see the ball is a COVID-19 cell.

The Gif shows the player moving the blue paddle at the bottom and the ball interacting with the paddle.

The score once the ball is off the screen (at the end of a game) the score is shown at the bottom right. – 2

image

As, you can see from the gif, and comparing the text in screenshot 1 and 2 the facts relating to COVID-19 change after a block is destroyed.

My .java consist of one Public class (CE203_1800579_Ass2) and inside four static classes that initiate actions.

The static class Block is the class that holds the constructor for the blocks to be broken in the game and also the paddle. This allows for low coupling as the class can create a majority of the objects in the game. This created high cohesions as it is a well defined class.

The static class Score draws the score on the screen, the class CovidFacts draws the facts on the screen. These two classes show poor cohesions as I could have created one class to draw strings and made the methods wide reaching that could be used to draw both the facts and the score.

About

Covid19 informational brick breaker game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages