4 game objects, working characterbody, basic impulses

This commit is contained in:
OddlyTimbot committed 2024-11-18 20:48:50 -05:00
1 parent d3e28f22b8
commit 2b8c206abc
5 files changed
+147

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
[gd_scene load_steps=2 format=3 uid="uid://dm71h7adhhf8u"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_dbirr"]
size = Vector2(30, 32)
[node name="RigidBody2D" type="RigidBody2D" groups=["box"]]
position = Vector2(531, 339)
rotation = 2.64233
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_dbirr")
debug_color = Color(0.747094, 0.350436, 0.149052, 0.42)
+75
View File
@@ -0,0 +1,75 @@
[gd_scene load_steps=8 format=3 uid="uid://cmh68gsfunmwa"]
[ext_resource type="Script" path="res://scripts/dudecontroller.gd" id="1_14xrk"]
[ext_resource type="Script" path="res://scripts/trigger.gd" id="2_tsnf5"]
[ext_resource type="PackedScene" uid="uid://dm71h7adhhf8u" path="res://scenes/box.tscn" id="3_pi0u1"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rcjag"]
size = Vector2(84, 12)
[sub_resource type="CircleShape2D" id="CircleShape2D_pg3nc"]
radius = 18.1108
[sub_resource type="RectangleShape2D" id="RectangleShape2D_supj4"]
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_c5gsu"]
[node name="Game" type="Node2D"]
[node name="Platform" type="StaticBody2D" parent="."]
position = Vector2(523, 407)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Platform"]
shape = SubResource("RectangleShape2D_rcjag")
[node name="Platform2" type="StaticBody2D" parent="."]
position = Vector2(658, 415)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Platform2"]
shape = SubResource("RectangleShape2D_rcjag")
[node name="Platform3" type="StaticBody2D" parent="."]
position = Vector2(725, 328)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Platform3"]
shape = SubResource("RectangleShape2D_rcjag")
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
position = Vector2(504, 382)
script = ExtResource("1_14xrk")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
shape = SubResource("CircleShape2D_pg3nc")
debug_color = Color(0.178776, 0.565003, 0.825276, 0.42)
[node name="Area2D" type="Area2D" parent="."]
position = Vector2(519, 464)
scale = Vector2(10.92, 1)
script = ExtResource("2_tsnf5")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("RectangleShape2D_supj4")
debug_color = Color(0.793021, 0.25626, 0.844091, 0.42)
[node name="RigidBody2D" parent="." instance=ExtResource("3_pi0u1")]
position = Vector2(571, 331)
[node name="RigidBody2D2" parent="." instance=ExtResource("3_pi0u1")]
[node name="RigidBody2D3" parent="." instance=ExtResource("3_pi0u1")]
position = Vector2(479, 288)
rotation = 1.16823
[node name="StaticBody2D" type="StaticBody2D" parent="."]
position = Vector2(508, 565)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
shape = SubResource("WorldBoundaryShape2D_c5gsu")
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]