Setup
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
[gd_scene load_steps=8 format=2]
|
||||
|
||||
[ext_resource path="res://Player.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://assets/textures/background.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Ground.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://assets/textures/gameover.png" type="Texture" id=4]
|
||||
[ext_resource path="res://assets/fonts/flappyfont.TTF" type="DynamicFontData" id=5]
|
||||
[ext_resource path="res://scripts/World.cs" type="Script" id=6]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 77
|
||||
font_data = ExtResource( 5 )
|
||||
|
||||
[node name="World" type="Node2D"]
|
||||
script = ExtResource( 6 )
|
||||
|
||||
[node name="Background" type="Sprite" parent="."]
|
||||
texture = ExtResource( 2 )
|
||||
centered = false
|
||||
|
||||
[node name="Ground" parent="." instance=ExtResource( 3 )]
|
||||
position = Vector2( 0, 8 )
|
||||
|
||||
[node name="Overlay" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="Score" type="Label" parent="Overlay"]
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
margin_left = -240.0
|
||||
margin_right = 240.0
|
||||
margin_bottom = 160.0
|
||||
custom_fonts/font = SubResource( 1 )
|
||||
custom_colors/font_color_shadow = Color( 0, 0, 0, 1 )
|
||||
custom_constants/shadow_offset_x = 2
|
||||
custom_constants/shadow_offset_y = 2
|
||||
custom_constants/shadow_as_outline = 2
|
||||
text = "0"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 1.65
|
||||
autostart = true
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource( 1 )]
|
||||
position = Vector2( 72, 427 )
|
||||
|
||||
[node name="GameOver" type="Sprite" parent="."]
|
||||
visible = false
|
||||
position = Vector2( 232, 384 )
|
||||
texture = ExtResource( 4 )
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|
||||
Reference in New Issue
Block a user