cocos2d-x - How to set timer in MVC pattern?
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? It is processed in the Model and the event is emitted after th...
phpcn_u1582 2017-05-16 17:05:38 0 1 437
c++ - cocos2d cannot be downloaded? Help! ! !
Recently I want to learn cocos2d game development, and I want to use the lua language. I don’t know what the relationship is between cocos-2d, cocos-creator, and cocos2d lua. I downloaded cocos-creator and looked at it. It seems that the created project only has js and no cpp. , and there is no Lua,...
学习ing 2017-06-13 09:22:55 0 1 831
For a floating point number x, without underflow and overflow, are the results of x+x and x*2 the same?
For example, initially I had this code: function(x,y){letz=x+y;...} Later I found that y must be the same as x, and wanted to refactor x+y into x*2, but I needed to ensure The entire program behaves the same before and after refactoring. Is x+x the same as x*2? I don't know if + and * use different ...
P粉064448449 2023-09-07 10:08:44 0 1 485