亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

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

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