Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 2.4 MiB |
After Width: | Height: | Size: 607 KiB |
After Width: | Height: | Size: 9.5 KiB |
@ -0,0 +1,34 @@ |
|||||
|
[remap] |
||||
|
|
||||
|
importer="texture" |
||||
|
type="StreamTexture" |
||||
|
path="res://.import/pausebutton.png-fce1a35638d9c9e5e5680ee254349c04.stex" |
||||
|
metadata={ |
||||
|
"vram_texture": false |
||||
|
} |
||||
|
|
||||
|
[deps] |
||||
|
|
||||
|
source_file="res://Images and Anims/In Game/pausebutton.png" |
||||
|
dest_files=[ "res://.import/pausebutton.png-fce1a35638d9c9e5e5680ee254349c04.stex" ] |
||||
|
|
||||
|
[params] |
||||
|
|
||||
|
compress/mode=0 |
||||
|
compress/lossy_quality=0.7 |
||||
|
compress/hdr_mode=0 |
||||
|
compress/bptc_ldr=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 |
||||
|
process/invert_color=false |
||||
|
stream=false |
||||
|
size_limit=0 |
||||
|
detect_3d=true |
||||
|
svg/scale=1.0 |
After Width: | Height: | Size: 1.1 KiB |
@ -0,0 +1,34 @@ |
|||||
|
[remap] |
||||
|
|
||||
|
importer="texture" |
||||
|
type="StreamTexture" |
||||
|
path="res://.import/playbutton.png-f46f169e8e383816c2f7e25c5dc62b3c.stex" |
||||
|
metadata={ |
||||
|
"vram_texture": false |
||||
|
} |
||||
|
|
||||
|
[deps] |
||||
|
|
||||
|
source_file="res://Images and Anims/In Game/playbutton.png" |
||||
|
dest_files=[ "res://.import/playbutton.png-f46f169e8e383816c2f7e25c5dc62b3c.stex" ] |
||||
|
|
||||
|
[params] |
||||
|
|
||||
|
compress/mode=0 |
||||
|
compress/lossy_quality=0.7 |
||||
|
compress/hdr_mode=0 |
||||
|
compress/bptc_ldr=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 |
||||
|
process/invert_color=false |
||||
|
stream=false |
||||
|
size_limit=0 |
||||
|
detect_3d=true |
||||
|
svg/scale=1.0 |
Before Width: | Height: | Size: 835 KiB After Width: | Height: | Size: 6.4 KiB |
@ -1,15 +0,0 @@ |
|||||
[remap] |
|
||||
|
|
||||
importer="ogg_vorbis" |
|
||||
type="AudioStreamOGGVorbis" |
|
||||
path="res://.import/menu.ogg-98e0c28691ee2b4507b45873b3dde0d1.oggstr" |
|
||||
|
|
||||
[deps] |
|
||||
|
|
||||
source_file="res://Music and Sounds/menu.ogg" |
|
||||
dest_files=[ "res://.import/menu.ogg-98e0c28691ee2b4507b45873b3dde0d1.oggstr" ] |
|
||||
|
|
||||
[params] |
|
||||
|
|
||||
loop=true |
|
||||
loop_offset=0 |
|
@ -0,0 +1,17 @@ |
|||||
|
extends Label |
||||
|
|
||||
|
var hiscore = 0 |
||||
|
|
||||
|
func load_game(): |
||||
|
var save_game = File.new() |
||||
|
if not save_game.file_exists("user://savegame.save"): |
||||
|
return |
||||
|
save_game.open("user://savegame.save", File.READ) |
||||
|
while save_game.get_position() < save_game.get_len(): |
||||
|
var data = parse_json(save_game.get_line()) |
||||
|
hiscore = data["hiscore"] |
||||
|
|
||||
|
|
||||
|
func _ready(): |
||||
|
load_game() |
||||
|
text="Hi-Score\n" + str(round(hiscore)) |
@ -0,0 +1,31 @@ |
|||||
|
extends Node2D |
||||
|
|
||||
|
var lastscore = 0 |
||||
|
var hiscore = 0 |
||||
|
|
||||
|
func load_game(): |
||||
|
var save_game = File.new() |
||||
|
if not save_game.file_exists("user://savegame.save"): |
||||
|
return |
||||
|
save_game.open("user://savegame.save", File.READ) |
||||
|
while save_game.get_position() < save_game.get_len(): |
||||
|
var data = parse_json(save_game.get_line()) |
||||
|
# lastscore = data["lastscore"] |
||||
|
hiscore = data["hiscore"] |
||||
|
|
||||
|
func _ready(): |
||||
|
load_game() |
||||
|
var ScoreLabel = Label.new() |
||||
|
add_child(ScoreLabel) |
||||
|
ScoreLabel.set_owner(get_tree().get_edited_scene_root()) |
||||
|
var HiScoreLabel = Label.new() |
||||
|
add_child(HiScoreLabel) |
||||
|
HiScoreLabel.set_owner(get_tree().get_edited_scene_root()) |
||||
|
|
||||
|
ScoreLabel.text = str(lastscore) |
||||
|
HiScoreLabel.text = str(hiscore) |
||||
|
|
||||
|
|
||||
|
print(ScoreLabel.text) |
||||
|
print (HiScoreLabel.text) |
||||
|
print(HiScoreLabel.rect_position) |
@ -0,0 +1,4 @@ |
|||||
|
extends Button |
||||
|
|
||||
|
func _process(delta): |
||||
|
|
@ -0,0 +1,17 @@ |
|||||
|
extends Label |
||||
|
|
||||
|
var lastscore = 0 |
||||
|
|
||||
|
func load_game(): |
||||
|
var save_game = File.new() |
||||
|
if not save_game.file_exists("user://savegame.save"): |
||||
|
return |
||||
|
save_game.open("user://savegame.save", File.READ) |
||||
|
while save_game.get_position() < save_game.get_len(): |
||||
|
var data = parse_json(save_game.get_line()) |
||||
|
lastscore = data["lastscore"] |
||||
|
|
||||
|
|
||||
|
func _ready(): |
||||
|
load_game() |
||||
|
text="Score\n" + str(round(lastscore)) |