|
1 | | -[gd_scene load_steps=5 format=2] |
| 1 | +[gd_scene load_steps=8 format=2] |
2 | 2 |
|
3 | 3 | [ext_resource path="res://scenes/Player.tscn" type="PackedScene" id=1] |
4 | 4 | [ext_resource path="res://scenes/Boat.tscn" type="PackedScene" id=2] |
5 | 5 | [ext_resource path="res://assets/water/depth_buffer/Water.tscn" type="PackedScene" id=3] |
6 | 6 | [ext_resource path="res://scenes/Sapo.tscn" type="PackedScene" id=4] |
| 7 | +[ext_resource path="res://ui/fonts/Comfortaa-Bold.ttf" type="DynamicFontData" id=5] |
| 8 | + |
| 9 | +[sub_resource type="BoxShape" id=1] |
| 10 | +extents = Vector3( 500, 1, 500 ) |
| 11 | + |
| 12 | +[sub_resource type="DynamicFont" id=2] |
| 13 | +size = 150 |
| 14 | +font_data = ExtResource( 5 ) |
7 | 15 |
|
8 | 16 | [node name="World" type="Spatial"] |
9 | 17 |
|
@@ -42,3 +50,40 @@ transform = Transform( 0.05, 0, 0, 0, -0.00673909, 0.0495438, 0, -0.0495438, -0. |
42 | 50 |
|
43 | 51 | [node name="Water" parent="." instance=ExtResource( 3 )] |
44 | 52 | transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0186162, 0 ) |
| 53 | + |
| 54 | +[node name="Area" type="Area" parent="Water"] |
| 55 | + |
| 56 | +[node name="CollisionShape" type="CollisionShape" parent="Water/Area"] |
| 57 | +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.92327, 0 ) |
| 58 | +shape = SubResource( 1 ) |
| 59 | + |
| 60 | +[node name="CanvasLayer" type="CanvasLayer" parent="."] |
| 61 | + |
| 62 | +[node name="CenterContainer" type="CenterContainer" parent="CanvasLayer"] |
| 63 | +anchor_right = 1.0 |
| 64 | +anchor_bottom = 1.0 |
| 65 | +__meta__ = { |
| 66 | +"_edit_use_anchors_": false |
| 67 | +} |
| 68 | + |
| 69 | +[node name="Label" type="Label" parent="CanvasLayer/CenterContainer"] |
| 70 | +margin_left = 118.0 |
| 71 | +margin_top = 312.0 |
| 72 | +margin_right = 1162.0 |
| 73 | +margin_bottom = 481.0 |
| 74 | +grow_horizontal = 2 |
| 75 | +grow_vertical = 2 |
| 76 | +size_flags_horizontal = 3 |
| 77 | +size_flags_vertical = 3 |
| 78 | +custom_fonts/font = SubResource( 2 ) |
| 79 | +custom_colors/font_color = Color( 1, 0.984314, 0.627451, 1 ) |
| 80 | +text = "Voce venceu!" |
| 81 | +align = 1 |
| 82 | +valign = 1 |
| 83 | + |
| 84 | +[node name="Timer" type="Timer" parent="."] |
| 85 | +process_mode = 0 |
| 86 | + |
| 87 | +[connection signal="body_entered" from="Sapo" to="Player" method="_on_Sapo_body_entered"] |
| 88 | +[connection signal="body_entered" from="Water/Area" to="Player" method="_on_Water_body_entered"] |
| 89 | +[connection signal="timeout" from="Timer" to="Player" method="_on_Timer_timeout"] |
0 commit comments