Recently mrangel has been helping make changes to Squiffy's source code. This does require somebody who is very proficient in JS.
It's just easier to write JavaScript inside a Squiffy section, but this gets complicated quickly. You have to constantly copy and paste, from old games to new, for one thing.
I think a good middle option for beginners like me is to embed .js
scripts that you want to reuse in many games. unfortunately <script src=""></script>
appears to get ignored.
Is there a way to write scripts in a text editor and then embed them into games?
Thanks
I suspect if you wanted to do that, you'd want to put the <script>
line into your index.html
file after compiling.
Or, as Squiffy uses jQuery for its javascripty stuff, you could do:
$.getScript("some_script.js");