Skip to content

Commit 7c864fc

Browse files
committed
.
0 parents  commit 7c864fc

21 files changed

+7316
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/node_modules/
2+
/.idea/
3+
/dist/*

_webpack.config.js

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// var HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin');
2+
var HtmlWebpackPlugin = require('html-webpack-plugin');
3+
const CopyWebpackPlugin = require('copy-webpack-plugin');
4+
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
5+
6+
var path = require('path');
7+
8+
module.exports = {
9+
entry: './src/index.js',
10+
output: {
11+
path: path.resolve(__dirname, './dist'),
12+
filename: 'index_bundle.js'
13+
},
14+
optimization: {
15+
minimizer: [new UglifyJSPlugin({
16+
uglifyOptions: {
17+
output: {
18+
comments: false //use it for removing comments like "/*! ... */"
19+
}
20+
}
21+
})]
22+
},
23+
plugins: [
24+
new CopyWebpackPlugin([{
25+
from: 'build/assets',
26+
to: 'assets'
27+
}]),
28+
new HTMLWebpackPlugin({
29+
template: 'build/index.html',
30+
filename: 'index.html'
31+
}),
32+
new HtmlWebpackPlugin({
33+
// inlineSource: '.(js|css)$' // embed all javascript and css inline
34+
}),
35+
// new HtmlWebpackInlineSourcePlugin()
36+
]
37+
38+
};

build/assets/images/atlas.json

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{"frames": {
2+
3+
"background.png":
4+
{
5+
"frame": {"x":0,"y":0,"w":512,"h":512},
6+
"rotated": false,
7+
"trimmed": false,
8+
"spriteSourceSize": {"x":0,"y":0,"w":512,"h":512},
9+
"sourceSize": {"w":512,"h":512},
10+
"anchor": {"x":0.5,"y":0.5}
11+
},
12+
"coint.png":
13+
{
14+
"frame": {"x":0,"y":512,"w":32,"h":35},
15+
"rotated": false,
16+
"trimmed": false,
17+
"spriteSourceSize": {"x":0,"y":0,"w":32,"h":35},
18+
"sourceSize": {"w":32,"h":35},
19+
"anchor": {"x":0.5,"y":0.5}
20+
},
21+
"cookie.png":
22+
{
23+
"frame": {"x":32,"y":512,"w":128,"h":128},
24+
"rotated": false,
25+
"trimmed": false,
26+
"spriteSourceSize": {"x":0,"y":0,"w":128,"h":128},
27+
"sourceSize": {"w":128,"h":128},
28+
"anchor": {"x":0.5,"y":0.5}
29+
},
30+
"score.png":
31+
{
32+
"frame": {"x":160,"y":512,"w":116,"h":43},
33+
"rotated": false,
34+
"trimmed": false,
35+
"spriteSourceSize": {"x":0,"y":0,"w":116,"h":43},
36+
"sourceSize": {"w":116,"h":43},
37+
"anchor": {"x":0.5,"y":0.5}
38+
}},
39+
"meta": {
40+
"app": "https://www.codeandweb.com/texturepacker",
41+
"version": "1.0",
42+
"image": "atlas.png",
43+
"format": "RGBA8888",
44+
"size": {"w":512,"h":640},
45+
"scale": "1",
46+
"smartupdate": "$TexturePacker:SmartUpdate:7eae407e9f01a958046c5743379e7a39:0803c2b86667abb829bdfbe4ed6706f5:100533ee33087a3e10292b753a14bce8$"
47+
}
48+
}

build/assets/images/atlas.png

63.4 KB
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

build/index.html

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
8+
<title>PixiJS v5</title>
9+
10+
<style>
11+
body {
12+
margin: 0;
13+
padding: 0;
14+
overflow: hidden;
15+
}
16+
</style>
17+
</head>
18+
19+
<body>
20+
21+
</body>
22+
</html>

0 commit comments

Comments
 (0)