live code session jul 15

This commit is contained in:
OddlyTimbot committed 2024-07-15 21:10:20 -04:00
1 parent 1fe2c0d703
commit e123f67eae
22 files changed
+593 -42

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
[gd_scene load_steps=3 format=3 uid="uid://c5bftwgkssaf2"]
[ext_resource type="Script" path="res://scripts/bullet.gd" id="1_t2eet"]
[sub_resource type="CircleShape2D" id="CircleShape2D_1gtqp"]
radius = 6.0
[node name="Area2D" type="Area2D"]
script = ExtResource("1_t2eet")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_1gtqp")
debug_color = Color(0.721569, 0.337255, 0.854902, 0.419608)
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
+28
View File
@@ -0,0 +1,28 @@
[gd_scene load_steps=3 format=3 uid="uid://go4yc8hfo1gq"]
[ext_resource type="Script" path="res://scripts/CharacterBody2D.gd" id="1_x87yo"]
[sub_resource type="CircleShape2D" id="CircleShape2D_ubfw4"]
radius = 13.0384
[node name="CharacterBody2D" type="CharacterBody2D"]
position = Vector2(-1, 0)
script = ExtResource("1_x87yo")
JUMP_VELOCITY = -500.0
PUSH_FORCE = 200
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_ubfw4")
[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(16, -6)
[node name="MarkerLeft" type="Node2D" parent="."]
position = Vector2(-16, -6)
+25 -15
View File
@@ -1,7 +1,7 @@
[gd_scene load_steps=9 format=3 uid="uid://y083suj12rld"]
[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="Script" path="res://scripts/CharacterBody2D.gd" id="1_u4sui"]
[ext_resource type="PackedScene" uid="uid://go4yc8hfo1gq" path="res://scenes/character.tscn" id="2_64ccm"]
[ext_resource type="Script" path="res://scripts/Trigger.gd" id="2_nfj1w"]
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_3u4a8"]
@@ -12,9 +12,6 @@ size = Vector2(55, 55)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_cq7kj"]
size = Vector2(91, 20)
[sub_resource type="CircleShape2D" id="CircleShape2D_ubfw4"]
radius = 13.0384
[sub_resource type="CircleShape2D" id="CircleShape2D_x8qck"]
radius = 60.2993
@@ -28,9 +25,10 @@ metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
shape = SubResource("WorldBoundaryShape2D_3u4a8")
[node name="RigidBody2D" type="RigidBody2D" parent="."]
position = Vector2(87, 18)
[node name="RigidBody2D" type="RigidBody2D" parent="." groups=["boxes"]]
position = Vector2(139, 35)
rotation = 0.740513
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
position = Vector2(206.535, 208.174)
@@ -44,8 +42,25 @@ rotation = -0.555892
shape = SubResource("RectangleShape2D_4vo4d")
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
[node name="RigidBody2D2" type="RigidBody2D" parent="." groups=["boxes"]]
position = Vector2(409, -6)
rotation = 0.740513
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D2"]
position = Vector2(206.535, 208.174)
rotation = -0.555892
shape = SubResource("RectangleShape2D_4vo4d")
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
[node name="CollisionShape2D2" type="CollisionShape2D" parent="RigidBody2D2"]
position = Vector2(206.535, 208.174)
rotation = -0.555892
shape = SubResource("RectangleShape2D_4vo4d")
debug_color = Color(0.815686, 0.4, 0.207843, 0.419608)
[node name="groundblock" type="StaticBody2D" parent="."]
position = Vector2(124, 357)
position = Vector2(117, 384)
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="groundblock"]
@@ -79,13 +94,8 @@ metadata/_edit_group_ = true
position = Vector2(-1.5, 0)
shape = SubResource("RectangleShape2D_cq7kj")
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
position = Vector2(155, 328)
script = ExtResource("1_u4sui")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
shape = SubResource("CircleShape2D_ubfw4")
[node name="CharacterBody2D" parent="." groups=["player"] instance=ExtResource("2_64ccm")]
PUSH_FORCE = 550
[node name="Area2D" type="Area2D" parent="."]
position = Vector2(260, 352)