Exemple #1
0
            public override void Act(long e)
            {
                GameMapTest game = (GameMapTest)StaticCurrentSceen;

                game.hero.SetMirror(false);
                game.hero.AccelerateRight();
            }
Exemple #2
0
            public void Check(int x, int y)
            {
                GameMapTest game = (GameMapTest)StaticCurrentSceen;

                if (indexMap.GetTileID(x, y) == 'C')
                {
                    indexMap.SetTileID(x, y, 'c');
                    Enemy enemy = new Enemy(indexMap.TilesToPixelsX(x),
                                            indexMap.TilesToPixelsY(y - 1), new Animation(
                                                enemyAnimation), indexMap);
                    game.Add(enemy);
                    // 标注地图已脏,强制缓存刷新
                    indexMap.SetDirty(true);
                }
                else if (indexMap.GetTileID(x + 1, y) == 'C')
                {
                    indexMap.SetTileID(x + 1, y, 'c');
                    indexMap.SetDirty(true);
                }
            }
Exemple #3
0
 public RotateActionListener(GameMapTest test){
       this.game = test;
 }
Exemple #4
0
            public PadClick(GameMapTest test)
            {
                this.game = test;

            }
Exemple #5
0
 public GameUpdateListener(GameMapTest test)
 {
     this.game = test;
 }
Exemple #6
0
 public RotateActionListener(GameMapTest test)
 {
     this.game = test;
 }
Exemple #7
0
            public override void Act(long e)
            {
                GameMapTest game = (GameMapTest)StaticCurrentSceen;

                game.hero.Jump();
            }
Exemple #8
0
 public PadClick(GameMapTest test)
 {
     this.game = test;
 }
Exemple #9
0
 public GameUpdateListener(GameMapTest test)
 {
     this.game = test;
 }