oldschool arcade game on a highrise-building
The retro arcade game BREAKOUT made with the MVC pattern.
The model holds all statuses and values while the controller contains a mouse and key listener to enable the bar control for the user. The view has multiple subclasses for different displays, for example the device to play on and the 14x28 pixels highrise-building, and is updated by the Model class regularly.
The Main class starts the game by initializing the Model class with the correct display resolutions, loading a brick layout and starting the Controller class with the listeners.
This pattern makes it possible for more than one person to effectively work simultaneously on the game development and abstract the processes of the program.
Order of tasks:
-
- Writing the Model class and creating a "ball" point which moves and bounces of all window borders. The bounce aims a physically logical direction. Important: measuring the time for a constant FPS rate.
-
- Writing of the View class and a subclass to display the game process in an applet on the PC.
-
- Writing of the Controller class which enables user input via mouse or direction keys.
-
- Creating bar coordinates in the model an make them changeable by the user input. The bar is counted by the ball as border to bounce of.
-
- Ground border is changed to GAME OVER.
-
- Implementation of three lives and GAME OVER upon losing all. Don't forget to show them on screen.
-
- Being creative and designing levels of different brick layouts which are general enough to be interpreted by all views.
-
- Making the bricks in the layouts objects for the ball to bounce off in the right direction (and being destroyed by the ball).
-
- Level clear, level advance and score implementation.
-
- Extras like highscore, items, etc.