first commit

This commit is contained in:
KieranScott committed 2024-09-09 21:14:16 -04:00
commit f87514862f
14 files changed
+356

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
[gd_scene load_steps=3 format=3 uid="uid://2t0xiriuidfv"]
[ext_resource type="Script" path="res://scripts/bullet.gd" id="1_yfigc"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_k7u0n"]
size = Vector2(8, 4)
[node name="Area2D" type="Area2D"]
script = ExtResource("1_yfigc")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_k7u0n")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
+10
View File
@@ -0,0 +1,10 @@
[gd_scene load_steps=2 format=3 uid="uid://tqmrje2x7402"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4vo4d"]
size = Vector2(55, 55)
[node name="RigidBody2D" type="RigidBody2D"]
[node name="CollisionShape2D2" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_4vo4d")
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
+90
View File
@@ -0,0 +1,90 @@
[gd_scene load_steps=8 format=3 uid="uid://y083suj12rld"]
[ext_resource type="Script" path="res://scripts/gamecontroller.gd" id="1_77wyw"]
[ext_resource type="PackedScene" uid="uid://1r61y5ig6l0t" path="res://scenes/player.tscn" id="2_cvs2y"]
[ext_resource type="Script" path="res://scripts/Trigger.gd" id="2_nfj1w"]
[ext_resource type="PackedScene" uid="uid://tqmrje2x7402" path="res://scenes/crate.tscn" id="4_aehbo"]
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_3u4a8"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cq7kj"]
size = Vector2(91, 20)
[sub_resource type="CircleShape2D" id="CircleShape2D_x8qck"]
radius = 60.2993
[node name="Game" type="Node2D"]
script = ExtResource("1_77wyw")
[node name="StaticBody2D" type="StaticBody2D" parent="."]
position = Vector2(236, 415)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
shape = SubResource("WorldBoundaryShape2D_3u4a8")
[node name="groundblock" type="StaticBody2D" parent="."]
position = Vector2(235, 205)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="groundblock"]
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
[node name="groundblock2" type="StaticBody2D" parent="."]
position = Vector2(91, 430)
scale = Vector2(3.76, 1)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="groundblock2"]
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
[node name="level" type="Node2D" parent="."]
[node name="groundblock2" type="StaticBody2D" parent="level"]
position = Vector2(548, 315)
rotation = -0.384935
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock2"]
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
[node name="groundblock3" type="StaticBody2D" parent="level"]
position = Vector2(404, 353)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="level/groundblock3"]
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
[node name="CharacterBody2D" parent="." instance=ExtResource("2_cvs2y")]
[node name="Area2D" type="Area2D" parent="."]
position = Vector2(331, 269)
script = ExtResource("2_nfj1w")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_x8qck")
debug_color = Color(0.556863, 0.415686, 0.964706, 0.419608)
[node name="RigidBody2D" parent="." groups=["pushables"] instance=ExtResource("4_aehbo")]
position = Vector2(170, 380)
rotation = -0.0397179
[node name="RigidBody2D2" parent="." groups=["pushables"] instance=ExtResource("4_aehbo")]
position = Vector2(403, 198)
rotation = -0.568761
[node name="RigidBody2D3" parent="." groups=["pushables"] instance=ExtResource("4_aehbo")]
position = Vector2(525, 165)
rotation = -1.02526
[node name="RigidBody2D4" parent="." instance=ExtResource("4_aehbo")]
position = Vector2(-11, 387)
rotation = 1.66518
[connection signal="areatrigger" from="Area2D" to="." method="_on_area_2d_areatrigger"]
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]
+25
View File
@@ -0,0 +1,25 @@
[gd_scene load_steps=3 format=3 uid="uid://1r61y5ig6l0t"]
[ext_resource type="Script" path="res://scripts/CharacterBody2D.gd" id="1_oi3ai"]
[sub_resource type="CircleShape2D" id="CircleShape2D_ubfw4"]
radius = 13.0384
[node name="CharacterBody2D" type="CharacterBody2D"]
script = ExtResource("1_oi3ai")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_ubfw4")
[node name="RightRay" type="RayCast2D" parent="."]
target_position = Vector2(30, 0)
[node name="LeftRay" type="RayCast2D" parent="."]
target_position = Vector2(-34, 0)
[node name="MarkerRight" type="Node2D" parent="."]
position = Vector2(15, -5)
[node name="MarkerLeft" type="Node2D" parent="."]
position = Vector2(-15, -5)