Key points:
- About random functions: srand and Rand are C standard library functions. For each platform, you can obtain a random number in milliseconds.
Vophone: srand (timgetticks ());
IOS: arc4random (); this can be used directly
Others: srand (unsigned) Time (null ));
Object-C-> C ++
Yes-> true
No-> false
Object-C: selector: @ selector (spritemovefinished)
SCHEDULE: @ selector (gamelogic)
C ++: schedule_selector (_ selector) function _ selector has only one parameter type, which is cctime.
Callfunc_selector (_ selector) function _ selector has a maximum of one parameter type, which is void.
Callfuncn_selector (_ selector) function _ selector has only one parameter type, which is ccnode *
Callfuncnd_selector (_ selector) function _ selector has two parameter types: ccnode * and void *
There is only one parameter type in the menu_selector (_ selector) function _ selector, Which is ccobject *