bullets and force push working
This commit is contained in:
1 parent
8428eebd76
commit
0c164bff8a
7 files changed
+148
-25
No files matched your search
@@ -0,0 +1,16 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://djsdyfqvl85k1"]
|
||||
|
||||
[ext_resource type="Script" path="res://Sripts/Bullet.gd" id="1_iqvku"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0nhk6"]
|
||||
size = Vector2(20, 11)
|
||||
|
||||
[node name="Area2D" type="Area2D"]
|
||||
script = ExtResource("1_iqvku")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_0nhk6")
|
||||
debug_color = Color(0.345732, 0.414118, 0.250065, 0.42)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
@@ -5,8 +5,6 @@
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_amdo7"]
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D"]
|
||||
position = Vector2(555, 296)
|
||||
rotation = 0.785817
|
||||
script = ExtResource("1_4l5o6")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://bnrrbkgwh35jy"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://bnrrbkgwh35jy"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bq1tvv23y61by" path="res://Scenes/Crate.tscn" id="1_8ldta"]
|
||||
[ext_resource type="Script" path="res://Sripts/player.gd" id="2_2yqxe"]
|
||||
[ext_resource type="PackedScene" uid="uid://crvsom7i1waff" path="res://Scenes/Player.tscn" id="2_vxspj"]
|
||||
[ext_resource type="PackedScene" uid="uid://cb1km20mpc3ag" path="res://Scenes/Trigger.tscn" id="3_sr8fi"]
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_flxcs"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_6fyfv"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_t5iiu"]
|
||||
|
||||
[node name="World" type="Node2D"]
|
||||
|
||||
[node name="BottomWorld" type="StaticBody2D" parent="."]
|
||||
@@ -40,23 +38,14 @@ metadata/_edit_group_ = true
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="platform3"]
|
||||
shape = SubResource("RectangleShape2D_6fyfv")
|
||||
|
||||
[node name="RigidBody2D" parent="." instance=ExtResource("1_8ldta")]
|
||||
position = Vector2(554, 291)
|
||||
|
||||
[node name="RigidBody2D2" parent="." instance=ExtResource("1_8ldta")]
|
||||
position = Vector2(381, 149)
|
||||
|
||||
[node name="RigidBody2D3" parent="." instance=ExtResource("1_8ldta")]
|
||||
position = Vector2(380, 182)
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
position = Vector2(381, 396)
|
||||
script = ExtResource("2_2yqxe")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
shape = SubResource("CircleShape2D_t5iiu")
|
||||
debug_color = Color(0, 1, 0, 0.662745)
|
||||
[node name="CharacterBody2D" parent="." instance=ExtResource("2_vxspj")]
|
||||
position = Vector2(522, 600)
|
||||
|
||||
[node name="Area2D" parent="." instance=ExtResource("3_sr8fi")]
|
||||
position = Vector2(683, 645)
|
||||
|
||||
[node name="RigidBody2D" parent="." groups=["Pushable"] instance=ExtResource("1_8ldta")]
|
||||
position = Vector2(298, 550)
|
||||
|
||||
[node name="RigidBody2D2" parent="." groups=["Pushable"] instance=ExtResource("1_8ldta")]
|
||||
position = Vector2(297, 527)
|
||||
@@ -0,0 +1,25 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://crvsom7i1waff"]
|
||||
|
||||
[ext_resource type="Script" path="res://Sripts/player.gd" id="1_jdiv6"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_t5iiu"]
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D"]
|
||||
script = ExtResource("1_jdiv6")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_t5iiu")
|
||||
debug_color = Color(0, 1, 0, 0.662745)
|
||||
|
||||
[node name="RightRay" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(25, 0)
|
||||
|
||||
[node name="LeftRay" type="RayCast2D" parent="."]
|
||||
target_position = Vector2(-25, 0)
|
||||
|
||||
[node name="MarkerRight" type="Node2D" parent="."]
|
||||
position = Vector2(14, -2)
|
||||
|
||||
[node name="MarkerLeft" type="Node2D" parent="."]
|
||||
position = Vector2(-14, -2)
|
||||
Reference in new issue
Block a user