-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In this commit, I've made some finishing touches to help advance the development after the prototype launch. First, I've created a system to load in a specific set of scenes in a given order with a JSON configuration that gets loaded at launch time. This will control which levels play in a specific order. Next, I've tested the prototype on iOS and fixed any remaining snags that may make the game unplayable on iPad and iPhone. Finally, I've fixed the story conversion script in the build config so that it executes to the new structure. Signed-off-by: Marquis Kurt <software@marquiskurt.net>
- Loading branch information
1 parent
b40d8af
commit af31160
Showing
9 changed files
with
278 additions
and
197 deletions.
There are no files selected for viewing
354 changes: 177 additions & 177 deletions
354
Shounin/Assets/Story/Base.lproj/ch01-mise-en-abyme.jenson
Large diffs are not rendered by default.
Oops, something went wrong.
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
32 changes: 32 additions & 0 deletions
32
Shounin/Bootstrap/Flow Configuration/FlowConfiguration.swift
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// | ||
// FlowConfiguration.swift | ||
// Indexing Your Heart | ||
// | ||
// Created by Marquis Kurt on 10/7/22. | ||
// | ||
// This file is part of Indexing Your Heart. | ||
// | ||
// Indexing Your Heart is non-violent software: you can use, redistribute, and/or modify it under the terms of the | ||
// CNPLv7+ as found in the LICENSE file in the source code root directory or at | ||
// <https://git.pixie.town/thufie/npl-builder>. | ||
// | ||
// Indexing Your Heart comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. See the CNPL for | ||
// details. | ||
|
||
import Foundation | ||
|
||
struct FlowConfiguration: Codable { | ||
let stage: String | ||
let chapter: String | ||
} | ||
|
||
extension FlowConfiguration { | ||
static func load(from resourceName: String) -> [FlowConfiguration]? { | ||
guard let path = Bundle.main.path(forResource: resourceName, ofType: "json") else { return nil } | ||
let url = URL(filePath: path) | ||
guard let data = try? Data(contentsOf: url) else { return nil } | ||
let jsonDecoder = JSONDecoder() | ||
jsonDecoder.allowsJSON5 = true | ||
return try? jsonDecoder.decode([FlowConfiguration].self, from: data) | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[ | ||
{ | ||
"stage": "Stage1", | ||
"chapter": "ch01-mise-en-abyme" | ||
} | ||
] |
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