AticAtac Posted August 30, 2017 Share Posted August 30, 2017 Hi, i am pretty new to html / javascript. Babylon.js based game run in browsers just like any websites. Does this mean that everyone can see the whole game code? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 31, 2017 Share Posted August 31, 2017 Welcome! and yes this is true. But you can minify your code to make it less "readable" Check babylon.max.js: https://raw.githubusercontent.com/BabylonJS/Babylon.js/master/dist/preview release/babylon.max.js and it's minified version: https://raw.githubusercontent.com/BabylonJS/Babylon.js/master/dist/preview release/babylon.js Quote Link to comment Share on other sites More sharing options...
dbawel Posted September 1, 2017 Share Posted September 1, 2017 What is it that you want to do which someone might take from you? @Pryme8 helped me keep our valuable code server side, but I don't see any revolutions in JS code. DB Quote Link to comment Share on other sites More sharing options...
brianzinn Posted September 1, 2017 Share Posted September 1, 2017 If somebody really wants your code they can often decompile your non-browser code as well (ie: java APK on Android). If you use something like uglify (https://github.com/mishoo/UglifyJS2) in your production build then you are making it a LOT more effort to understand and copy! wilson 1 Quote Link to comment Share on other sites More sharing options...
AticAtac Posted September 1, 2017 Author Share Posted September 1, 2017 Thanks for the great answers! Looks like techniques like webpack, uglifier, etc. are the solution here. Btw, Babylon.js is great! Pryme8 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.