bullets and force push working

This commit is contained in:
OddlyTimbot committed 2024-09-09 21:02:01 -04:00
1 parent 42cc70db72
commit 887bdfbed3
7 files changed
+141 -24

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
[gd_scene load_steps=3 format=3 uid="uid://dkf3cij6wexnr"]
[ext_resource type="Script" path="res://scripts/bullet.gd" id="1_u02r5"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5agw0"]
size = Vector2(12, 4)
[node name="Area2D" type="Area2D"]
script = ExtResource("1_u02r5")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_5agw0")
debug_color = Color(0.209612, 0.626644, 0.380971, 0.42)
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
-2
View File
@@ -3,8 +3,6 @@
[sub_resource type="RectangleShape2D" id="RectangleShape2D_3vc5e"]
[node name="RigidBody2D" type="RigidBody2D"]
position = Vector2(546, 329)
rotation = 0.879359
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
+10 -22
View File
@@ -1,15 +1,13 @@
[gd_scene load_steps=7 format=3 uid="uid://diss5ty7548p3"]
[gd_scene load_steps=6 format=3 uid="uid://diss5ty7548p3"]
[ext_resource type="PackedScene" uid="uid://0j0320rcnxo7" path="res://scenes/crate.tscn" id="1_8ekmb"]
[ext_resource type="Script" path="res://scripts/player.gd" id="2_8vtyd"]
[ext_resource type="PackedScene" uid="uid://dbgc24hrbtvxm" path="res://scenes/player.tscn" id="2_dlxtb"]
[ext_resource type="PackedScene" uid="uid://csewven6s5npw" path="res://scenes/trigger.tscn" id="3_t3xge"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_byea1"]
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_nl2iw"]
[sub_resource type="CircleShape2D" id="CircleShape2D_mcosy"]
[node name="World" type="Node2D"]
[node name="Platform" type="StaticBody2D" parent="."]
@@ -57,24 +55,14 @@ metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Floor"]
shape = SubResource("WorldBoundaryShape2D_nl2iw")
[node name="RigidBody2D" parent="." instance=ExtResource("1_8ekmb")]
[node name="RigidBody2D2" parent="." instance=ExtResource("1_8ekmb")]
position = Vector2(540, 175)
rotation = -0.0302685
[node name="RigidBody2D3" parent="." instance=ExtResource("1_8ekmb")]
position = Vector2(626, 349)
rotation = 0.872828
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
position = Vector2(537, 362)
script = ExtResource("2_8vtyd")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
shape = SubResource("CircleShape2D_mcosy")
debug_color = Color(0.826895, 0.282133, 0.703752, 0.42)
[node name="CharacterBody2D" parent="." instance=ExtResource("2_dlxtb")]
position = Vector2(650, 362)
[node name="Area2D" parent="." instance=ExtResource("3_t3xge")]
position = Vector2(739, 500)
[node name="RigidBody2D" parent="." groups=["pushables"] instance=ExtResource("1_8ekmb")]
position = Vector2(605, 327)
[node name="RigidBody2D2" parent="." groups=["pushables"] instance=ExtResource("1_8ekmb")]
position = Vector2(718, 331)
+25
View File
@@ -0,0 +1,25 @@
[gd_scene load_steps=3 format=3 uid="uid://dbgc24hrbtvxm"]
[ext_resource type="Script" path="res://scripts/player.gd" id="1_5qpif"]
[sub_resource type="CircleShape2D" id="CircleShape2D_mcosy"]
[node name="CharacterBody2D" type="CharacterBody2D"]
script = ExtResource("1_5qpif")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_mcosy")
debug_color = Color(0.826895, 0.282133, 0.703752, 0.42)
[node name="RightRay" type="RayCast2D" parent="."]
target_position = Vector2(16, 0)
[node name="LeftRay" type="RayCast2D" parent="."]
target_position = Vector2(-17, 0)
[node name="MarkerRight" type="Node2D" parent="."]
position = Vector2(12, -5)
[node name="MarkerLeft" type="Node2D" parent="."]
position = Vector2(-15, -5)