예제 #1
0
 // Called when the node enters the scene tree for the first time.
 public override void _Ready()
 {
     GenTower();
     CreateTileMap();
     PrintTower();
     PlayerStart = (Position2D)GetNode("./PlayerStart");
     PlayerStart.SetGlobalPosition(new Vector2(roomWidth * startingRoomX * 16, roomHeight * startingRoomY * 16)
                                   + new Vector2(roomWidth * 16f * 0.5f, roomHeight * 16f * 0.5f));
 }