游戏层中水管等需要常量:
#ifndef EngryBird_AppConstant_h
#define EngryBird_AppConstant_h
/** * The pipe has four state,using the following tag to mark. * > the state up * > the state down * > the state passed * > the state new created */
@H_301_6@const @H_301_6@int kPipeUpTag = 21;
@H_301_6@const @H_301_6@int kPipeDownTag = 12;
@H_301_6@const @H_301_6@int kPipePassedTag = 30;
@H_301_6@const @H_301_6@int kPipeNewTag = 31;
/** * > the pipe's height * > the pipe's width * > the speed of pipe moves * > the distance between the down pipe and up pipe * > the distance between the pipes vertical * > the number of pipe pairs display int the screen in the same time * > the distance that the pipe will display in the screen,for player to ready */
@H_301_6@const @H_301_6@int kPipeHeight = 320;
@H_301_6@const @H_301_6@int kPipeWidth = 52;
@H_301_6@const @H_301_6@float kPipeShiftSpeed = 80.0f;
@H_301_6@const @H_301_6@int kPipeUpDownDistance = 100;
@H_301_6@const @H_301_6@int kPipeInterval = 180;
@H_301_6@const @H_301_6@int kPipePairCount = 2;
@H_301_6@const @H_301_6@int kWaitDistance = 100;
/** * The radius of the bird */
@H_301_6@const @H_301_6@int kBirdRadius = 15;
/** * The width and height of the design resolution */
@H_301_6@const @H_301_6@int kDesignWidth = 288;
@H_301_6@const @H_301_6@int kDesignHeight = 512;
/** * The tag of game layer in the scene */
@H_301_6@const @H_301_6@int kGameLayerTag = 101;
#endif