summaryrefslogtreecommitdiff
path: root/scripts/DungeonLevel.cs
blob: a303254961d631a11c9c5f9e2052d1eb6ed25511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using Godot;
using System;

public partial class DungeonLevel : Node2D
{
	public Player player;
	public TileMapLayer buildingLayer;

	private Node2D actors;

	public override void _Ready()
	{
		base._Ready();

		buildingLayer = GetNode<TileMapLayer>("Dungeon");
		actors = GetNode<Node2D>("Actors");
		player = actors.GetNode<Player>("Player");
	}
}