Serve Two Rivers modules with production MIME type
All checks were successful
Build Org Website / build (push) Successful in 45s
All checks were successful
Build Org Website / build (push) Successful in 45s
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// Served as .js so strict production MIME checks accept this native ES module.
|
||||
const ROOT = "/assets/games/two-rivers/data";
|
||||
const FILES = {
|
||||
assets: "assets.json",
|
||||
@@ -1,4 +1,4 @@
|
||||
import {normalizeState} from "./state.mjs";
|
||||
import {normalizeState} from "./state.js";
|
||||
|
||||
export const SAVE_KEY = "zxh_two_rivers_saves_v1";
|
||||
export const SETTINGS_KEY = "zxh_two_rivers_settings_v1";
|
||||
@@ -1,3 +1,4 @@
|
||||
// Native ES module; the .js suffix matches the production server's JavaScript MIME mapping.
|
||||
export const RELATIONSHIPS = ["trust", "respect", "comfort", "humour", "adventure", "romance", "familyApproval"];
|
||||
export const SAVE_VERSION = 1;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import {loadContent} from "./core/content.mjs";
|
||||
import {createStore, freshState} from "./core/state.mjs";
|
||||
import {createSaveService} from "./core/save.mjs";
|
||||
import {AudioDirector} from "./systems/audio.mjs";
|
||||
import {Interface} from "./ui/interface.mjs";
|
||||
import {createScenes} from "./scenes/game-scenes.mjs";
|
||||
import {loadContent} from "./core/content.js";
|
||||
import {createStore, freshState} from "./core/state.js";
|
||||
import {createSaveService} from "./core/save.js";
|
||||
import {AudioDirector} from "./systems/audio.js";
|
||||
import {Interface} from "./ui/interface.js";
|
||||
import {createScenes} from "./scenes/game-scenes.js";
|
||||
|
||||
const root = document.querySelector("[data-two-rivers]");
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {requirementMet} from "../core/state.mjs";
|
||||
import {requirementMet} from "../core/state.js";
|
||||
|
||||
const WIDTH = 1280;
|
||||
const HEIGHT = 720;
|
||||
@@ -1,3 +1,4 @@
|
||||
// Native ES module served with the production JavaScript MIME type.
|
||||
export class AudioDirector {
|
||||
constructor(records, getSettings) {
|
||||
this.getSettings = getSettings;
|
||||
@@ -1,4 +1,4 @@
|
||||
import {applyEffects, relationshipStage, RELATIONSHIPS, requirementMet, resolveEnding} from "../core/state.mjs";
|
||||
import {applyEffects, relationshipStage, RELATIONSHIPS, requirementMet, resolveEnding} from "../core/state.js";
|
||||
|
||||
const LABELS = {
|
||||
trust: "Trust", respect: "Respect", comfort: "Comfort", humour: "Humour",
|
||||
Reference in New Issue
Block a user