Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 37 additions & 3 deletions Scenes/Enemy.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@
[sub_resource type="RectangleShape2D" id="RectangleShape2D_y14h8"]
size = Vector2(111, 114)

<<<<<<< Updated upstream
[node name="Enemy" type="RigidBody2D"]
collision_layer = 8
collision_mask = 8
=======
[node name="Cheetah" type="RigidBody2D"]
collision_layer = 24
collision_mask = 24
>>>>>>> Stashed changes
lock_rotation = true
script = ExtResource("1_ith7v")

Expand Down Expand Up @@ -36,6 +42,34 @@ target_position = Vector2(132.903, -0.114365)
collision_mask = 3

[node name="RayCastDown" type="RayCast2D" parent="."]
position = Vector2(-2, 11)
scale = Vector2(-6.77384, 0.826557)
target_position = Vector2(0, 27.8263)
<<<<<<< Updated upstream
position = Vector2(-3, 8)
scale = Vector2(-3.13384, 0.826557)
target_position = Vector2(0, 15.7279)
collision_mask = 8
=======
position = Vector2(-2, 8)
scale = Vector2(-7.1469, 0.704335)
target_position = Vector2(0, 18.1476)
collision_mask = 24

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
root_node = NodePath("../Sprite2D")
libraries = {
"": SubResource("AnimationLibrary_u4h5r")
}

[node name="Launch Timer" type="Timer" parent="."]
wait_time = 0.1
one_shot = true

[node name="RayCastRight" type="RayCast2D" parent="."]
scale = Vector2(1.1, 7.744)
target_position = Vector2(132.727, 0)

[node name="RayCastLeft" type="RayCast2D" parent="."]
scale = Vector2(0.941, 7.04)
target_position = Vector2(-179.596, 0)

[connection signal="timeout" from="Launch Timer" to="." method="_on_launch_timer_timeout"]
>>>>>>> Stashed changes
7 changes: 7 additions & 0 deletions Scenes/Game.tscn

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions Scenes/hatch.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
extends Node2D

@onready var animation_player: AnimationPlayer = $AnimationPlayer
var open = false
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if Global.platedown1 == true && open == false:
animation_player.play("Open")
open = true
if open == true && Global.platedown1 == false:
animation_player.play("Close")
open = false

16 changes: 16 additions & 0 deletions Scenes/hatch.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[gd_scene load_steps=2 format=3 uid="uid://bshv20m738j3p"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_6y5ae"]
size = Vector2(62, 14)

[node name="Hatch" type="Node2D"]

[node name="AnimatableBody2D" type="AnimatableBody2D" parent="."]
sync_to_physics = false

[node name="Polygon2D" type="Polygon2D" parent="AnimatableBody2D"]
polygon = PackedVector2Array(-31, 7, 31, 7, 31, -7, -31, -7)

[node name="CollisionShape2D" type="CollisionShape2D" parent="AnimatableBody2D"]
scale = Vector2(1, 1.00353)
shape = SubResource("RectangleShape2D_6y5ae")
306 changes: 306 additions & 0 deletions Scenes/levels/Game.tscn

Large diffs are not rendered by default.

Loading