initial commit

This commit is contained in:
2018-10-10 23:35:35 +08:00
commit ca4464ac79
45 changed files with 1281 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
# Godot-specific ignores
.import/
export.cfg
export_presets.cfg
# Mono-specific ignores
.mono/
+16
View File
@@ -0,0 +1,16 @@
extends Area2D
# class member variables go here, for example:
# var a = 2
# var b = "textvar"
func _ready():
# Called when the node is added to the scene for the first time.
# Initialization here
pass
#func _process(delta):
# # Called every frame. Delta is time since last frame.
# # Update game logic here.
# pass
+33
View File
@@ -0,0 +1,33 @@
extends Node2D
# class member variables go here, for example:
# var a = 2
# var b = "textvar"
export (int) var speed
var is_stop = true
func set_stop(set):
is_stop = set
func _ready():
# Called when the node is added to the scene for the first time.
# Initialization here
$Ground0.position.x = 0
$Ground1.position.x = 336
pass
func _process(delta):
# Called every frame. Delta is time since last frame.
# Update game logic here.
if is_stop == false:
$Ground0.position.x -= speed
$Ground1.position.x -= speed
if $Ground0.position.x <= -336:
$Ground0.position.x = 336
elif $Ground1.position.x <= -336:
$Ground1.position.x = 336
pass
+62
View File
@@ -0,0 +1,62 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Background.gd" type="Script" id=1]
[ext_resource path="res://art/background/ground.png" type="Texture" id=2]
[sub_resource type="RectangleShape2D" id=1]
custom_solver_bias = 0.0
extents = Vector2( 164.117, 50.5378 )
[node name="Background" type="Node2D"]
script = ExtResource( 1 )
speed = 2
[node name="Ground0" type="StaticBody2D" parent="." index="0"]
input_pickable = false
collision_layer = 1
collision_mask = 1
constant_linear_velocity = Vector2( 0, 0 )
constant_angular_velocity = 0.0
friction = 1.0
bounce = 0.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="Ground0" index="0"]
position = Vector2( 168.488, 457.89 )
shape = SubResource( 1 )
[node name="first_ground" type="Sprite" parent="Ground0" index="1"]
position = Vector2( 0, 400 )
texture = ExtResource( 2 )
centered = false
_sections_unfolded = [ "Offset", "Region", "Transform" ]
[node name="Ground1" type="StaticBody2D" parent="." index="1"]
position = Vector2( 333, 0 )
input_pickable = false
collision_layer = 1
collision_mask = 1
constant_linear_velocity = Vector2( 0, 0 )
constant_angular_velocity = 0.0
friction = 1.0
bounce = 0.0
_sections_unfolded = [ "Transform" ]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Ground1" index="0"]
position = Vector2( 168.488, 457.89 )
shape = SubResource( 1 )
[node name="first_ground" type="Sprite" parent="Ground1" index="1"]
position = Vector2( 0, 400 )
texture = ExtResource( 2 )
centered = false
_sections_unfolded = [ "Offset", "Region", "Transform" ]
+67
View File
@@ -0,0 +1,67 @@
extends Area2D
# class member variables go here, for example:
# var a = 2
# var b = "textvar"
var fly_count = 0
var velocity = Vector2()
var is_flying = false
signal dead
func _ready():
# Called when the node is added to the scene for the first time.
# Initialization here
hide()
$CollisionPolygon2D.disabled = true
$AudioStreamPlayer.stop()
pass
func start(pos):
velocity.y = 0
position = pos
show()
$CollisionPolygon2D.disabled = false
is_flying = true
func set_flying(set):
is_flying = set
func _process(delta):
# Called every frame. Delta is time since last frame.
# Update game logic here.
if is_flying == true:
velocity.y += 0.4
if Input.is_action_just_pressed("ui_up") or Input.is_key_pressed(KEY_BACKSPACE) :
velocity.y = -7
fly_count = 8
# move_and_collide(Vector2(0, -20))
$Bird_action.play()
$AudioStreamPlayer.play()
elif fly_count != 0:
fly_count -= 1
# applied_force.y = 0
else:
# move_and_collide(Vector2(0, 2))
# velocity.y = 3
$Bird_action.stop()
position.y += velocity.y
func _on_Bird_body_entered(body):
$CollisionPolygon2D.disabled = true
emit_signal("dead")
is_flying = false
func _on_VisibilityNotifier2D_screen_exited():
if is_flying == true:
$CollisionPolygon2D.disabled = true
emit_signal("dead")
is_flying = false
+67
View File
@@ -0,0 +1,67 @@
[gd_scene load_steps=7 format=2]
[ext_resource path="res://Bird.gd" type="Script" id=1]
[ext_resource path="res://art/bird/bird0.png" type="Texture" id=2]
[ext_resource path="res://art/bird/bird1.png" type="Texture" id=3]
[ext_resource path="res://art/sound/sfx_wing.ogg" type="AudioStream" id=4]
[ext_resource path="res://art/sound/sfx_hit.ogg" type="AudioStream" id=5]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 2 ), ExtResource( 3 ) ],
"loop": true,
"name": "fly",
"speed": 8.0
} ]
[node name="Bird" type="Area2D" index="0"]
input_pickable = true
gravity_vec = Vector2( 0, 1 )
gravity = 98.0
linear_damp = 0.1
angular_damp = 1.0
audio_bus_override = false
audio_bus_name = "Master"
script = ExtResource( 1 )
_sections_unfolded = [ "Applied Forces", "Collision", "Material", "Pause", "Pickable", "Transform", "Visibility", "collision" ]
[node name="Bird_action" type="AnimatedSprite" parent="." index="0"]
frames = SubResource( 1 )
animation = "fly"
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="." index="1"]
build_mode = 0
polygon = PoolVector2Array( -17.0702, -0.266529, -5.03719, -11.7355, 6.87053, -11.7355, 12.9497, -5.9697, 12.9497, -0.517218, 16.7727, 2.42838, 13.2631, 9.94904, 3.73692, 10.0117, 3.1102, 11.8292, -7.0427, 11.9545, -17.1329, 3.61915 )
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="." index="2"]
rect = Rect2( -10, -10, 20, 20 )
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="." index="3"]
stream = ExtResource( 4 )
volume_db = 0.0
pitch_scale = 1.0
autoplay = false
mix_target = 0
bus = "Master"
_sections_unfolded = [ "Pause" ]
[node name="hit" type="AudioStreamPlayer" parent="." index="4"]
stream = ExtResource( 5 )
volume_db = 0.0
pitch_scale = 1.0
autoplay = false
mix_target = 0
bus = "Master"
[connection signal="body_entered" from="." to="." method="_on_Bird_body_entered"]
[connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]
+49
View File
@@ -0,0 +1,49 @@
extends Node2D
# class member variables go here, for example:
# var a = 2
# var b = "textvar"
signal start
func _ready():
# Called when the node is added to the scene for the first time.
# Initialization here
hide_everything()
pass
func show_start():
$logo.show()
$start_button.show()
$rank_button.show()
$score_label.hide()
func get_ready():
$get_ready.show()
$score_label.show()
func hide_everything():
$logo.hide()
$game_over.hide()
$get_ready.hide()
$start_button.hide()
$rank_button.hide()
$score_label.hide()
func game_over():
$game_over.show()
$start_button.show()
$rank_button.show()
func set_score(score):
$score_label.text = str(score)
#func _process(delta):
# # Called every frame. Delta is time since last frame.
# # Update game logic here.
# pass
func _on_start_button_pressed():
emit_signal("start")
+120
View File
@@ -0,0 +1,120 @@
[gd_scene load_steps=9 format=2]
[ext_resource path="res://HUD.gd" type="Script" id=1]
[ext_resource path="res://art/label/game_over.png" type="Texture" id=2]
[ext_resource path="res://art/label/logo.png" type="Texture" id=3]
[ext_resource path="res://art/label/get_ready.png" type="Texture" id=4]
[ext_resource path="res://art/button/rank_button.png" type="Texture" id=5]
[ext_resource path="res://art/button/start_button.png" type="Texture" id=6]
[ext_resource path="res://art/font/Xolonium-Regular.ttf" type="DynamicFontData" id=7]
[sub_resource type="DynamicFont" id=1]
size = 32
use_mipmaps = false
use_filter = false
font_data = ExtResource( 7 )
_sections_unfolded = [ "Font", "Settings" ]
[node name="HUD" type="Node2D"]
script = ExtResource( 1 )
[node name="game_over" type="Sprite" parent="." index="0"]
position = Vector2( 142, 150 )
texture = ExtResource( 2 )
[node name="logo" type="Sprite" parent="." index="1"]
position = Vector2( 142, 150 )
texture = ExtResource( 3 )
_sections_unfolded = [ "Transform" ]
__meta__ = {
"_edit_group_": true
}
[node name="get_ready" type="Sprite" parent="." index="2"]
position = Vector2( 142, 150 )
texture = ExtResource( 4 )
_sections_unfolded = [ "Transform" ]
[node name="rank_button" type="TextureButton" parent="." index="3"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 167.0
margin_top = 350.0
margin_right = 271.0
margin_bottom = 408.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
group = null
texture_normal = ExtResource( 5 )
_sections_unfolded = [ "Rect" ]
[node name="start_button" type="TextureButton" parent="." index="4"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 18.0
margin_top = 350.0
margin_right = 122.0
margin_bottom = 408.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
focus_mode = 2
mouse_filter = 0
mouse_default_cursor_shape = 0
size_flags_horizontal = 1
size_flags_vertical = 1
toggle_mode = false
enabled_focus_mode = 2
shortcut = null
group = null
texture_normal = ExtResource( 6 )
_sections_unfolded = [ "Rect", "Textures" ]
[node name="score_label" type="Label" parent="." index="5"]
anchor_left = 0.0
anchor_top = 0.0
anchor_right = 0.0
anchor_bottom = 0.0
margin_left = 135.0
margin_top = 60.0
margin_right = 175.0
margin_bottom = 99.0
rect_pivot_offset = Vector2( 0, 0 )
rect_clip_content = false
mouse_filter = 2
mouse_default_cursor_shape = 0
size_flags_horizontal = 5
size_flags_vertical = 4
custom_fonts/font = SubResource( 1 )
custom_colors/font_color = Color( 1, 1, 1, 1 )
custom_constants/shadow_offset_x = 3
custom_constants/shadow_offset_y = 0
align = 1
valign = 1
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
_sections_unfolded = [ "Anchor", "Focus", "Grow Direction", "Hint", "Margin", "Material", "Mouse", "Pause", "Rect", "Size Flags", "Visibility", "custom_colors", "custom_constants", "custom_fonts" ]
[connection signal="pressed" from="start_button" to="." method="_on_start_button_pressed"]
+48
View File
@@ -0,0 +1,48 @@
extends Node2D
var score = 0
func _ready():
# Called when the node is added to the scene for the first time.
# Initialization here
randomize()
$HUD.show_start()
func start():
score = 0
$start_timer.start()
$HUD.hide_everything()
$HUD.get_ready()
$Pillars.init_position()
$ground.set_stop(false)
$Bird.position = $start_position.position
$Bird.show()
func game_over():
$Bird/hit.play()
$score_timer.stop()
$Pillars.set_stop(true)
$HUD.game_over()
# $Bird.hide()
$ground.set_stop(true)
$Bird.set_flying(false)
func _process(delta):
# Called every frame. Delta is time since last frame.
# Update game logic here.
$HUD.set_score(score)
func _on_start_timer_timeout():
$HUD.hide_everything()
$Bird.start($start_position.position)
$Pillars.start()
$score_timer.start()
$HUD/score_label.show()
$Bird.set_flying(true)
func _on_score_timer_timeout():
score += 1
+57
View File
@@ -0,0 +1,57 @@
[gd_scene load_steps=7 format=2]
[ext_resource path="res://Main.gd" type="Script" id=1]
[ext_resource path="res://art/background/day.png" type="Texture" id=2]
[ext_resource path="res://Pillar.tscn" type="PackedScene" id=3]
[ext_resource path="res://Background.tscn" type="PackedScene" id=4]
[ext_resource path="res://Bird.tscn" type="PackedScene" id=5]
[ext_resource path="res://HUD.tscn" type="PackedScene" id=6]
[node name="Node2D" type="Node2D"]
script = ExtResource( 1 )
[node name="background" type="Sprite" parent="." index="0"]
texture = ExtResource( 2 )
centered = false
_sections_unfolded = [ "Offset" ]
[node name="Pillars" parent="." index="1" instance=ExtResource( 3 )]
[node name="ground" parent="." index="2" instance=ExtResource( 4 )]
speed = 1
[node name="Bird" parent="." index="3" instance=ExtResource( 5 )]
[node name="start_position" type="Node2D" parent="." index="4"]
position = Vector2( 142, 256 )
_sections_unfolded = [ "Transform" ]
[node name="HUD" parent="." index="5" instance=ExtResource( 6 )]
[node name="start_timer" type="Timer" parent="." index="6"]
process_mode = 1
wait_time = 1.0
one_shot = true
autostart = false
[node name="score_timer" type="Timer" parent="." index="7"]
process_mode = 1
wait_time = 1.0
one_shot = false
autostart = false
[connection signal="dead" from="Bird" to="." method="game_over"]
[connection signal="start" from="HUD" to="." method="start"]
[connection signal="timeout" from="start_timer" to="." method="_on_start_timer_timeout"]
[connection signal="timeout" from="score_timer" to="." method="_on_score_timer_timeout"]
+79
View File
@@ -0,0 +1,79 @@
extends Node2D
# class member variables go here, for example:
# var a = 2
# var b = "textvar"
export (int) var speed = 1
var interval = 180
var is_stop = true
func _ready():
# Called when the node is added to the scene for the first time.
# Initialization here
init_position()
hide()
pass
func start():
init_position()
show()
set_stop(false)
func set_stop(set):
is_stop = set
func stop():
hide()
func init_position():
$top_pillar0.position.x = 290
$top_pillar0.position.y = -25
$below_pillar0.position.x = 290
$below_pillar0.position.y = 425
$top_pillar1.position.x = 290 + interval
$top_pillar1.position.y = randi() % 70
$below_pillar1.position.x = 290 + interval
$below_pillar1.position.y = $top_pillar1.position.y + 130 + 320
$top_pillar2.position.x = 290 + 2 * interval
$top_pillar2.position.y = randi() % 70
$below_pillar2.position.x = 290 + 2 * interval
$below_pillar2.position.y = $top_pillar2.position.y + 130 + 320
func _process(delta):
# Called every frame. Delta is time since last frame.
# Update game logic here.
if is_stop == false:
$top_pillar0.position.x -= speed
$below_pillar0.position.x -= speed
$top_pillar1.position.x -= speed
$below_pillar1.position.x -= speed
$top_pillar2.position.x -= speed
$below_pillar2.position.x -= speed
if $top_pillar0.position.x < -70:
$top_pillar0.position.x = $top_pillar2.position.x + interval
$below_pillar0.position.x = $below_pillar2.position.x + interval
$top_pillar0.position.y = randi() % 70
$below_pillar0.position.y = $top_pillar0.position.y + 130 + 320
if $top_pillar1.position.x < -70:
$top_pillar1.position.x = $top_pillar0.position.x + interval
$below_pillar1.position.x = $below_pillar0.position.x + interval
$top_pillar1.position.y = randi() % 70
$below_pillar1.position.y = $top_pillar1.position.y + 130 + 320
if $top_pillar2.position.x < -70:
$top_pillar2.position.x = $top_pillar1.position.x + interval
$below_pillar2.position.x = $below_pillar1.position.x + interval
$top_pillar2.position.y = randi() % 70
$below_pillar2.position.y = $top_pillar2.position.y + 130 + 320
+142
View File
@@ -0,0 +1,142 @@
[gd_scene load_steps=6 format=2]
[ext_resource path="res://Pillar.gd" type="Script" id=1]
[ext_resource path="res://art/pillar/top_green.png" type="Texture" id=2]
[ext_resource path="res://art/pillar/below_green.png" type="Texture" id=3]
[sub_resource type="RectangleShape2D" id=1]
custom_solver_bias = 0.0
extents = Vector2( 21.5554, 159.1 )
[sub_resource type="RectangleShape2D" id=2]
custom_solver_bias = 0.0
extents = Vector2( 20.2066, 155.654 )
[node name="Pillars" type="Node2D"]
script = ExtResource( 1 )
speed = 1
[node name="top_pillar0" type="StaticBody2D" parent="." index="0"]
editor/display_folded = true
input_pickable = false
collision_layer = 1
collision_mask = 1
constant_linear_velocity = Vector2( 0, 0 )
constant_angular_velocity = 0.0
friction = 1.0
bounce = 0.0
[node name="Sprite" type="Sprite" parent="top_pillar0" index="0"]
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="top_pillar0" index="1"]
visible = false
position = Vector2( -1, 0 )
shape = SubResource( 1 )
[node name="top_pillar1" type="StaticBody2D" parent="." index="1"]
editor/display_folded = true
input_pickable = false
collision_layer = 1
collision_mask = 1
constant_linear_velocity = Vector2( 0, 0 )
constant_angular_velocity = 0.0
friction = 1.0
bounce = 0.0
[node name="Sprite" type="Sprite" parent="top_pillar1" index="0"]
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="top_pillar1" index="1"]
visible = false
position = Vector2( -1, 0 )
shape = SubResource( 1 )
[node name="top_pillar2" type="StaticBody2D" parent="." index="2"]
editor/display_folded = true
input_pickable = false
collision_layer = 1
collision_mask = 1
constant_linear_velocity = Vector2( 0, 0 )
constant_angular_velocity = 0.0
friction = 1.0
bounce = 0.0
[node name="Sprite" type="Sprite" parent="top_pillar2" index="0"]
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="top_pillar2" index="1"]
visible = false
position = Vector2( -1, 0 )
shape = SubResource( 1 )
[node name="below_pillar0" type="StaticBody2D" parent="." index="3"]
editor/display_folded = true
input_pickable = false
collision_layer = 1
collision_mask = 1
constant_linear_velocity = Vector2( 0, 0 )
constant_angular_velocity = 0.0
friction = 1.0
bounce = 0.0
[node name="Sprite" type="Sprite" parent="below_pillar0" index="0"]
texture = ExtResource( 3 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="below_pillar0" index="1"]
shape = SubResource( 2 )
[node name="below_pillar1" type="StaticBody2D" parent="." index="4"]
editor/display_folded = true
input_pickable = false
collision_layer = 1
collision_mask = 1
constant_linear_velocity = Vector2( 0, 0 )
constant_angular_velocity = 0.0
friction = 1.0
bounce = 0.0
[node name="Sprite" type="Sprite" parent="below_pillar1" index="0"]
texture = ExtResource( 3 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="below_pillar1" index="1"]
shape = SubResource( 2 )
[node name="below_pillar2" type="StaticBody2D" parent="." index="5"]
editor/display_folded = true
input_pickable = false
collision_layer = 1
collision_mask = 1
constant_linear_velocity = Vector2( 0, 0 )
constant_angular_velocity = 0.0
friction = 1.0
bounce = 0.0
[node name="Sprite" type="Sprite" parent="below_pillar2" index="0"]
texture = ExtResource( 3 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="below_pillar2" index="1"]
shape = SubResource( 2 )
Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

