Ejemplo n.º 1
0
 public GUIExampleScene()
 {
     g      = new Gui.Gui();
     c      = new TestContainer(Position.Origin);
     images = new[]
     {
         TileImageLoader.LoadImage("village"),
         TileImageLoader.LoadImage("hoard"),
         TileImageLoader.LoadImage("sleep"),
         TileImageLoader.LoadImage("trade")
     };
 }
Ejemplo n.º 2
0
        public TestScene()
        {
            /*p0 = new Position(6, 25);
             * p1 = new Position(15, 13);
             * p2 = new Position(25, 26);
             * p3 = new Position(35, 13);*/

            p0 = new Position(6, 25);
            p1 = new Position(6, 6);
            p2 = new Position(16, 6);
            p3 = new Position(26, 6);

            img = TileImageLoader.LoadImage("test");

            testMapping.SetBinding("ActionDown", new KeyBinding(Key.J));
        }
Ejemplo n.º 3
0
 public TestContainer(Position position)
     : base(position, new Dimensions(21, 9), Color.Black)
 {
     image = TileImageLoader.LoadImage("testgui");
 }