Week 2 commits: force push, multiple triggers, force push, teleporting crates.
This commit is contained in:
1 parent
8b43b3c4f9
commit
458b3e25fc
13 files changed
+277
-50
No files matched your search
@@ -0,0 +1,15 @@
|
||||
[gd_scene format=3 uid="uid://vdkcnj4ebu6r"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dcqok1j5pliwd" path="res://scripts/bullet.gd" id="1_mkf8s"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_h1aey"]
|
||||
size = Vector2(10, 4)
|
||||
|
||||
[node name="Bullet" type="Area2D" unique_id=165117688]
|
||||
script = ExtResource("1_mkf8s")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=488200767]
|
||||
shape = SubResource("RectangleShape2D_h1aey")
|
||||
debug_color = Color(0.7560967, 0, 0.13750124, 0.41960785)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_uwrxv"]
|
||||
|
||||
[node name="Crate" type="RigidBody2D" unique_id=1451413033]
|
||||
[node name="Crate" type="RigidBody2D" unique_id=1451413033 groups=["shootable"]]
|
||||
rotation = 0.7475211
|
||||
script = ExtResource("1_b66cd")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
+37
-34
@@ -1,16 +1,14 @@
|
||||
[gd_scene format=3 uid="uid://cu1mgc6337asm"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cv4ex134wdu7j" path="res://scripts/game.gd" id="1_lnu2h"]
|
||||
[ext_resource type="Script" uid="uid://dy0ahrwhakd4d" path="res://scripts/trigger.gd" id="1_uwrxv"]
|
||||
[ext_resource type="Script" uid="uid://cclb4boli603j" path="res://scripts/scene_manager.gd" id="2_lbhrr"]
|
||||
[ext_resource type="Script" uid="uid://dy5o70pk5y8b2" path="res://scripts/player.gd" id="2_yqjtg"]
|
||||
[ext_resource type="PackedScene" uid="uid://b2rjhbe4f20hw" path="res://scenes/crate.tscn" id="3_iywne"]
|
||||
[ext_resource type="PackedScene" uid="uid://csp8sgbqjmndx" path="res://scenes/player.tscn" id="5_iywne"]
|
||||
[ext_resource type="PackedScene" uid="uid://cq5l3f6hna0kg" path="res://scenes/trigger.tscn" id="5_p57ef"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8cj0n"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_8cj0n"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_uwrxv"]
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_iywne"]
|
||||
|
||||
[node name="Game" type="Node2D" unique_id=304719081]
|
||||
script = ExtResource("1_lnu2h")
|
||||
@@ -18,58 +16,63 @@ script = ExtResource("1_lnu2h")
|
||||
[node name="SceneManager" type="Node2D" parent="." unique_id=277183513]
|
||||
script = ExtResource("2_lbhrr")
|
||||
|
||||
[node name="Player" parent="." unique_id=589925870 instance=ExtResource("5_iywne")]
|
||||
position = Vector2(229.99994, 377)
|
||||
|
||||
[node name="Crates" type="Node2D" parent="." unique_id=1384881921]
|
||||
|
||||
[node name="Crate" parent="Crates" unique_id=1451413033 instance=ExtResource("3_iywne")]
|
||||
position = Vector2(796.99994, 300)
|
||||
position = Vector2(480.99994, 293)
|
||||
|
||||
[node name="Crate2" parent="Crates" unique_id=1863377672 instance=ExtResource("3_iywne")]
|
||||
position = Vector2(938, 312)
|
||||
position = Vector2(622, 305)
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=2124897251]
|
||||
position = Vector2(581, 420)
|
||||
[node name="LevelELements" type="Node2D" parent="." unique_id=715855559]
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="LevelELements" unique_id=2124897251]
|
||||
position = Vector2(265, 413)
|
||||
scale = Vector2(14.68, 1)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=1284307723]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="LevelELements/StaticBody2D" unique_id=1284307723]
|
||||
shape = SubResource("RectangleShape2D_8cj0n")
|
||||
|
||||
[node name="StaticBody2D2" type="StaticBody2D" parent="." unique_id=1217525521]
|
||||
position = Vector2(989, 424)
|
||||
[node name="StaticBody2D2" type="StaticBody2D" parent="LevelELements" unique_id=1217525521]
|
||||
position = Vector2(673, 417)
|
||||
scale = Vector2(14.68, 1)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2" unique_id=1959735816]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="LevelELements/StaticBody2D2" unique_id=1959735816]
|
||||
shape = SubResource("RectangleShape2D_8cj0n")
|
||||
|
||||
[node name="StaticBody2D3" type="StaticBody2D" parent="." unique_id=160438336]
|
||||
position = Vector2(790.00006, 338)
|
||||
[node name="StaticBody2D3" type="StaticBody2D" parent="LevelELements" unique_id=160438336]
|
||||
position = Vector2(474.00006, 331)
|
||||
scale = Vector2(4.880001, 1)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D3" unique_id=751554906]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="LevelELements/StaticBody2D3" unique_id=751554906]
|
||||
shape = SubResource("RectangleShape2D_8cj0n")
|
||||
|
||||
[node name="Trigger" type="Area2D" parent="." unique_id=1862352787]
|
||||
position = Vector2(-36, 119)
|
||||
script = ExtResource("1_uwrxv")
|
||||
[node name="StaticBody2D4" type="StaticBody2D" parent="LevelELements" unique_id=849902454]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="LevelELements/StaticBody2D4" unique_id=1145034531]
|
||||
position = Vector2(1, 588)
|
||||
shape = SubResource("WorldBoundaryShape2D_iywne")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Trigger" unique_id=2003354144]
|
||||
position = Vector2(817, 376.99997)
|
||||
scale = Vector2(7.72, 7.72)
|
||||
shape = SubResource("CircleShape2D_8cj0n")
|
||||
debug_color = Color(0, 0.643742, 0.3001382, 0.41960785)
|
||||
[node name="Triggers" type="Node2D" parent="." unique_id=969407448]
|
||||
|
||||
[node name="Player" type="CharacterBody2D" parent="." unique_id=1577861899]
|
||||
position = Vector2(545.99994, 384)
|
||||
scale = Vector2(1.8000001, 1.8000001)
|
||||
script = ExtResource("2_yqjtg")
|
||||
metadata/_edit_group_ = true
|
||||
[node name="Trigger" parent="Triggers" unique_id=1612521889 instance=ExtResource("5_p57ef")]
|
||||
position = Vector2(-352, 112)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player" unique_id=833165919]
|
||||
shape = SubResource("CircleShape2D_uwrxv")
|
||||
debug_color = Color(0.8463823, 0.0009889907, 0.9098306, 0.41960785)
|
||||
[node name="Trigger2" parent="Triggers" unique_id=260830386 instance=ExtResource("5_p57ef")]
|
||||
position = Vector2(80, 134)
|
||||
intent = "fan"
|
||||
|
||||
[connection signal="areaTriggerSignal" from="Trigger" to="." method="_on_trigger"]
|
||||
[connection signal="body_entered" from="Trigger" to="Trigger" method="_on_body_entered"]
|
||||
[node name="Trigger5" parent="Triggers" unique_id=1243704039 instance=ExtResource("5_p57ef")]
|
||||
position = Vector2(265, 56)
|
||||
intent = "teleport"
|
||||
|
||||
[connection signal="areaTriggerSignal" from="Triggers/Trigger" to="." method="_on_trigger"]
|
||||
[connection signal="areaTriggerSignal" from="Triggers/Trigger2" to="." method="_on_trigger"]
|
||||
[connection signal="areaTriggerSignal" from="Triggers/Trigger5" to="." method="_on_trigger"]
|
||||
@@ -0,0 +1,26 @@
|
||||
[gd_scene format=3 uid="uid://csp8sgbqjmndx"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dy5o70pk5y8b2" path="res://scripts/player.gd" id="1_3vyb7"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_uwrxv"]
|
||||
|
||||
[node name="Player" type="CharacterBody2D" unique_id=589925870]
|
||||
scale = Vector2(1.8000001, 1.8000001)
|
||||
script = ExtResource("1_3vyb7")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1451670636]
|
||||
shape = SubResource("CircleShape2D_uwrxv")
|
||||
debug_color = Color(0.8463823, 0.0009889907, 0.9098306, 0.41960785)
|
||||
|
||||
[node name="RightCast" type="RayCast2D" parent="." unique_id=434200409]
|
||||
target_position = Vector2(17.222221, 0)
|
||||
|
||||
[node name="LeftCast" type="RayCast2D" parent="." unique_id=194078728]
|
||||
target_position = Vector2(-16.666666, 0)
|
||||
|
||||
[node name="RightBulletSpawn" type="Marker2D" parent="." unique_id=713435511]
|
||||
position = Vector2(12.777777, -7.777777)
|
||||
|
||||
[node name="LeftBulletSpawn" type="Marker2D" parent="." unique_id=794453359]
|
||||
position = Vector2(-13.333332, -7.7777777)
|
||||
@@ -0,0 +1,17 @@
|
||||
[gd_scene format=3 uid="uid://cq5l3f6hna0kg"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dy0ahrwhakd4d" path="res://scripts/trigger.gd" id="1_du5ex"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_8cj0n"]
|
||||
|
||||
[node name="Trigger" type="Area2D" unique_id=1612521889]
|
||||
script = ExtResource("1_du5ex")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=887163202]
|
||||
position = Vector2(817, 376.99997)
|
||||
scale = Vector2(7.72, 7.72)
|
||||
shape = SubResource("CircleShape2D_8cj0n")
|
||||
debug_color = Color(0, 0.643742, 0.3001382, 0.41960785)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
Reference in new issue
Block a user