Snake.io -- 贪吃蛇大作战
2020年 Web系统与技术 最终项目
项目已部署 -> http://katty.top:8000/snake/
适配多种浏览器及移动端
纯前端模仿贪吃蛇大作战
-
Game framework
phaser3
-
Module manager
Webpack
-
Language edition
Javascript ES6
You'll need to install a few things before you have a working copy of the project.
Navigate into your workspace directory.
Run:
$ git clone https://github.com/frezcirno/snake.io-clone.git
2. Install node.js and npm:
3. Install dependencies (optionally you can install yarn):
Navigate to the cloned repo's directory.
Run:
$ npm install
or if you chose yarn, just run yarn
Run:
$ npm run start
This will run a server so you can run the game in a browser. It will also start a watch process, so you can change the source and the process will recompile and refresh the browser automatically.
To run the game, open your browser and enter http://localhost:8080 into the address bar.
Run:
$ npm run build
This will optimize and minimize the compiled bundle.
游戏使用的各种资源均来自网络, 如侵犯版权,我会马上删除