Working force push, working bullets
This commit is contained in:
1 parent
b18a0fafde
commit
74561cfb2f
7 files changed
+175
-18
No files matched your search
@@ -0,0 +1,15 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://b2tgt64a7m32v"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/bullet.gd" id="1_jag7h"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_eswsk"]
|
||||
size = Vector2(7, 1)
|
||||
|
||||
[node name="Area2D" type="Area2D"]
|
||||
script = ExtResource("1_jag7h")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_eswsk")
|
||||
debug_color = Color(0.827451, 1, 0, 0.419608)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
@@ -0,0 +1,27 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://djgtbc1quqvwe"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/dudecontroller.gd" id="1_ay2gi"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_iice4"]
|
||||
radius = 6.32456
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" groups=["player"]]
|
||||
script = ExtResource("1_ay2gi")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_iice4")
|
||||
debug_color = Color(0.598404, 0.370441, 1, 0.42)
|
||||
|
||||
[node name="RightRay" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(15, 0)
|
||||
|
||||
[node name="LeftRay" type="RayCast2D" parent="."]
|
||||
position = Vector2(1, 0)
|
||||
target_position = Vector2(-16, 0)
|
||||
|
||||
[node name="RightTarget" type="Node2D" parent="."]
|
||||
position = Vector2(6, -5)
|
||||
|
||||
[node name="LeftTarget" type="Node2D" parent="."]
|
||||
position = Vector2(-6, -5)
|
||||
+15
-17
@@ -1,15 +1,14 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://ciko2h5jj1a3k"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://ciko2h5jj1a3k"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/dudecontroller.gd" id="1_2426f"]
|
||||
[ext_resource type="PackedScene" uid="uid://djgtbc1quqvwe" path="res://scenes/dude.tscn" id="1_4l1yw"]
|
||||
[ext_resource type="PackedScene" uid="uid://bw3gps1njvtgr" path="res://scenes/box.tscn" id="1_mg5q5"]
|
||||
[ext_resource type="Script" path="res://scripts/scene_manager.gd" id="1_tpgoh"]
|
||||
[ext_resource type="Script" path="res://scripts/trigger.gd" id="2_a7w16"]
|
||||
[ext_resource type="PackedScene" uid="uid://b2tgt64a7m32v" path="res://scenes/bullet.tscn" id="4_0ysyc"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_fuiwd"]
|
||||
size = Vector2(142, 10)
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_iice4"]
|
||||
radius = 6.32456
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_lbd3t"]
|
||||
size = Vector2(20, 4.47115)
|
||||
|
||||
@@ -17,6 +16,10 @@ size = Vector2(20, 4.47115)
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
|
||||
[node name="SceneManager" type="Node" parent="."]
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("1_tpgoh")
|
||||
|
||||
[node name="Platform" type="StaticBody2D" parent="."]
|
||||
position = Vector2(394, 460)
|
||||
metadata/_edit_group_ = true
|
||||
@@ -25,14 +28,7 @@ metadata/_edit_group_ = true
|
||||
scale = Vector2(1.02381, 1.00385)
|
||||
shape = SubResource("RectangleShape2D_fuiwd")
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
position = Vector2(380, 429)
|
||||
script = ExtResource("1_2426f")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
shape = SubResource("CircleShape2D_iice4")
|
||||
debug_color = Color(0.598404, 0.370441, 1, 0.42)
|
||||
[node name="CharacterBody2D" parent="." instance=ExtResource("1_4l1yw")]
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
position = Vector2(392, 535)
|
||||
@@ -42,17 +38,16 @@ metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
position = Vector2(0, -7.76443)
|
||||
scale = Vector2(1, 1)
|
||||
shape = SubResource("RectangleShape2D_lbd3t")
|
||||
debug_color = Color(0.31865, 0.625237, 0, 0.42)
|
||||
|
||||
[node name="RigidBody2D" parent="." instance=ExtResource("1_mg5q5")]
|
||||
[node name="RigidBody2D" parent="." groups=["shootable"] instance=ExtResource("1_mg5q5")]
|
||||
position = Vector2(432, 417)
|
||||
|
||||
[node name="RigidBody2D2" parent="." instance=ExtResource("1_mg5q5")]
|
||||
[node name="RigidBody2D2" parent="." groups=["shootable"] instance=ExtResource("1_mg5q5")]
|
||||
position = Vector2(405, 385)
|
||||
|
||||
[node name="RigidBody2D3" parent="." instance=ExtResource("1_mg5q5")]
|
||||
[node name="RigidBody2D3" parent="." groups=["shootable"] instance=ExtResource("1_mg5q5")]
|
||||
position = Vector2(422, 344)
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
@@ -62,4 +57,7 @@ metadata/_edit_group_ = true
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
shape = SubResource("WorldBoundaryShape2D_vdfbk")
|
||||
|
||||
[node name="Area2D2" parent="." instance=ExtResource("4_0ysyc")]
|
||||
position = Vector2(269, 391)
|
||||
|
||||
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]
|
||||
Reference in new issue
Block a user