搭配
webpack
的multiple entry
和dependOn
完美实现小游戏的分包加载。这样可以实现小游戏的多合一且具有更好的隔离效果。
之前的代码移入分支: legacy
- main: 《小石潭记》开场
- colloc: 弹球游戏
- sudoku: 数独游戏
一款烧脑的益智游戏(Pixi.js)
搭配
webpack
的multiple entry
和dependOn
完美实现小游戏的分包加载。这样可以实现小游戏的多合一且具有更好的隔离效果。
之前的代码移入分支: legacy
我都打通关了, 想着回来回顾一下, 没想到改数独了...
执行完npm i 之后,如果把 dist 删掉,把 webpack 下的注释开起来
colloc: {import: ['./src/colloc/app.ts'], filename: '[name]/game.js', dependOn: 'main'},
sudoku: {import: ['./src/sudoku/app.ts'], filename: '[name]/game.js', dependOn: 'main'},
npm start 之后就用开发者工具加载后就运行不起来了,报 game.json 找不到
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.