Week one!
This commit is contained in:
commit
ffd0c3f70e
14 files changed
+248
No files matched your search
@@ -0,0 +1,17 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dxj2q0disdlb5"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bpbe57he1kbhm" path="res://scripts/area_2d.gd" id="1_svk5y"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4vge2"]
|
||||
size = Vector2(166, 118)
|
||||
|
||||
[node name="Area2D" type="Area2D"]
|
||||
script = ExtResource("1_svk5y")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_4vge2")
|
||||
debug_color = Color(0.657002, 0.513504, 0.145539, 0.42)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
[connection signal="triggerFired" from="." to="." method="_on_trigger_fired"]
|
||||
@@ -0,0 +1,85 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://f0wep3w30dh8"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ct2t7c0om0cdh" path="res://scripts/gamecontroller.gd" id="1_4dvvg"]
|
||||
[ext_resource type="Script" uid="uid://cmrdtps7txgxx" path="res://scripts/character_body_2d.gd" id="1_6e84v"]
|
||||
[ext_resource type="PackedScene" uid="uid://dxj2q0disdlb5" path="res://scenes/area_2d.tscn" id="3_rnjyy"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rf3rd"]
|
||||
size = Vector2(433.759, 40)
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_rf3rd"]
|
||||
radius = 24.0
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_rf3rd"]
|
||||
radius = 21.0
|
||||
height = 78.0
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_6e84v"]
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_4dvvg"]
|
||||
normal = Vector2(0.999872, -0.015998)
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_rnjyy"]
|
||||
normal = Vector2(-0.999909, -0.0135123)
|
||||
|
||||
[node name="Node2D" type="Node2D"]
|
||||
script = ExtResource("1_4dvvg")
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
position = Vector2(370, 393)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
rotation = 0.359538
|
||||
shape = SubResource("RectangleShape2D_rf3rd")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
||||
position = Vector2(370, 273)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
shape = SubResource("CircleShape2D_rf3rd")
|
||||
debug_color = Color(1, 0.234871, 0.652107, 0.42)
|
||||
|
||||
[node name="StaticBody2D2" type="StaticBody2D" parent="."]
|
||||
position = Vector2(679, 504)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2"]
|
||||
rotation = -0.357792
|
||||
shape = SubResource("RectangleShape2D_rf3rd")
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
position = Vector2(623, 366)
|
||||
script = ExtResource("1_6e84v")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
shape = SubResource("CapsuleShape2D_rf3rd")
|
||||
debug_color = Color(0.232329, 0.752878, 1.15514e-06, 0.42)
|
||||
|
||||
[node name="floor" type="StaticBody2D" parent="."]
|
||||
position = Vector2(558, 646)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="floor"]
|
||||
shape = SubResource("WorldBoundaryShape2D_6e84v")
|
||||
|
||||
[node name="left wall" type="StaticBody2D" parent="."]
|
||||
position = Vector2(0, 387)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="left wall"]
|
||||
shape = SubResource("WorldBoundaryShape2D_4dvvg")
|
||||
|
||||
[node name="right wall" type="StaticBody2D" parent="."]
|
||||
position = Vector2(1154, 345)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="right wall"]
|
||||
shape = SubResource("WorldBoundaryShape2D_rnjyy")
|
||||
|
||||
[node name="Area2D" parent="." instance=ExtResource("3_rnjyy")]
|
||||
position = Vector2(83, 587)
|
||||
|
||||
[connection signal="triggerFired" from="Area2D" to="." method="_on_area_2d_trigger_fired"]
|
||||
Reference in new issue
Block a user