diff options
author | Henrique Alves <henriquelalves@gmail.com> | 2022-07-16 00:48:33 -0300 |
---|---|---|
committer | Henrique Alves <henriquelalves@gmail.com> | 2022-07-16 00:48:33 -0300 |
commit | edb9bee47988c9d826badd61d9cbd99d0adec865 (patch) | |
tree | e2203830ae60ca5d20dad0410f49d7318d9d1eae | |
parent | 88e693070db521a930b1ca7dff225e0c5b5cdec8 (diff) | |
download | gamejam-gmtk-2022-edb9bee47988c9d826badd61d9cbd99d0adec865.tar.gz gamejam-gmtk-2022-edb9bee47988c9d826badd61d9cbd99d0adec865.tar.bz2 gamejam-gmtk-2022-edb9bee47988c9d826badd61d9cbd99d0adec865.zip |
Fix PackedScene error
-rw-r--r-- | Scenes/Dungeon.gd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Scenes/Dungeon.gd b/Scenes/Dungeon.gd index 0092c6a..1c2dbd7 100644 --- a/Scenes/Dungeon.gd +++ b/Scenes/Dungeon.gd @@ -2,7 +2,7 @@ extends Spatial const Player = preload("res://Scenes/Player.tscn") const Obstacle = preload("res://Scenes/Obstacle.tscn") -const Monster = preload("res://Scenes/Monster.tscn") +const MonsterScene = preload("res://Scenes/Monster.tscn") onready var camera = $Pitch onready var player : Entity = null @@ -31,7 +31,7 @@ func build_floor(): for i in range(2): rand_pos = Vector2(randi()%6 - 3, randi()%6 - 3) - var monster = Monster.instance() + var monster = MonsterScene.instance() tiles_entities[rand_pos] = monster add_child(monster) |