NazirMuhammadZafarIqbal / maze_runners

Our project is going to be a 2D game about the labyrinth. Each of the levels is going to be randomly generated and the player has to find the way out of it. At the start of the game, there is going to be a menu where you can exit or start the game. The platform we chose is PC. Keyboard controls are used to play the game and there is an award for finishing the game within a time limit.
0 stars 0 forks source link

Entities - default interface #2

Open Farkas-Martin opened 2 years ago

Farkas-Martin commented 2 years ago

The goal is to create the parent class of all the entities (this mostly includes the player and creatures if we are to add them). This class should contain the attributes that will most definitely have to be included in all entities (for example : collision box dimensions, movement speed)

NazirMuhammadZafarIqbal commented 2 years ago

I guess I cannot create this class until I do not have all the entities. If I do so there will be many conflicts including both logical like not including some entity and lexical like different naming for the same entity. Kindly, guide me about it.

Farkas-Martin commented 2 years ago

You don't need to create the separate entities yet just the "parent class" of the upcoming entities, with some variables + default setters/getters. We can extend this later on, in the foreseeable future we will only have a player class extending this interface.

NazirMuhammadZafarIqbal commented 2 years ago

I have created a class file which I am going to commit in a separate branch "entities". If it is okay, and merge to master is needed then you can merge it after reviewing.

Farkas-Martin commented 2 years ago

Sorry for not noticing the comment.

Once you have put the resources into the correct folders you can merge it yourself, no need to wait for my approval.