+29
View File
@@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/day.png-ab65a9df7b3996901acbcf1178f4bea1.stex"
[deps]
source_file="res://art/background/day.png"
dest_files=[ "res://.import/day.png-ab65a9df7b3996901acbcf1178f4bea1.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

+29
View File
@@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/ground.png-c54d7f45bba61d28890a268da359544c.stex"
[deps]
source_file="res://art/background/ground.png"
dest_files=[ "res://.import/ground.png-c54d7f45bba61d28890a268da359544c.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

+29
View File
@@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/night.png-c5c696202af5cad16659825db3b6e187.stex"
[deps]
source_file="res://art/background/night.png"
dest_files=[ "res://.import/night.png-c5c696202af5cad16659825db3b6e187.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

+29
View File
@@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/bird0.png-b40b90bd14838b36348eef75f36c832a.stex"
[deps]
source_file="res://art/bird/bird0.png"
dest_files=[ "res://.import/bird0.png-b40b90bd14838b36348eef75f36c832a.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

+29
View File
@@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/bird1.png-e0ffa9b0bf137ca82c44154c0ec2e240.stex"
[deps]
source_file="res://art/bird/bird1.png"
dest_files=[ "res://.import/bird1.png-e0ffa9b0bf137ca82c44154c0ec2e240.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

+29
View File
@@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/rank_button.png-930c037ca09321a7a23f11b22b0295d8.stex"
[deps]
source_file="res://art/button/rank_button.png"
dest_files=[ "res://.import/rank_button.png-930c037ca09321a7a23f11b22b0295d8.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

+29
View File
@@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/start_button.png-3f285ad94675f22ac90aa69a1abdc388.stex"
[deps]
source_file="res://art/button/start_button.png"
dest_files=[ "res://.import/start_button.png-3f285ad94675f22ac90aa69a1abdc388.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

+29
View File
@@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/game_over.png-13519d72abd7bb62c7c83173548e887a.stex"
[deps]
source_file="res://art/label/game_over.png"
dest_files=[ "res://.import/game_over.png-13519d72abd7bb62c7c83173548e887a.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

+29
View File
@@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/get_ready.png-4feafd3d8cce0cfd8d089ba851935be3.stex"
[deps]
source_file="res://art/label/get_ready.png"
dest_files=[ "res://.import/get_ready.png-4feafd3d8cce0cfd8d089ba851935be3.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

+29
View File
@@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/logo.png-31eed76582540d00fc24a14f74a45911.stex"
[deps]
source_file="res://art/label/logo.png"
dest_files=[ "res://.import/logo.png-31eed76582540d00fc24a14f74a45911.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

+29
View File
@@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/below_green.png-bf94f9c405fd0741cff2b6f5b1a06c93.stex"
[deps]
source_file="res://art/pillar/below_green.png"
dest_files=[ "res://.import/below_green.png-bf94f9c405fd0741cff2b6f5b1a06c93.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

+29
View File
@@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/top_green.png-16a326fabded252ab3567ce44ceb7403.stex"
[deps]
source_file="res://art/pillar/top_green.png"
dest_files=[ "res://.import/top_green.png-16a326fabded252ab3567ce44ceb7403.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
Binary file not shown.
+15
View File
@@ -0,0 +1,15 @@
[remap]
importer="ogg_vorbis"
type="AudioStreamOGGVorbis"
path="res://.import/sfx_hit.ogg-c13e9f01e9fbe42f480877423f4f172e.oggstr"
[deps]
source_file="res://art/sound/sfx_hit.ogg"
dest_files=[ "res://.import/sfx_hit.ogg-c13e9f01e9fbe42f480877423f4f172e.oggstr" ]
[params]
loop=false
loop_offset=0
Binary file not shown.
+15
View File
@@ -0,0 +1,15 @@
[remap]
importer="ogg_vorbis"
type="AudioStreamOGGVorbis"
path="res://.import/sfx_wing.ogg-fb1529ac550a8a7fdc7c0467b1edaac5.oggstr"
[deps]
source_file="res://art/sound/sfx_wing.ogg"
dest_files=[ "res://.import/sfx_wing.ogg-fb1529ac550a8a7fdc7c0467b1edaac5.oggstr" ]
[params]
loop=false
loop_offset=0
+101
View File
@@ -0,0 +1,101 @@
[gd_resource type="Environment" load_steps=2 format=2]
[sub_resource type="ProceduralSky" id=1]
radiance_size = 4
sky_top_color = Color( 0.0470588, 0.454902, 0.976471, 1 )
sky_horizon_color = Color( 0.556863, 0.823529, 0.909804, 1 )
sky_curve = 0.25
sky_energy = 1.0
ground_bottom_color = Color( 0.101961, 0.145098, 0.188235, 1 )
ground_horizon_color = Color( 0.482353, 0.788235, 0.952941, 1 )
ground_curve = 0.01
ground_energy = 1.0
sun_color = Color( 1, 1, 1, 1 )
sun_latitude = 35.0
sun_longitude = 0.0
sun_angle_min = 1.0
sun_angle_max = 100.0
sun_curve = 0.05
sun_energy = 16.0
texture_size = 2
[resource]
background_mode = 2
background_sky = SubResource( 1 )
background_sky_custom_fov = 0.0
background_color = Color( 0, 0, 0, 1 )
background_energy = 1.0
background_canvas_max_layer = 0
ambient_light_color = Color( 0, 0, 0, 1 )
ambient_light_energy = 1.0
ambient_light_sky_contribution = 1.0
fog_enabled = false
fog_color = Color( 0.5, 0.6, 0.7, 1 )
fog_sun_color = Color( 1, 0.9, 0.7, 1 )
fog_sun_amount = 0.0
fog_depth_enabled = true
fog_depth_begin = 10.0
fog_depth_curve = 1.0
fog_transmit_enabled = false
fog_transmit_curve = 1.0
fog_height_enabled = false
fog_height_min = 0.0
fog_height_max = 100.0
fog_height_curve = 1.0
tonemap_mode = 0
tonemap_exposure = 1.0
tonemap_white = 1.0
auto_exposure_enabled = false
auto_exposure_scale = 0.4
auto_exposure_min_luma = 0.05
auto_exposure_max_luma = 8.0
auto_exposure_speed = 0.5
ss_reflections_enabled = false
ss_reflections_max_steps = 64
ss_reflections_fade_in = 0.15
ss_reflections_fade_out = 2.0
ss_reflections_depth_tolerance = 0.2
ss_reflections_roughness = true
ssao_enabled = false
ssao_radius = 1.0
ssao_intensity = 1.0
ssao_radius2 = 0.0
ssao_intensity2 = 1.0
ssao_bias = 0.01
ssao_light_affect = 0.0
ssao_color = Color( 0, 0, 0, 1 )
ssao_quality = 0
ssao_blur = 3
ssao_edge_sharpness = 4.0
dof_blur_far_enabled = false
dof_blur_far_distance = 10.0
dof_blur_far_transition = 5.0
dof_blur_far_amount = 0.1
dof_blur_far_quality = 1
dof_blur_near_enabled = false
dof_blur_near_distance = 2.0
dof_blur_near_transition = 1.0
dof_blur_near_amount = 0.1
dof_blur_near_quality = 1
glow_enabled = false
glow_levels/1 = false
glow_levels/2 = false
glow_levels/3 = true
glow_levels/4 = false
glow_levels/5 = true
glow_levels/6 = false
glow_levels/7 = false
glow_intensity = 0.8
glow_strength = 1.0
glow_bloom = 0.0
glow_blend_mode = 2
glow_hdr_threshold = 1.0
glow_hdr_scale = 2.0
glow_bicubic_upscale = false
adjustment_enabled = false
adjustment_brightness = 1.0
adjustment_contrast = 1.0
adjustment_saturation = 1.0
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

+29
View File
@@ -0,0 +1,29 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex"
[deps]
source_file="res://icon.png"
dest_files=[ "res://.import/icon.png-487276ed1e3a0c39cad0279d744ee560.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
+26
View File
@@ -0,0 +1,26 @@
; Engine configuration file.
; It's best edited using the editor UI and not directly,
; since the parameters that go here are not all obvious.
;
; Format:
; [section] ; section goes between []
; param=value ; assign values to parameters
config_version=3
[application]
config/name="Flappy_bird"
run/main_scene="res://Main.tscn"
config/icon="res://icon.png"
[display]
window/size/width=285
window/size/height=512
window/size/resizable=false
window/dpi/allow_hidpi=true
[rendering]
environment/default_environment="res://default_env.tres"