# Phaser + ES6 + Webpack.
#### A bootstrap project to create games with Phaser + ES6 + Webpack.
![Phaser+ES6+Webpack](https://raw.githubusercontent.com/lean/phaser-es6-webpack/master/assets/images/phaser-es6-webpack.jpg)
[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
## Features
- ESLINT with JavaScript Standard Style configuration
- Next generation of Javascript
- Browsers are automatically updated as you change project files
- Webpack ready
- WebFont Loader
## Typescript
If you need typescript support checkout the ```typescript``` branch. Thanks to @MatsMaker
# Setup
To use this bootstrap you’ll need to install a few things before you have a working copy of the project.
## 1. Clone this repo:
Navigate into your workspace directory.
Run:
```git clone https://github.com/lean/phaser-es6-webpack.git```
## 2. Install node.js and npm:
https://nodejs.org/en/
## 3. Install dependencies (optionally you could install [yarn](https://yarnpkg.com/)):
Navigate to the cloned repo’s directory.
Run:
```npm install```
or if you choose yarn, just run ```yarn```
## 4. Run the development server:
Run:
```npm run dev```
This will run a server so you can run the game in a browser.
Open your browser and enter localhost:3000 into the address bar.
Also this will start a watch process, so you can change the source and the process will recompile and refresh the browser
## Build for deployment:
Run:
```npm run deploy```
This will optimize and minimize the compiled bundle.
## Credits
Big thanks to this great repos:
https://github.com/belohlavek/phaser-es6-boilerplate
https://github.com/cstuncsik/phaser-es6-demo
没有合适的资源?快使用搜索试试~ 我知道了~
等距平铺地图移相器游戏 示例_JavaScript_代码_下载
共43个文件
js:16个
png:15个
json:3个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 29 浏览量
2022-06-23
23:40:42
上传
评论
收藏 192KB ZIP 举报
温馨提示
一个使用 Phaser + ES6 + Webpack 创建游戏的引导项目。 特征 带有 JavaScript 标准样式配置的 ESLINT 下一代 Javascript 当您更改项目文件时,浏览器会自动更新 Webpack 准备就绪 网页字体加载器
资源推荐
资源详情
资源评论
收起资源包目录
isometric-tilemap-sample-master.zip (43个子文件)
isometric-tilemap-sample-master
.gitignore 34B
README.md 2KB
webpack.production.config.js 2KB
package.json 936B
src
sprites
LabelButton.js 320B
Dino.js 3KB
DinoState.js 83B
Mushroom.js 413B
maps
iso_map.js 2KB
main.js 778B
scene
BattleScene.js 2KB
BattleState.js 99B
vendor
phaser-plugin-isometric.js 167KB
config.js 95B
utils.js 122B
states
Splash.js 2KB
Boot.js 827B
Game.js 10KB
CODE_OF_CONDUCT.md 3KB
.babelrc 28B
LICENSE.md 1KB
index.html 615B
webpack.config.js 2KB
yarn.lock 137KB
.eslintrc.json 331B
assets
maps
iso-map.json 1KB
images
white_grey_xoffset_0__yoffset_0.png 337B
phaser-es6-webpack.jpg 46KB
tile-grass.png 6KB
mushroom-green.png 4KB
loader-bar.png 15KB
loader-bg.png 963B
DinoSpriteSheet-sheet.png 3KB
tile-grey.png 1KB
tile-white.png 3KB
star.png 7KB
mushroom-red.png 5KB
tile-grass_.png 11KB
tile-grass_b.png 5KB
tile-red.png 3KB
dino_vita.png 5KB
dino_mort.png 4KB
buttons
button.jpg 12KB
共 43 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功