The Game - RasmusEngstroem/Awesome_game_3K GitHub Wiki

The application is a classic sidescroller game which is based on the classic Mario game.

It has some basic classes,

"Levels", which holds the ground stones for how a level is build. From this "level1" is created as an extension. With this there are possibilities to build multiple levels.

"GameObjects" , which holds the basic formula for what a gameObject should contain.

From this there is extended several classes

"GameEntities", which holds: "Blocks" - "Items" - "player" - "Enemy" - "WinCube" - "LevelZone". Which all has a position and a size to be enherited by sub classes.

From these ex Blocks has their own special parametres, such as a texture and sertain collision functions (this is not exactly how it was executed, but that was the idea)

"Blocks" extends into "breakable" and "Unbreakeable" where

"Breakeable" extende into "BrickBlock" and "ItemBlock"

"Unbreakable" extends into "SolidBlock" and "EmptyItemBlock"

Also the "player" and "Enemy"-script was designed to be able to easily create a new version of the entity.

Items - is ment to extend into objects such as "Coin" which can be spawned around the map to be picked up.