working bullet factory
This commit is contained in:
1 parent
7bac7283dd
commit
29acef878e
9 files changed
+109
-5
No files matched your search
@@ -0,0 +1,15 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://ckc5gbyie17tm"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/bullet.gd" id="1_fxxmp"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rws30"]
|
||||
size = Vector2(10, 4)
|
||||
|
||||
[node name="Area2D" type="Area2D"]
|
||||
script = ExtResource("1_fxxmp")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_rws30")
|
||||
debug_color = Color(0.892283, 0.284139, 0.402358, 0.42)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jqoba"]
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D"]
|
||||
[node name="RigidBody2D" type="RigidBody2D" groups=["destructable"]]
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://r8jj43l4t6is"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://r8jj43l4t6is"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/gamecontroller.gd" id="1_8i1rq"]
|
||||
[ext_resource type="PackedScene" uid="uid://di3tq4f0xmdqc" path="res://scenes/crate.tscn" id="1_tfj4n"]
|
||||
[ext_resource type="Script" path="res://scripts/trigger.gd" id="3_hm0br"]
|
||||
[ext_resource type="PackedScene" uid="uid://dcbk086hhrn7y" path="res://scenes/player.tscn" id="3_oy8j2"]
|
||||
[ext_resource type="PackedScene" uid="uid://ckc5gbyie17tm" path="res://scenes/bullet.tscn" id="5_omx4l"]
|
||||
[ext_resource type="Script" path="res://scripts/scene_manager.gd" id="6_1kka5"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jk5qv"]
|
||||
size = Vector2(66, 20)
|
||||
@@ -56,5 +58,12 @@ metadata/_edit_group_ = true
|
||||
shape = SubResource("CircleShape2D_8j7te")
|
||||
debug_color = Color(0.827271, 0.252084, 0.761388, 0.42)
|
||||
|
||||
[node name="Area2D2" parent="." instance=ExtResource("5_omx4l")]
|
||||
position = Vector2(178, 316)
|
||||
|
||||
[node name="SceneManager" type="Node" parent="."]
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("6_1kka5")
|
||||
|
||||
[connection signal="areaTrigger" from="Area2D" to="." method="_on_trigger"]
|
||||
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_qrixx"]
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D"]
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" groups=["player"]]
|
||||
script = ExtResource("1_6alft")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
@@ -17,3 +17,9 @@ target_position = Vector2(18, 0)
|
||||
|
||||
[node name="LeftRay" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(-19, 0)
|
||||
|
||||
[node name="RightTarget" type="Node2D" parent="."]
|
||||
position = Vector2(10, -5)
|
||||
|
||||
[node name="LeftTarget" type="Node2D" parent="."]
|
||||
position = Vector2(-10, -5)
|
||||
Reference in new issue
Block a user