forked from KOBUGE-Incubator/mighty-knight
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When commit messages are funny legend says they aren't pro
- Added an idle animation for coins - Added in and out animations for the game
- Loading branch information
1 parent
e31a072
commit 3c9a6f6
Showing
8 changed files
with
244 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
extends Node2D | ||
|
||
|
||
func _ready(): | ||
var config = ConfigFile.new() | ||
config.load("user://settings.cfg") | ||
var highscore = config.get_value("general","highscore",0) | ||
get_node("high_score").set_text(str(highscore)) | ||
|
||
func _on_play_pressed(): | ||
get_tree().change_scene("res://main.tscn") | ||
if not get_node("AnimationPlayer").is_playing(): | ||
get_node("AnimationPlayer").connect("finished", get_tree(), "change_scene", ["res://main.tscn"]) | ||
get_node("AnimationPlayer").play("start") |
Oops, something went wrong.