nkholski / phaser3-es6-webpack

Generic platformer and Phaser 3 bootstrap project
http://metroid.niklasberg.se/phaser3platformer/
703 stars 141 forks source link

Obfuscation availability #22

Closed wyattbiker closed 5 years ago

wyattbiker commented 5 years ago

Is there a way to add obfuscation to this?

Thanks

nkholski commented 5 years ago

You could mess around with webpack and add it but I see no reason to bother. If you mean for protecting the code: Cutting out the source from the bundle and beautify it would still make a messy source code and for someone doing it it's probably a better idea to just code it from scratch. If you want to prevent cheating it's trivial to hack even an obfuscated javascript-based game.

wyattbiker commented 5 years ago

I just looked up something this: https://github.com/javascript-obfuscator/javascript-obfuscator Maybe worth adding it as an option using the webpack plugins.

nkholski commented 5 years ago

It's definitely doable but as I wrote, I don't see any reason why.