summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrique Alves <henriquelalves@gmail.com>2022-07-16 00:48:33 -0300
committerHenrique Alves <henriquelalves@gmail.com>2022-07-16 00:48:33 -0300
commitedb9bee47988c9d826badd61d9cbd99d0adec865 (patch)
treee2203830ae60ca5d20dad0410f49d7318d9d1eae
parent88e693070db521a930b1ca7dff225e0c5b5cdec8 (diff)
downloadgamejam-gmtk-2022-edb9bee47988c9d826badd61d9cbd99d0adec865.tar.gz
gamejam-gmtk-2022-edb9bee47988c9d826badd61d9cbd99d0adec865.tar.bz2
gamejam-gmtk-2022-edb9bee47988c9d826badd61d9cbd99d0adec865.zip
Fix PackedScene error
-rw-r--r--Scenes/Dungeon.gd4
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)