Refactor player animation and collision based entrances
This commit is contained in:
@@ -1 +0,0 @@
|
||||
extends Node
|
||||
@@ -1 +0,0 @@
|
||||
uid://ckfuj0lm6jv3i
|
||||
@@ -1,5 +1,5 @@
|
||||
extends Node
|
||||
class_name LoadingZoneTransporter
|
||||
class_name EntranceTransporter
|
||||
|
||||
signal MapTransitionQueued(map_id: Enums.MapIds, marker_name: String)
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
uid://bqedrioybnvi5
|
||||
@@ -1,8 +1,8 @@
|
||||
extends Area2D
|
||||
class_name InteractiveLoadingZone
|
||||
class_name InteractiveEntrance
|
||||
|
||||
@export var loading_zone_transporter: LoadingZoneTransporter
|
||||
@export var entrance_transporter: EntranceTransporter
|
||||
|
||||
# Public Methods
|
||||
func Activate() -> void:
|
||||
loading_zone_transporter.Activate()
|
||||
entrance_transporter.Activate()
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
uid://bvl1vdqd5cjkc
|
||||
@@ -1,9 +1,6 @@
|
||||
[gd_scene format=3 uid="uid://ca75b65eh7vv8"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ckfuj0lm6jv3i" path="res://Entities/Map Objects/Loading Zone/Scripts/collision_loading_zone.gd" id="1_pb5hg"]
|
||||
[gd_scene format=3 uid="uid://dq6ifketavnfu"]
|
||||
|
||||
[node name="Collision Loading Zone" type="Area2D" unique_id=1043800735 groups=["Collision Loading Zone Group"]]
|
||||
collision_layer = 0
|
||||
script = ExtResource("1_pb5hg")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
[gd_scene format=3 uid="uid://bbules4o3xayc"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bqedrioybnvi5" path="res://Entities/Map Objects/Loading Zone/Scripts/entrance_transporter.gd" id="1_bkamm"]
|
||||
|
||||
[node name="Entrance Transporter" type="Node" unique_id=1690817663 groups=["Loading Zone Transporter Group"]]
|
||||
script = ExtResource("1_bkamm")
|
||||
@@ -1,6 +0,0 @@
|
||||
[gd_scene format=3 uid="uid://bbules4o3xayc"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bvl1vdqd5cjkc" path="res://Entities/Map Objects/Loading Zone/Scripts/loading_zone_transporter.gd" id="1_p8o2m"]
|
||||
|
||||
[node name="Loading Zone Transporter" type="Node" unique_id=1690817663 groups=["Loading Zone Transporter Group"]]
|
||||
script = ExtResource("1_p8o2m")
|
||||
4
Entities/Map Objects/Triggers/on_collision_trigger.tscn
Normal file
4
Entities/Map Objects/Triggers/on_collision_trigger.tscn
Normal file
@@ -0,0 +1,4 @@
|
||||
[gd_scene format=3 uid="uid://vc0dkptkr1ow"]
|
||||
|
||||
[node name="On Collision Trigger" type="Area2D" unique_id=895298999]
|
||||
collision_layer = 0
|
||||
Reference in New Issue
Block a user