public override void Act(long e) { GameMapTest game = (GameMapTest)StaticCurrentSceen; game.hero.SetMirror(false); game.hero.AccelerateRight(); }
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); } }
public RotateActionListener(GameMapTest test){ this.game = test; }
public PadClick(GameMapTest test) { this.game = test; }
public GameUpdateListener(GameMapTest test) { this.game = test; }
public RotateActionListener(GameMapTest test) { this.game = test; }
public override void Act(long e) { GameMapTest game = (GameMapTest)StaticCurrentSceen; game.hero.Jump(); }