liushigit / mvcsample

MVC framework for cocos2d-x

Home Page:http://cobagames.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mvcsample

A short description on the MVC pattern

Complete explanation can be found here: http://cobagames.com/2013/12/15/implementing-mvc-pattern-for-cocos2d-x-projects/

Controller Send commands to model to update the model’s state. It can also send commands to it’s associated view to change the views’s presentation of the model.

Model Notifies it’s associated it’s associated views and controllers when there has been a change in the state. This notification allows the views to produce an updated output and controllers to change the available set of commands.

View Requests information from the model that it needs for generating an output representation to the user.

This is a simple xcode project to demonstrate the implementation of MVC framework in a cocos2d-x project.

References:

http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller

About

MVC framework for cocos2d-x

http://cobagames.com

License:The Unlicense


Languages

Language:C++ 74.4%Language:C 17.0%Language:Objective-C 4.9%Language:Objective-C++ 3.6%Language:CMake 0.0%