Added win condition for level 1 and added boss fight for level 5

This commit is contained in:
VoidTwo
2021-12-10 14:23:23 -06:00
parent 3c880d1566
commit e5aafa6cd0
74 changed files with 791 additions and 1300 deletions

View File

@@ -0,0 +1,10 @@
extends Area2D
export var x_location: int
export var y_location: int
func _on_teleporter_body_entered(body: Node) -> void:
if body.is_in_group('player'):
body.set_deferred('position', Vector2(x_location, y_location))
return

View File

@@ -0,0 +1,34 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://Sprites/Assets/Light.png" type="Texture" id=1]
[ext_resource path="res://Sprites/Levels/Interactables/Teleport_Pad.png" type="Texture" id=2]
[ext_resource path="res://Levels/Interactables/Teleporter.gd" type="Script" id=3]
[sub_resource type="CircleShape2D" id=1]
radius = 8.0
[node name="Teleporter" type="Area2D"]
light_mask = 0
collision_layer = 0
collision_mask = 2
input_pickable = false
monitorable = false
script = ExtResource( 3 )
[node name="Sprite" type="Sprite" parent="."]
self_modulate = Color( 0.564706, 1, 0.560784, 1 )
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
light_mask = 0
shape = SubResource( 1 )
[node name="Light" type="Light2D" parent="."]
texture = ExtResource( 1 )
texture_scale = 0.4
color = Color( 0.341176, 1, 0.321569, 1 )
energy = 1.2
shadow_item_cull_mask = 0
[connection signal="body_entered" from="." to="." method="_on_teleporter_body_entered"]