Beispiel #1
0
 public GameScene(CCWindow window, World world) : base(window)
 {
     World          = world;
     World.Victory += World_Victory;
     World.Defeat  += World_Defeat;
     HexMexCamera   = new HexMexCamera(BoundingBoxTransformedToWorld.Size);
     HexMexCamera.MoveToPosition(CCPoint.Zero);
     Camera                  = HexMexCamera;
     AddChild(GameLayer      = new GameLayer(World, HexMexCamera, CCColor4B.Black));
     AddChild(WinDefeatLayer = new WinDefeatLayer());
     HexMexCamera.SetZoomFactor(0.5f);
 }
Beispiel #2
0
 private void LayerCallback(WinDefeatLayer winDefeatLayer)
 {
     Director.PopScene();
 }
Beispiel #3
0
 private void World_Victory(World world)
 {
     World.Stop();
     WinDefeatLayer.ShowVictoryMessage(5, LayerCallback);
 }
Beispiel #4
0
 private void World_Defeat(World world)
 {
     World.Stop();
     WinDefeatLayer.ShowDefeatMessage(5, LayerCallback);
 }