You should look into getting it merged at some point :)
Mathieu Triay
@MathieuLoutre
It's not super clean just yet but it's working ok for me
I feel there might still be issues with multi touch and finger tracking
But it's definitely something I'd like to get fixed
because I've really enjoyed Superpowers so far
Vianney Petit
@Ikalou
Yeah, I didn't care about multi-touch. Mouse emulation is fine.
Mathieu Triay
@MathieuLoutre
Yep same here! haha
Regarding the precompilation, I'm monkey patching a version of Superpowers at the moment and I've got it to not generate source maps and bypass the compilation of user generated scripts entirely
(thanks to your patch!)
And now I'd love to understand why the plugins need to be compiled at all (well, the definitions need to be compiled!) because the runtime and components are plain JS it seems
Vianney Petit
@Ikalou
Yeah, you're gonna have to ask elisee. There's probably a good reason.
Mathieu Triay
@MathieuLoutre
I think if you can just bypass the compilation of the typescriptAPI files for the global plugins then you can just remove the Typescript module in production
and that just slims down the whole thing crazily
Vianney Petit
@Ikalou
The game won't run if you remove the typescript plugin at all
Or by module do you not mean plugin?
Mathieu Triay
@MathieuLoutre
Yeah I saw that haha
No I meant the node typescript module inside the typescript plugin
(I don't know if that's very clear)
At the moment the typescript compiler is bundled in the typescript plugin
Vianney Petit
@Ikalou
Yeah I know
Mathieu Triay
@MathieuLoutre
if you can take that out (essentially by bypassing all compilations) then you can win back 3mo
Vianney Petit
@Ikalou
My game had 25MB of media so I didn't really care about the 3MB of clutter
I was really looking to cut down the loading time on slow CPUs because of compilation
_
Mathieu Triay
@MathieuLoutre
yeah that's definitely good too
Still if you don't compile the 31 global plugins you'll get a speed boost too
Vianney Petit
@Ikalou
I don't really have a clean solution to not compile the plugins code
Mathieu Triay
@MathieuLoutre
(My game's media is 5mo so 3mo is more than half the payload!)
At the moment I'm not looking for a clean solution but rather any solution
haha
Vianney Petit
@Ikalou
Honestly, for plugins, I just took kinda just took a dump of the data structure out of the compleTypescript function
Mathieu Triay
@MathieuLoutre
AH
Why didn't I think about this?
That's great
Vianney Petit
@Ikalou
I'll just share that other patch to you. Kinda ashamed of how ugly it is but ho well
Maybe it can save you a couple minutes
Mathieu Triay
@MathieuLoutre
haha if you looked at the state of my version of Superpowers you'd be scared I think
You'll get a mention in the credits of the game if it comes out in time! haha