开发者

how does this game load its modules?

开发者 https://www.devze.com 2023-04-07 09:00 出处:网络
This game uses ig.module(\'impact.font\').requires(\'impact.image\')for impact/font.js but when i see source co开发者_Go百科de via Google Developer Tools i dont see <script> for impact/font.js (

This game uses ig.module('impact.font').requires('impact.image') for impact/font.js but when i see source co开发者_Go百科de via Google Developer Tools i dont see <script> for impact/font.js (in http://playbiolab.com page) Why? how do they load them?


All the code is in biolab.js. The 'modules' aren't external files (at least not by the time the code is delivered to the browser).


The variables are defined at http://playbiolab.com/biolab.js. Instead of starting with the developer tools, you can also view the source of the page, then search for <script (without closing >).

If you cannot understand the code, because it's packed, use http://jsbeautifier.org.

0

精彩评论

暂无评论...
验证码 换一张
取 消