-
Notifications
You must be signed in to change notification settings - Fork 0
migrate recommendation of GBF #2
Description
Hi, I'm Miau, the developer of BraveVyrn.
I spend a lot of time to research GBF, my first favorite mobile game. (web game actually)
GBF is a game that using backbone.js +jquery + create.js (wahid fork) web app. 2014/03/10, the game first release, these were really hot techs, but today we have more choice if we need to build a single page app.
I don't say GBF is sucks or something like that, but I think GBF can be (and should be) more better than current state
First:
- Migrate from
httptohttp2,websockettowss
this would help for game loading for extremely huge numbers of game files. I know deploy static assets on akamai network is really awesome, but most mobile network have no good performance with tons of request, especially this game is updated frequently and require user re-download them again and again. http2 would reuse same connection instead of handshake in each request, compress header, and lightweight binary packet transfer.
it helps for better game loading without migrating any code base, improve experience via mobile network.
(please don't ask us to download 2GB assets when any new install of android app every time.)
Second:
- Add
webpackin workflow
I notice game is split in a very good folder structure, it's nice, but it shouldn't for production environment. with the help of webpack we can keep using amd modules and bundle, minify together instead of minifying on each file, to reduce the amount of file.
if you add babel family package in workflow, we can use most es6 syntax and transpile to es5 or each compatible browser environment. (babel-preset-env do the trick)
Third:
- upgrade package dependency:
backbone,jquery,underscore
the package using in GBF is a bit old for now, replace underscore to lodash would be first step. deprecate some legacy client is necessary for a active project like GBF, we should upgrade jquery and backbone now.
Four:
- ask mobage to remove left side bar if they don't know how to program
why mobage want to show player a useless bar at left side and impact whole performance? just leave jssdk for in-game purchase, please.
Sincerly
Miau