Example #1
0
        protected override void AddedToScene()
        {
            base.AddedToScene();

            pressDelay = new CCDelayTimeEx(MIN_MILISECOND_PRESS_DELAY, "PressDelay");

            SetPlayerLayerName("image0");
            SetPlayerVelocity(0.7f);

            AnchorPoint = new CCPoint(0, 0);
            Position = new CCPoint(-484.666f, 79.78197f);
            Scale = 41;

            #if !WINDOWS_PHONE
            InitializeKeyboardListener();
            #endif

            Schedule();
        }
Example #2
0
 public CSKEntityClass(int velocity, int life, float shoot_delay)
 {
     ShootDelay = new CCDelayTimeEx(shoot_delay, "SHOOT_DELAY");
 }
Example #3
0
 public CCPlayerBase(int id, string image)
     : base(image)
 {
     ShootDelay = new CCDelayTimeEx(0.8f, "ShootDelayCount");
     ID = id;
 }
Example #4
0
 public CSKEnemyClass()
 {
     ShootDelay = new CCDelayTimeEx(DEFAULT_SHOOT_DELAY, "ShootDelayCount");
 }