Exemplo n.º 1
0
 // Constructor.
 public GameMain(Game1 game, int sizeX, int sizeY)
 {
     this.game = game;
     selection = new SelectionTile(Ressources.SelectionTest);
     mapBackground = new Map(Ressources.tileSetFloorInt, this.cursor, this.selection, 6, 0, map1);
     mapMiddleground = new Map(Ressources.tileSetInterieur, this.cursor, this.selection, 5, 4, map2);
     cursor = new Cursor(32, 32, 2);
     sprite = new Sprite(new Vector2(875, 30), 5, 4, 6 ,0, 0 ,0);
     hud = new HUD(this.game, Ressources.textureHUD, this.cursor, this.sprite);
 }
Exemplo n.º 2
0
 // Constructor.
 public Map(Texture2D tileSet, Cursor CurrentCursor, SelectionTile currentSelection, int tileSetX, int tileSetY, int[,] mapTab)
 {
     this.cursor = CurrentCursor;
     this.tileSet = tileSet;
     this.tileSetX = tileSetX;
     this.tileSetY = tileSetY;
     this.mapTab = mapTab;
     this.mapChanged = true;
     this.selection = currentSelection;
 }