fixes
This commit is contained in:
parent
be46651c7b
commit
02027a8470
|
|
@ -32,6 +32,17 @@ __meta__ = {
|
||||||
"_edit_horizontal_guides_": [ ]
|
"_edit_horizontal_guides_": [ ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[node name="background_fill" type="ParallaxLayer" parent="."]
|
||||||
|
motion_mirroring = Vector2( 1024, 600 )
|
||||||
|
|
||||||
|
[node name="ColorRect" type="ColorRect" parent="background_fill"]
|
||||||
|
margin_right = 1024.0
|
||||||
|
margin_bottom = 600.0
|
||||||
|
color = Color( 0.47451, 0.690196, 0.870588, 1 )
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_use_anchors_": false
|
||||||
|
}
|
||||||
|
|
||||||
[node name="Sky" type="ParallaxLayer" parent="."]
|
[node name="Sky" type="ParallaxLayer" parent="."]
|
||||||
motion_mirroring = Vector2( 1024, 0 )
|
motion_mirroring = Vector2( 1024, 0 )
|
||||||
|
|
||||||
|
|
@ -43,42 +54,42 @@ centered = false
|
||||||
|
|
||||||
[node name="Cloud1" type="ParallaxLayer" parent="."]
|
[node name="Cloud1" type="ParallaxLayer" parent="."]
|
||||||
motion_scale = Vector2( 0.25, 1 )
|
motion_scale = Vector2( 0.25, 1 )
|
||||||
motion_mirroring = Vector2( 1024, 0 )
|
motion_mirroring = Vector2( 1024, 600 )
|
||||||
|
|
||||||
[node name="Cloud 1" type="Sprite" parent="Cloud1"]
|
[node name="Cloud 1" type="Sprite" parent="Cloud1"]
|
||||||
position = Vector2( 102, 306 )
|
position = Vector2( 102, 306 )
|
||||||
texture = ExtResource( 5 )
|
texture = ExtResource( 5 )
|
||||||
|
|
||||||
[node name="Cloud 2" type="Sprite" parent="Cloud1"]
|
[node name="Cloud 2" type="Sprite" parent="Cloud1"]
|
||||||
position = Vector2( 502, 430 )
|
position = Vector2( 478, 523.177 )
|
||||||
texture = ExtResource( 4 )
|
texture = ExtResource( 4 )
|
||||||
|
|
||||||
[node name="Cloud 3" type="Sprite" parent="Cloud1"]
|
[node name="Cloud 3" type="Sprite" parent="Cloud1"]
|
||||||
position = Vector2( 709, 388 )
|
position = Vector2( 747.5, 350.5 )
|
||||||
texture = ExtResource( 6 )
|
texture = ExtResource( 6 )
|
||||||
|
|
||||||
[node name="Cloud 4" type="Sprite" parent="Cloud1"]
|
[node name="Cloud 4" type="Sprite" parent="Cloud1"]
|
||||||
position = Vector2( 944, 188 )
|
position = Vector2( 904.318, 85.5 )
|
||||||
texture = ExtResource( 2 )
|
texture = ExtResource( 2 )
|
||||||
|
|
||||||
[node name="Cloud 5" type="Sprite" parent="Cloud1"]
|
[node name="Cloud 5" type="Sprite" parent="Cloud1"]
|
||||||
position = Vector2( 525, 282 )
|
position = Vector2( 609, 402 )
|
||||||
texture = ExtResource( 3 )
|
texture = ExtResource( 3 )
|
||||||
|
|
||||||
[node name="Cloud2" type="ParallaxLayer" parent="."]
|
[node name="Cloud2" type="ParallaxLayer" parent="."]
|
||||||
motion_scale = Vector2( 0.2, 1 )
|
motion_scale = Vector2( 0.2, 1 )
|
||||||
motion_mirroring = Vector2( 1024, 0 )
|
motion_mirroring = Vector2( 1024, 600 )
|
||||||
|
|
||||||
[node name="Cloud 6" type="Sprite" parent="Cloud2"]
|
[node name="Cloud 6" type="Sprite" parent="Cloud2"]
|
||||||
position = Vector2( 936, 338 )
|
position = Vector2( 930.318, 382 )
|
||||||
texture = ExtResource( 8 )
|
texture = ExtResource( 8 )
|
||||||
|
|
||||||
[node name="Cloud 7" type="Sprite" parent="Cloud2"]
|
[node name="Cloud 7" type="Sprite" parent="Cloud2"]
|
||||||
position = Vector2( 231, 82 )
|
position = Vector2( 310.755, 88.2996 )
|
||||||
texture = ExtResource( 11 )
|
texture = ExtResource( 11 )
|
||||||
|
|
||||||
[node name="Cloud 8" type="Sprite" parent="Cloud2"]
|
[node name="Cloud 8" type="Sprite" parent="Cloud2"]
|
||||||
position = Vector2( 944, 70 )
|
position = Vector2( 771.355, 54.4821 )
|
||||||
texture = ExtResource( 7 )
|
texture = ExtResource( 7 )
|
||||||
|
|
||||||
[node name="Cloud 9" type="Sprite" parent="Cloud2"]
|
[node name="Cloud 9" type="Sprite" parent="Cloud2"]
|
||||||
|
|
@ -86,55 +97,55 @@ position = Vector2( 115, 160 )
|
||||||
texture = ExtResource( 10 )
|
texture = ExtResource( 10 )
|
||||||
|
|
||||||
[node name="Cloud 10" type="Sprite" parent="Cloud2"]
|
[node name="Cloud 10" type="Sprite" parent="Cloud2"]
|
||||||
position = Vector2( 565, 68 )
|
position = Vector2( 774.147, 258.603 )
|
||||||
texture = ExtResource( 9 )
|
texture = ExtResource( 9 )
|
||||||
|
|
||||||
[node name="Cloud3" type="ParallaxLayer" parent="."]
|
[node name="Cloud3" type="ParallaxLayer" parent="."]
|
||||||
motion_scale = Vector2( 0.15, 1 )
|
motion_scale = Vector2( 0.15, 1 )
|
||||||
motion_mirroring = Vector2( 1024, 0 )
|
motion_mirroring = Vector2( 1024, 600 )
|
||||||
|
|
||||||
[node name="Cloud 11" type="Sprite" parent="Cloud3"]
|
[node name="Cloud 11" type="Sprite" parent="Cloud3"]
|
||||||
position = Vector2( 571, 171 )
|
position = Vector2( 652, 160.542 )
|
||||||
texture = ExtResource( 15 )
|
texture = ExtResource( 15 )
|
||||||
|
|
||||||
[node name="Cloud 12" type="Sprite" parent="Cloud3"]
|
[node name="Cloud 12" type="Sprite" parent="Cloud3"]
|
||||||
position = Vector2( 728, 111 )
|
position = Vector2( 546.5, 256.083 )
|
||||||
texture = ExtResource( 16 )
|
texture = ExtResource( 16 )
|
||||||
|
|
||||||
[node name="Cloud 13" type="Sprite" parent="Cloud3"]
|
[node name="Cloud 13" type="Sprite" parent="Cloud3"]
|
||||||
position = Vector2( 411, 79 )
|
position = Vector2( 470.5, 44.9821 )
|
||||||
texture = ExtResource( 13 )
|
texture = ExtResource( 13 )
|
||||||
|
|
||||||
[node name="Cloud 14" type="Sprite" parent="Cloud3"]
|
[node name="Cloud 14" type="Sprite" parent="Cloud3"]
|
||||||
position = Vector2( 483, 204 )
|
position = Vector2( 238.388, 483.575 )
|
||||||
texture = ExtResource( 14 )
|
texture = ExtResource( 14 )
|
||||||
|
|
||||||
[node name="Cloud 15" type="Sprite" parent="Cloud3"]
|
[node name="Cloud 15" type="Sprite" parent="Cloud3"]
|
||||||
position = Vector2( 844, 451 )
|
position = Vector2( 881.318, 447.575 )
|
||||||
texture = ExtResource( 12 )
|
texture = ExtResource( 12 )
|
||||||
|
|
||||||
[node name="Cloud4" type="ParallaxLayer" parent="."]
|
[node name="Cloud4" type="ParallaxLayer" parent="."]
|
||||||
motion_scale = Vector2( 0.1, 1 )
|
motion_scale = Vector2( 0.1, 1 )
|
||||||
motion_mirroring = Vector2( 1024, 0 )
|
motion_mirroring = Vector2( 1024, 600 )
|
||||||
|
|
||||||
[node name="Cloud 16" type="Sprite" parent="Cloud4"]
|
[node name="Cloud 16" type="Sprite" parent="Cloud4"]
|
||||||
position = Vector2( 717, 224 )
|
position = Vector2( 900.194, 198.5 )
|
||||||
texture = ExtResource( 21 )
|
texture = ExtResource( 21 )
|
||||||
|
|
||||||
[node name="Cloud 17" type="Sprite" parent="Cloud4"]
|
[node name="Cloud 17" type="Sprite" parent="Cloud4"]
|
||||||
position = Vector2( 208, 402 )
|
position = Vector2( 329.166, 337 )
|
||||||
texture = ExtResource( 18 )
|
texture = ExtResource( 18 )
|
||||||
|
|
||||||
[node name="Cloud 18" type="Sprite" parent="Cloud4"]
|
[node name="Cloud 18" type="Sprite" parent="Cloud4"]
|
||||||
position = Vector2( 328, 297 )
|
position = Vector2( 393.666, 182.5 )
|
||||||
texture = ExtResource( 20 )
|
texture = ExtResource( 20 )
|
||||||
|
|
||||||
[node name="Cloud 19" type="Sprite" parent="Cloud4"]
|
[node name="Cloud 19" type="Sprite" parent="Cloud4"]
|
||||||
position = Vector2( 300, 189 )
|
position = Vector2( 53, 471.575 )
|
||||||
texture = ExtResource( 17 )
|
texture = ExtResource( 17 )
|
||||||
|
|
||||||
[node name="Cloud 20" type="Sprite" parent="Cloud4"]
|
[node name="Cloud 20" type="Sprite" parent="Cloud4"]
|
||||||
position = Vector2( 769, 287 )
|
position = Vector2( 721, 513.177 )
|
||||||
texture = ExtResource( 19 )
|
texture = ExtResource( 19 )
|
||||||
|
|
||||||
[node name="Hills2" type="ParallaxLayer" parent="."]
|
[node name="Hills2" type="ParallaxLayer" parent="."]
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
extends Control
|
extends Control
|
||||||
|
|
||||||
|
onready var resume_button = $ResumeButton
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
hide()
|
hide()
|
||||||
|
|
||||||
|
|
@ -10,6 +12,7 @@ func _input(event):
|
||||||
func open():
|
func open():
|
||||||
show()
|
show()
|
||||||
get_tree().paused = true
|
get_tree().paused = true
|
||||||
|
resume_button.grab_focus()
|
||||||
|
|
||||||
func close():
|
func close():
|
||||||
hide()
|
hide()
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -75,7 +75,7 @@ animations = [ {
|
||||||
"speed": 10.0
|
"speed": 10.0
|
||||||
} ]
|
} ]
|
||||||
|
|
||||||
[node name="MainMenu" type="Control"]
|
[node name="GameOver" type="Control"]
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
theme = ExtResource( 3 )
|
theme = ExtResource( 3 )
|
||||||
|
|
@ -139,7 +139,7 @@ __meta__ = {
|
||||||
position = Vector2( 243, 313 )
|
position = Vector2( 243, 313 )
|
||||||
frames = SubResource( 12 )
|
frames = SubResource( 12 )
|
||||||
animation = "New Anim"
|
animation = "New Anim"
|
||||||
frame = 2
|
frame = 6
|
||||||
playing = true
|
playing = true
|
||||||
|
|
||||||
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/Control"]
|
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/Control"]
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,12 @@ onready var camera = $Camera2D
|
||||||
onready var score = $CanvasLayer/Control/ColorRect2/Score
|
onready var score = $CanvasLayer/Control/ColorRect2/Score
|
||||||
onready var coins = $CanvasLayer/Control/ColorRect3/Coins
|
onready var coins = $CanvasLayer/Control/ColorRect3/Coins
|
||||||
|
|
||||||
|
onready var play_button = $CanvasLayer/Control/PlayButton
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
score.text = str(Global.score)
|
score.text = str(Global.score)
|
||||||
coins.text = str(Global.coins)
|
coins.text = str(Global.coins)
|
||||||
|
play_button.grab_focus()
|
||||||
|
|
||||||
func _physics_process(delta: float) -> void:
|
func _physics_process(delta: float) -> void:
|
||||||
$Camera2D.offset_h += 2 * delta
|
$Camera2D.offset_h += 2 * delta
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ animations = [ {
|
||||||
"speed": 10.0
|
"speed": 10.0
|
||||||
} ]
|
} ]
|
||||||
|
|
||||||
[node name="MainMenu" type="Control"]
|
[node name="GameWon" type="Control"]
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
theme = ExtResource( 3 )
|
theme = ExtResource( 3 )
|
||||||
|
|
@ -139,7 +139,7 @@ __meta__ = {
|
||||||
position = Vector2( 243, 307 )
|
position = Vector2( 243, 307 )
|
||||||
frames = SubResource( 12 )
|
frames = SubResource( 12 )
|
||||||
animation = "New Anim"
|
animation = "New Anim"
|
||||||
frame = 8
|
frame = 1
|
||||||
playing = true
|
playing = true
|
||||||
|
|
||||||
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/Control"]
|
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/Control"]
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,10 @@ extends Control
|
||||||
class_name MainMenu
|
class_name MainMenu
|
||||||
|
|
||||||
onready var camera = $Camera2D
|
onready var camera = $Camera2D
|
||||||
|
onready var play_button = $CanvasLayer/Control/PlayButton
|
||||||
|
|
||||||
|
func _ready() -> void:
|
||||||
|
play_button.grab_focus()
|
||||||
|
|
||||||
func _physics_process(delta: float) -> void:
|
func _physics_process(delta: float) -> void:
|
||||||
camera.offset_h += 1.5 * delta
|
camera.offset_h += 1.5 * delta
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,7 @@ __meta__ = {
|
||||||
position = Vector2( 521, 219 )
|
position = Vector2( 521, 219 )
|
||||||
frames = SubResource( 12 )
|
frames = SubResource( 12 )
|
||||||
animation = "New Anim"
|
animation = "New Anim"
|
||||||
frame = 6
|
frame = 4
|
||||||
playing = true
|
playing = true
|
||||||
|
|
||||||
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/Control"]
|
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/Control"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue