week 1
This commit is contained in:
commit
1084358d66
17 files changed
+255
No files matched your search
@@ -0,0 +1,14 @@
|
||||
[gd_scene format=3 uid="uid://b6lw2go5mwk3h"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://p11f34oi5st7" path="res://scripts/crate.gd" id="1_b66cd"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_uwrxv"]
|
||||
|
||||
[node name="Crate" type="RigidBody2D" unique_id=289536100]
|
||||
rotation = 0.66963565
|
||||
script = ExtResource("1_b66cd")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=185417664]
|
||||
shape = SubResource("RectangleShape2D_uwrxv")
|
||||
debug_color = Color(0.76341826, 0.4463876, 0.16362664, 0.41960785)
|
||||
@@ -0,0 +1,61 @@
|
||||
[gd_scene format=3 uid="uid://c2f5v136bbqod"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dxubdt7nh5s1j" path="res://scripts/gameController.gd" id="1_lnu2h"]
|
||||
[ext_resource type="PackedScene" uid="uid://b6lw2go5mwk3h" path="res://scenes/crate.tscn" id="2_lbhrr"]
|
||||
[ext_resource type="Script" uid="uid://c17de7vvtri1e" path="res://scripts/player.gd" id="2_yqjtg"]
|
||||
[ext_resource type="PackedScene" uid="uid://bf50mxdma8wq4" path="res://scenes/trigger.tscn" id="3_lbhrr"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8cj0n"]
|
||||
size = Vector2(46, 20)
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_lnu2h"]
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_iywne"]
|
||||
|
||||
[node name="Game" type="Node2D" unique_id=863075634]
|
||||
script = ExtResource("1_lnu2h")
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=793440430]
|
||||
position = Vector2(340.99997, 211)
|
||||
scale = Vector2(3.2297606, 1.0433427)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=21019430]
|
||||
shape = SubResource("RectangleShape2D_8cj0n")
|
||||
|
||||
[node name="Crate" parent="." unique_id=289536100 instance=ExtResource("2_lbhrr")]
|
||||
position = Vector2(400.00003, 171)
|
||||
|
||||
[node name="Crate2" parent="." unique_id=1758294520 instance=ExtResource("2_lbhrr")]
|
||||
position = Vector2(284.99994, 159)
|
||||
|
||||
[node name="Trigger" parent="." unique_id=1432397495 instance=ExtResource("3_lbhrr")]
|
||||
position = Vector2(500, 295)
|
||||
|
||||
[node name="Trigger2" parent="." unique_id=528038205 instance=ExtResource("3_lbhrr")]
|
||||
position = Vector2(238, 286)
|
||||
effect = "bounce"
|
||||
|
||||
[node name="Player" type="CharacterBody2D" parent="." unique_id=1104847114]
|
||||
position = Vector2(326, 174)
|
||||
scale = Vector2(2, 2)
|
||||
script = ExtResource("2_yqjtg")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player" unique_id=823407697]
|
||||
shape = SubResource("CircleShape2D_lnu2h")
|
||||
debug_color = Color(0.89751947, 0.22656804, 0.5594576, 0.41960785)
|
||||
|
||||
[node name="StaticBody2D2" type="StaticBody2D" parent="." unique_id=531572601]
|
||||
position = Vector2(363, 399)
|
||||
scale = Vector2(1.4, 2.2)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2" unique_id=237256227]
|
||||
shape = SubResource("WorldBoundaryShape2D_iywne")
|
||||
|
||||
[node name="Crate3" parent="." unique_id=161286893 instance=ExtResource("2_lbhrr")]
|
||||
position = Vector2(354, 114)
|
||||
|
||||
[connection signal="AreaTrigger" from="Trigger" to="." method="_on_trigger"]
|
||||
[connection signal="AreaTrigger" from="Trigger2" to="." method="_on_trigger"]
|
||||
@@ -0,0 +1,16 @@
|
||||
[gd_scene format=3 uid="uid://bf50mxdma8wq4"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://vtqy7n0vgxef" path="res://scripts/trigger.gd" id="1_du5ex"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_8cj0n"]
|
||||
radius = 35.22783
|
||||
|
||||
[node name="Trigger" type="Area2D" unique_id=1432397495]
|
||||
script = ExtResource("1_du5ex")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1523732410]
|
||||
shape = SubResource("CircleShape2D_8cj0n")
|
||||
debug_color = Color(0.3766567, 0.61053944, 0.19980416, 0.41960785)
|
||||
|
||||
[connection signal="body_exited" from="." to="." method="_on_body_exited"]
|
||||
Reference in new issue
Block a user