eva-engine / eva.js

Eva.js is a front-end game engine specifically for creating interactive game projects.
https://eva.js.org
MIT License
1.75k stars 108 forks source link

Providing a global variable for devtool #49

Closed manyyuri closed 3 years ago

manyyuri commented 3 years ago

检查 window.__EVA_INSPECT_TOOL__ === true 之后,将game实例挂载到 window.__EVA_GAME_INSTANCE__