游戏层中水管等需要常量:
#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_502_5@
const@H_502_5@ int@H_502_5@ kPipeUpTag = 21@H_502_5@;
const@H_502_5@ int@H_502_5@ kPipeDownTag = 12@H_502_5@;
const@H_502_5@ int@H_502_5@ kPipePassedTag = 30@H_502_5@;
const@H_502_5@ int@H_502_5@ kPipeNewTag = 31@H_502_5@;
/** * > 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_502_5@
const@H_502_5@ int@H_502_5@ kPipeHeight = 320@H_502_5@;
const@H_502_5@ int@H_502_5@ kPipeWidth = 52@H_502_5@;
const@H_502_5@ float@H_502_5@ kPipeShiftSpeed = 80.0@H_502_5@f;
const@H_502_5@ int@H_502_5@ kPipeUpDownDistance = 100@H_502_5@;
const@H_502_5@ int@H_502_5@ kPipeInterval = 180@H_502_5@;
const@H_502_5@ int@H_502_5@ kPipePairCount = 2@H_502_5@;
const@H_502_5@ int@H_502_5@ kWaitDistance = 100@H_502_5@;
/** * The radius of the bird */@H_502_5@
const@H_502_5@ int@H_502_5@ kBirdRadius = 15@H_502_5@;
/** * The width and height of the design resolution */@H_502_5@
const@H_502_5@ int@H_502_5@ kDesignWidth = 288@H_502_5@;
const@H_502_5@ int@H_502_5@ kDesignHeight = 512@H_502_5@;
/** * The tag of game layer in the scene */@H_502_5@
const@H_502_5@ int@H_502_5@ kGameLayerTag = 101@H_502_5@;
#endif