cocos2d-x - How to set timer in MVC pattern?
phpcn_u1582
phpcn_u1582 2017-05-16 17:05:38
0
1
492

Recently I am trying to develop a Cocos2d-x game using the MVC model. How should the timer (such as the countdown before starting the game) be placed? The countdown int variable must be put into the Model, but where to modify this value? Should we process it in the Model and send an event to notify the Controller after updating the variables? Or should we schedule and modify the variables in the Controller?

phpcn_u1582
phpcn_u1582

reply all(1)
伊谢尔伦

Timer is a logic program and should be written in Controller.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!