bullets firing, scene manager, teleport, force push
This commit is contained in:
1 parent
c8d5474785
commit
60bde97dba
15 files changed
+251
-54
No files matched your search
@@ -0,0 +1,16 @@
|
||||
[gd_scene format=3 uid="uid://qrewcx81o1xi"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ryrc3a88d0nh" path="res://scripts/bullet.gd" id="1_mkf8s"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mvphy"]
|
||||
size = Vector2(12, 6)
|
||||
|
||||
[node name="Bullet" type="Area2D" unique_id=1877237172]
|
||||
script = ExtResource("1_mkf8s")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=117632852]
|
||||
shape = SubResource("RectangleShape2D_mvphy")
|
||||
debug_color = Color(0.9521257, 0.20191753, 0.23529023, 0.41960785)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
@@ -0,0 +1,13 @@
|
||||
[gd_scene format=3 uid="uid://5xgx7qarkj3o"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://rp1f47ytyerd" path="res://scripts/crate.gd" id="1_b66cd"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_o7s7a"]
|
||||
|
||||
[node name="Crate" type="RigidBody2D" unique_id=721458511]
|
||||
script = ExtResource("1_b66cd")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=536978238]
|
||||
shape = SubResource("RectangleShape2D_o7s7a")
|
||||
debug_color = Color(0.8398786, 0.37498713, 0.22887537, 0.41960785)
|
||||
+28
-45
@@ -1,24 +1,23 @@
|
||||
[gd_scene format=3 uid="uid://cxa67u8cwsn6x"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ct51411gsine2" path="res://scripts/gamecontroller.gd" id="1_lnu2h"]
|
||||
[ext_resource type="Script" uid="uid://ct34rf6jscqmo" path="res://scripts/player.gd" id="1_uwrxv"]
|
||||
[ext_resource type="Script" uid="uid://ck2uw1e2b0646" path="res://scripts/trigger.gd" id="1_yqjtg"]
|
||||
[ext_resource type="Script" uid="uid://dv2q4p6jb8h4s" path="res://scripts/scene_manager.gd" id="2_lbhrr"]
|
||||
[ext_resource type="PackedScene" uid="uid://b22qsgmtr231s" path="res://scenes/trigger.tscn" id="2_lnu2h"]
|
||||
[ext_resource type="PackedScene" uid="uid://5xgx7qarkj3o" path="res://scenes/crate.tscn" id="3_iywne"]
|
||||
[ext_resource type="PackedScene" uid="uid://dtegcgc8xcxfg" path="res://scenes/player.tscn" id="4_iywne"]
|
||||
[ext_resource type="PackedScene" uid="uid://qrewcx81o1xi" path="res://scenes/bullet.tscn" id="6_p57ef"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mvphy"]
|
||||
size = Vector2(66, 20)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_o7s7a"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_mvphy"]
|
||||
radius = 27.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_o7s7a"]
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_mvphy"]
|
||||
|
||||
[node name="Game" type="Node2D" unique_id=989312165]
|
||||
script = ExtResource("1_lnu2h")
|
||||
|
||||
[node name="SceneManager" type="Node2D" parent="." unique_id=1778809182]
|
||||
script = ExtResource("2_lbhrr")
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=1148293182]
|
||||
position = Vector2(568, 408)
|
||||
metadata/_edit_group_ = true
|
||||
@@ -26,41 +25,11 @@ metadata/_edit_group_ = true
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=1634682333]
|
||||
shape = SubResource("RectangleShape2D_mvphy")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="." unique_id=622131877]
|
||||
position = Vector2(541, 379)
|
||||
rotation = -0.32228005
|
||||
metadata/_edit_group_ = true
|
||||
[node name="RigidBody2D" parent="." unique_id=721458511 instance=ExtResource("3_iywne")]
|
||||
position = Vector2(740, 551)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D" unique_id=1349809273]
|
||||
shape = SubResource("RectangleShape2D_o7s7a")
|
||||
debug_color = Color(0.8398786, 0.37498713, 0.22887537, 0.41960785)
|
||||
|
||||
[node name="RigidBody2D2" type="RigidBody2D" parent="." unique_id=684295328]
|
||||
position = Vector2(510.00006, 297)
|
||||
rotation = -1.1398602
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D2" unique_id=1289600515]
|
||||
shape = SubResource("RectangleShape2D_o7s7a")
|
||||
debug_color = Color(0.8398786, 0.37498713, 0.22887537, 0.41960785)
|
||||
|
||||
[node name="Trigger" type="Area2D" parent="." unique_id=1736949874]
|
||||
position = Vector2(515, 472)
|
||||
script = ExtResource("1_yqjtg")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Trigger" unique_id=840899447]
|
||||
shape = SubResource("CircleShape2D_mvphy")
|
||||
debug_color = Color(0.76538396, 0.26260582, 0.8980484, 0.41960785)
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="." unique_id=509013756]
|
||||
position = Vector2(591, 387)
|
||||
script = ExtResource("1_uwrxv")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D" unique_id=566367520]
|
||||
shape = SubResource("CircleShape2D_o7s7a")
|
||||
debug_color = Color(0.19446194, 0.63244796, 0.32305, 0.41960785)
|
||||
[node name="Player" parent="." unique_id=735255374 instance=ExtResource("4_iywne")]
|
||||
position = Vector2(572, 385)
|
||||
|
||||
[node name="StaticBody2D2" type="StaticBody2D" parent="." unique_id=958110307]
|
||||
position = Vector2(538, 582)
|
||||
@@ -69,5 +38,19 @@ metadata/_edit_group_ = true
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2" unique_id=1123970436]
|
||||
shape = SubResource("WorldBoundaryShape2D_mvphy")
|
||||
|
||||
[connection signal="areaTriggered" from="Trigger" to="." method="_on_trigger"]
|
||||
[connection signal="body_entered" from="Trigger" to="Trigger" method="_on_body_entered"]
|
||||
[node name="Triggers" type="Node2D" parent="." unique_id=1308561168]
|
||||
|
||||
[node name="Trigger" parent="Triggers" unique_id=1346685745 instance=ExtResource("2_lnu2h")]
|
||||
position = Vector2(390, 541)
|
||||
|
||||
[node name="Trigger2" parent="Triggers" unique_id=110247025 instance=ExtResource("2_lnu2h")]
|
||||
position = Vector2(514, 502)
|
||||
effect = "teleport"
|
||||
|
||||
[node name="Crate" parent="." unique_id=1367266345 instance=ExtResource("3_iywne")]
|
||||
position = Vector2(635, 553)
|
||||
|
||||
[node name="Bullet" parent="." unique_id=1877237172 instance=ExtResource("6_p57ef")]
|
||||
position = Vector2(305, 562)
|
||||
|
||||
[connection signal="areaTriggered" from="Triggers/Trigger" to="." method="_on_trigger"]
|
||||
@@ -0,0 +1,25 @@
|
||||
[gd_scene format=3 uid="uid://dtegcgc8xcxfg"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ct34rf6jscqmo" path="res://scripts/player.gd" id="1_3vyb7"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_o7s7a"]
|
||||
|
||||
[node name="Player" type="CharacterBody2D" unique_id=735255374]
|
||||
script = ExtResource("1_3vyb7")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1869095904]
|
||||
shape = SubResource("CircleShape2D_o7s7a")
|
||||
debug_color = Color(0.19446194, 0.63244796, 0.32305, 0.41960785)
|
||||
|
||||
[node name="RightCast" type="RayCast2D" parent="." unique_id=714147844]
|
||||
target_position = Vector2(16, 0)
|
||||
|
||||
[node name="LeftCast" type="RayCast2D" parent="." unique_id=1570883453]
|
||||
target_position = Vector2(-16, 0)
|
||||
|
||||
[node name="RightSpawn" type="Marker2D" parent="." unique_id=1276129807]
|
||||
position = Vector2(14, -6)
|
||||
|
||||
[node name="LeftSpawn" type="Marker2D" parent="." unique_id=522145742]
|
||||
position = Vector2(-15, -6)
|
||||
@@ -0,0 +1,16 @@
|
||||
[gd_scene format=3 uid="uid://b22qsgmtr231s"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ck2uw1e2b0646" path="res://scripts/trigger.gd" id="1_du5ex"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_mvphy"]
|
||||
radius = 27.0
|
||||
|
||||
[node name="Trigger" type="Area2D" unique_id=1346685745]
|
||||
script = ExtResource("1_du5ex")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=936278424]
|
||||
shape = SubResource("CircleShape2D_mvphy")
|
||||
debug_color = Color(0.76538396, 0.26260582, 0.8980484, 0.41960785)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
Reference in new issue
Block a user