public GameScene() { SetLayer(0, new Layer()); var controller = new GameSceneController(); Add(controller); Add(new GameBackground(controller.SideWallsEnabled ? TestProject.Assets.GetTexture("BackgroundTexture2") : TestProject.Assets.GetTexture("BackgroundTexture1"))); Add(new GameIntro()); }
public Actions(GameSceneController controller) { this[controller.Bombs.PacketType] = controller.Bombs.ReadPacket; this[controller.Ships.PacketType] = controller.Ships.ReadPacket; this[PacketTypeStartGame] = controller.ReadGameStart; this[PacketTypeEndGame] = controller.ReadGameEnd; this[PacketTypeSetBombsAllowed] = controller.ReadBombsAllowed; }