summaryrefslogtreecommitdiff
path: root/game/www/index.html
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-11-18 11:58:16 -0500
committerFreya Murphy <freya@freyacat.org>2025-11-18 11:58:16 -0500
commit064652034c988b5568196450330eeab97dd10280 (patch)
tree5a77f9bf7512bd922724b2d80fe968fc4641a09c /game/www/index.html
parentwasm: fix canvas height (diff)
downloadDungeonCrawl-064652034c988b5568196450330eeab97dd10280.tar.gz
DungeonCrawl-064652034c988b5568196450330eeab97dd10280.tar.bz2
DungeonCrawl-064652034c988b5568196450330eeab97dd10280.zip
wasm: add build version/date
Diffstat (limited to 'game/www/index.html')
-rw-r--r--game/www/index.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/game/www/index.html b/game/www/index.html
index 6210bb7..3c1805e 100644
--- a/game/www/index.html
+++ b/game/www/index.html
@@ -82,11 +82,16 @@
Module.callMain(args)
}
+ function onRuntimeInitialized() {
+ outputLog('Loaded DungeonCrawl vBUILD_VERSION, built BUILD_DATE');
+ }
+
var Module = {
canvas,
print: outputLog,
printErr: errorLog,
noInitialRun: true,
+ onRuntimeInitialized,
};
</script>
<script src="game.js"></script>