ThePix / QuestJS

A major re-write of Quest that is written in JavaScript and will run in the browser.
MIT License
74 stars 15 forks source link

Game Conversion - Start Script Function #89

Closed Zanderkat closed 1 year ago

Zanderkat commented 1 year ago

After converting my game from Q5 to QJS, my Start script effectively became the following within settings.js:

settings.setup = script:function() { [my startup code] }

I'm not sure if it's supposed to be translated in this way because the line is flagged with SyntaxError: Unexpected token ':'. I'm not familiar with setting a function to a variable, though, so I'm not sure what the issue is or if this segment needs to be moved to another script.

ThePix commented 1 year ago

I have uploaded to Github a new version (but not a release). See how it goes.

Zanderkat commented 1 year ago

Issue seems to be fixed, thanks!