Sarkath
Active Member
- Sep 8, 2019
- 547
- 949
- 245
Hah, yeah, excellent point. Considering the only thing the game is using JavaFX for is hosting WebViews, that's definitely viable.well the thought process was less so to give them the ability to play and more to refactor the code into something that doesnt make my brain want to die any time I stare into that abyss of pain. Plus I was hoping to kill off most of the javafx stuff so we only need the nashorn framework for the javascript (oh god why is there javascript mixed in with xml) mess.
As far as Nashorn is concerned: last time I was digging through this thing I noticed that the only thing the JavaScript engine is really used for is parsing expressions. Replacing it with an lighter expression parser* might be a good idea.
*I experimented with SpEL a few years ago and that seemed to work fairly well, though I'm not sure how much extra overhead pulling in the Spring library would add. I can't imagine it would be worse than a whole-ass JavaScript library, though.
inb4 you Dockerize Lilith's Throne.Phones getting the ablity to play this game was more a bonus afterthought since is UI would be now be hosted via a url like "You must be registered to see the links"