From edb9bee47988c9d826badd61d9cbd99d0adec865 Mon Sep 17 00:00:00 2001 From: Henrique Alves Date: Sat, 16 Jul 2022 00:48:33 -0300 Subject: Fix PackedScene error --- Scenes/Dungeon.gd | 4 ++-- 1 file 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) -- cgit v1.2.3