Cambiados los aspectos visuales del juego a algo gotico
This commit is contained in:
1 parent
ec7e35ddf6
commit
967b3a286d
205 files changed
+7056
-1630
No files matched your search
@@ -4,7 +4,7 @@ extends SceneTree
|
||||
## La existencia de este script no implica que se haya ejecutado.
|
||||
const PLAYER_SCENE: PackedScene = preload("res://player/player.tscn")
|
||||
const RARE_SCENE: PackedScene = preload("res://rare_items/variants/lost_pick.tscn")
|
||||
const PROGRESS_SCENE: PackedScene = preload("res://game/player_progress.tscn")
|
||||
const PROGRESS_PATH: String = "res://game/player_progress.tscn"
|
||||
var _failures: int = 0
|
||||
var _profile: PlayerProgressStore
|
||||
var _level: LevelRoot
|
||||
@@ -79,7 +79,7 @@ func _run() -> void:
|
||||
_close_level()
|
||||
|
||||
# Reabrir el archivo demuestra el contrato de carga, no solo el estado de la misma instancia.
|
||||
var loaded: PlayerProgressStore = PROGRESS_SCENE.instantiate() as PlayerProgressStore
|
||||
var loaded: PlayerProgressStore = (load(PROGRESS_PATH) as PackedScene).instantiate() as PlayerProgressStore
|
||||
loaded.save_path = _profile.save_path
|
||||
loaded.rare_items.append(reward)
|
||||
root.add_child(loaded)
|
||||
@@ -118,7 +118,7 @@ func _test_backup_and_bad_data() -> void:
|
||||
var file: FileAccess = FileAccess.open(_profile.save_path, FileAccess.WRITE)
|
||||
file.store_string("not valid JSON")
|
||||
file.close()
|
||||
var loaded: PlayerProgressStore = PROGRESS_SCENE.instantiate() as PlayerProgressStore
|
||||
var loaded: PlayerProgressStore = (load(PROGRESS_PATH) as PackedScene).instantiate() as PlayerProgressStore
|
||||
loaded.save_path = _profile.save_path
|
||||
root.add_child(loaded)
|
||||
_check(loaded.has_item(&"lost_pick"), "Recupera los objetos de la copia valida")
|
||||
@@ -128,7 +128,7 @@ func _test_backup_and_bad_data() -> void:
|
||||
file = FileAccess.open(_profile.save_path, FileAccess.WRITE)
|
||||
file.store_string('{"version":999,"rare_items":[]}')
|
||||
file.close()
|
||||
loaded = PROGRESS_SCENE.instantiate() as PlayerProgressStore
|
||||
loaded = (load(PROGRESS_PATH) as PackedScene).instantiate() as PlayerProgressStore
|
||||
loaded.save_path = _profile.save_path
|
||||
root.add_child(loaded)
|
||||
var ids: Array[StringName] = [&"lost_pick"]
|
||||
|
||||
Reference in new issue
Block a user