Exemplo n.º 1
0
            public override void Act(long e)
            {
                GameMapTest game = (GameMapTest)StaticCurrentSceen;

                game.hero.SetMirror(false);
                game.hero.AccelerateRight();
            }
Exemplo n.º 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);
                }
            }
Exemplo n.º 3
0
 public RotateActionListener(GameMapTest test){
       this.game = test;
 }
Exemplo n.º 4
0
            public PadClick(GameMapTest test)
            {
                this.game = test;

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

                game.hero.Jump();
            }
Exemplo n.º 8
0
 public PadClick(GameMapTest test)
 {
     this.game = test;
 }
Exemplo n.º 9
0
 public GameUpdateListener(GameMapTest test)
 {
     this.game = test;
 }