refactor for shared states and multi chapters
This commit is contained in:
parent
691b809b41
commit
b9bea16f78
13 changed files with 2308 additions and 1786 deletions
33
assets/js/games/scenes/system-shutdown-1999/art/index.js
Normal file
33
assets/js/games/scenes/system-shutdown-1999/art/index.js
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
// Art assets index for System Shutdown: 1999 series
|
||||
// These reference the ANSI art defined in ascii-art.js
|
||||
|
||||
// Art constants are loaded from ascii-art.js and made available globally
|
||||
// This file provides a namespace for the series' art assets
|
||||
|
||||
window.SystemShutdown1999Art = window.SystemShutdown1999Art || {};
|
||||
|
||||
// These will be populated by ascii-art.js when it loads
|
||||
// The art constants are:
|
||||
// - BOXING_DAY_TITLE: Chapter 1 title screen
|
||||
// - DARK_TOWER_HEADER: Dark Tower BBS header
|
||||
// - LIGHTHOUSE_HEADER: The Lighthouse BBS header
|
||||
|
||||
// Helper to get art by name
|
||||
window.SystemShutdown1999Art.get = function (name) {
|
||||
switch (name) {
|
||||
case "BOXING_DAY_TITLE":
|
||||
return window.BOXING_DAY_TITLE;
|
||||
case "DARK_TOWER_HEADER":
|
||||
return window.DARK_TOWER_HEADER;
|
||||
case "LIGHTHOUSE_HEADER":
|
||||
return window.LIGHTHOUSE_HEADER;
|
||||
default:
|
||||
console.warn(`Unknown art asset: ${name}`);
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
// List available art assets
|
||||
window.SystemShutdown1999Art.list = function () {
|
||||
return ["BOXING_DAY_TITLE", "DARK_TOWER_HEADER", "LIGHTHOUSE_HEADER"];
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue