Skip to content

Mobil-Oyun-Bootcamp-V/KaanTekinOztekin-FlappyBird-MVC

Repository files navigation

Flappy_Bird_Game-MVC_DESIGN

Aim Of Project

Creating Flappy Bird 2D game clone using MVC pattern.

Flappy Bird Game

What is MVC Design? (Model- View- Controller Design Pattern)
You can check from this site

Model -> Class represents data of our objects.
Example: Player Inventory, Entire Level
Note: Should not inherit from Monobehaviour
Our Game: Force Jump for bird, slide speed of our obstacles from right to left, UI can be hold from Model too

View -> All interactions that will occur in our game scene must be detected by the view and transferred to the controller.
Example: Click in the game and make the bird jump, detection of collisions, earning points or collecting gold on every pass
Note: They should be told to the controller that they are detected.

Controller -> The controller should provide the link between the view and the model.
The code part of the interactions detected in the View section is written here.
Logic and operation parts are located here.
GameManager is generally used with singleton pattern.

MVC Hierarchy

About

Creating Flappy Bird 2D game clone using MVC pattern.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages