Skip to content

Commit 365974c

Browse files
committed
First commit
0 parents  commit 365974c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+2152
-0
lines changed

.babelrc

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"sourceMaps": true,
3+
"comments": false,
4+
"presets": [
5+
[
6+
"latest",
7+
{
8+
"es2015": {
9+
"modules": false
10+
}
11+
}
12+
],
13+
"react"
14+
],
15+
"plugins": [
16+
"react-hot-loader/babel",
17+
"transform-decorators-legacy",
18+
"transform-class-properties",
19+
"transform-export-extensions",
20+
[
21+
"transform-object-rest-spread",
22+
{
23+
"useBuiltIns": true
24+
}
25+
]
26+
]
27+
}

.eslintrc.json

+266
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,266 @@
1+
{
2+
"extends": ["plugin:react/recommended", "plugin:import/errors", "plugin:import/warnings"],
3+
"parser": "babel-eslint",
4+
"parserOptions": {
5+
"ecmaVersion": 6,
6+
"sourceType": "module",
7+
"ecmaFeatures": {
8+
"jsx": true,
9+
"experimentalObjectRestSpread": true
10+
}
11+
},
12+
"env": {
13+
"browser": true,
14+
"node": true,
15+
"commonjs": true,
16+
"es6": true
17+
},
18+
"rules": {
19+
"no-cond-assign": [2, "except-parens"],
20+
"no-console": 2,
21+
"no-constant-condition": 2,
22+
"no-control-regex": 2,
23+
"no-debugger": 2,
24+
"no-dupe-args": 2,
25+
"no-dupe-keys": 2,
26+
"no-duplicate-case": 2,
27+
"no-empty-character-class": 2,
28+
"no-empty": 2,
29+
"no-ex-assign": 2,
30+
"no-extra-boolean-cast": 2,
31+
"no-extra-parens": 0,
32+
"no-extra-semi": 2,
33+
"no-func-assign": 2,
34+
"no-inner-declarations": 2,
35+
"no-invalid-regexp": 2,
36+
"no-irregular-whitespace": 2,
37+
"no-obj-calls": 2,
38+
"no-prototype-builtins": 0,
39+
"no-regex-spaces": 2,
40+
"no-sparse-arrays": 2,
41+
"no-template-curly-in-string": 2,
42+
"no-unexpected-multiline": 2,
43+
"no-unreachable": 2,
44+
"no-unsafe-finally": 2,
45+
"no-unsafe-negation": 2,
46+
"use-isnan": 2,
47+
"valid-jsdoc": [2, { "requireReturn": false, "requireReturnType": true, "requireParamDescription": false, "requireReturnDescription": false }],
48+
"valid-typeof": 2,
49+
50+
// Best Practices
51+
"accessor-pairs": 2,
52+
"array-callback-return": 2,
53+
"block-scoped-var": 2,
54+
"class-methods-use-this": 0,
55+
"complexity": 0,
56+
"consistent-return": 2,
57+
"curly": 2,
58+
"default-case": 2,
59+
"dot-location": [2, "property"],
60+
"dot-notation": 2,
61+
"eqeqeq": [2, "always", { "null": "ignore" }],
62+
"guard-for-in": 0,
63+
"no-alert": 2,
64+
"no-caller": 2,
65+
"no-case-declarations": 2,
66+
"no-div-regex": 2,
67+
"no-else-return": 2,
68+
"no-empty-function": [2, { "allow": ["arrowFunctions", "constructors", "methods"] }],
69+
"no-empty-pattern": 2,
70+
"no-eq-null": "warn",
71+
"no-eval": 2,
72+
"no-extend-native": 2,
73+
"no-extra-bind": 2,
74+
"no-extra-label": 2,
75+
"no-fallthrough": 2,
76+
"no-floating-decimal": 2,
77+
"no-global-assign": 2,
78+
"no-implicit-coercion": [2, { "boolean": false, "number": true, "string": true, "allow": [] }],
79+
"no-implicit-globals": 2,
80+
"no-implied-eval": 2,
81+
"no-invalid-this": "warn",
82+
"no-iterator": 2,
83+
"no-labels": 2,
84+
"no-lone-blocks": 2,
85+
"no-loop-func": 2,
86+
"no-magic-numbers": 0,
87+
"no-multi-spaces": [2, { "exceptions": { "Property": true, "VariableDeclarator": true, "ImportDeclaration": true, "Property": true } }],
88+
"no-multi-str": 2,
89+
"no-new": 2,
90+
"no-new-func": 2,
91+
"no-new-wrappers": 2,
92+
"no-octal": 2,
93+
"no-octal-escape": 2,
94+
"no-param-reassign": [2, { "props": false }],
95+
"no-proto": 2,
96+
"no-redeclare": 2,
97+
"no-return-assign": 2,
98+
"no-script-url": 2,
99+
"no-self-assign": 2,
100+
"no-self-compare": 2,
101+
"no-sequences": 2,
102+
"no-throw-literal": 2,
103+
"no-unmodified-loop-condition": "warn",
104+
"no-unused-expressions": [2, { "allowShortCircuit": true, "allowTernary": true }],
105+
"no-unused-labels": 2,
106+
"no-useless-call": 2,
107+
"no-useless-concat": 2,
108+
"no-useless-escape": 2,
109+
"no-useless-return": 2,
110+
"no-void": 2,
111+
"no-warning-comments": 0,
112+
"no-with": 2,
113+
"radix": 2,
114+
"vars-on-top": 0,
115+
"wrap-iife": [2, "inside"],
116+
"yoda": 2,
117+
118+
// Strict Mode
119+
"strict": [2, "global"],
120+
121+
// Variables
122+
"init-declarations": 0,
123+
"no-catch-shadow": 2,
124+
"no-delete-var": 2,
125+
"no-label-var": 2,
126+
"no-restricted-globals": 2,
127+
"no-shadow": 0,
128+
"no-shadow-restricted-names": 2,
129+
"no-undef": 2,
130+
"no-undef-init": 2,
131+
"no-undefined": 0,
132+
"no-unused-vars": 1,
133+
"no-use-before-define": [2, "nofunc"],
134+
135+
// Node.js and CommonJS
136+
"callback-return": 0,
137+
"global-require": 2,
138+
"handle-callback-err": 2,
139+
"no-mixed-requires": 2,
140+
"no-new-require": 2,
141+
"no-path-concat": 2,
142+
"no-process-env": 0,
143+
"no-process-exit": 0,
144+
"no-restricted-modules": 0,
145+
"no-sync": 0,
146+
147+
// Stylistic Issues
148+
"array-bracket-spacing": [2, "never"],
149+
"block-spacing": [2, "always"],
150+
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
151+
"camelcase": [2, { "properties": "always" }],
152+
"comma-dangle": 0,
153+
"comma-spacing": [2, { "before": false, "after": true }],
154+
"comma-style": [2, "last"],
155+
"computed-property-spacing": [2, "never"],
156+
"consistent-this": [0, "self"],
157+
"eol-last": [2, "always"],
158+
"func-call-spacing": [2, "never"],
159+
"func-name-matching": 2,
160+
"func-names": 0,
161+
"func-style": [2, "declaration", { "allowArrowFunctions": true }],
162+
"id-blacklist": 0,
163+
"id-length": 0,
164+
"id-match": 0,
165+
"indent": [2, 2, { "SwitchCase": 1, "VariableDeclarator": { "var": 2, "let": 2, "const": 3 }, "FunctionDeclaration": {"parameters": "first"}, "CallExpression": {"arguments": "first"}, "FunctionExpression": {"parameters": "first"} }],
166+
"jsx-quotes": [2, "prefer-single"],
167+
"key-spacing": [2, { "beforeColon": false, "afterColon": true, "mode": "minimum" }],
168+
"keyword-spacing": [2, { "before": true, "after": true }],
169+
"line-comment-position": [1, { "position": "above" }],
170+
"linebreak-style": [2, "unix"],
171+
"lines-around-comment": 2,
172+
"max-depth": [2, 6],
173+
"max-len": [2, { "code": 125, "tabWidth": 4 }],
174+
"max-lines": 0,
175+
"max-nested-callbacks": [2, { "max": 5 }],
176+
"max-params": [1, { "max": 10 }],
177+
"max-statements": 0,
178+
"max-statements-per-line": [2, { "max": 2 }],
179+
"multiline-ternary": 0,
180+
"new-cap": [2, { "newIsCap": true, "capIsNew": false, "properties": false }],
181+
"new-parens": 2,
182+
"newline-after-var": [2, "always"],
183+
"newline-before-return": 2,
184+
"newline-per-chained-call": [2, { "ignoreChainWithDepth": 4 }],
185+
"no-array-constructor": 2,
186+
"no-bitwise": 0,
187+
"no-continue": 0,
188+
"no-inline-comments": 0,
189+
"no-lonely-if": 2,
190+
"no-mixed-operators": [2, { "allowSamePrecedence": true }],
191+
"no-mixed-spaces-and-tabs": 2,
192+
"no-multiple-empty-lines": [2, { "max": 1, "maxEOF": 1, "maxBOF": 0 }],
193+
"no-negated-condition": 0,
194+
"no-nested-ternary": 2,
195+
"no-new-object": 2,
196+
"no-plusplus": 0,
197+
"no-restricted-syntax": [2, "DebuggerStatement", "EmptyStatement", "LabeledStatement", "WithStatement"],
198+
"no-ternary": 0,
199+
"no-trailing-spaces": 1,
200+
"no-underscore-dangle": 0,
201+
"no-unneeded-ternary": 2,
202+
"no-whitespace-before-property": 2,
203+
"object-curly-newline": 0,
204+
"object-curly-spacing": [2, "always"],
205+
"object-property-newline": 0,
206+
"one-var": [2, { "initialized": "never", "uninitialized": "always" }],
207+
"one-var-declaration-per-line": [2, "always"],
208+
"operator-assignment": 0,
209+
"operator-linebreak": [2, "before"],
210+
"padded-blocks": [0, "never"],
211+
"quote-props": [2, "as-needed"],
212+
"quotes": [2, "single", { "allowTemplateLiterals": true }],
213+
"require-jsdoc": [0, { "require": { "FunctionDeclaration": false, "ClassDeclaration": true, "MethodDefinition": true } }],
214+
"semi": [2, "always"],
215+
"semi-spacing": [2, { "before": false, "after": true }],
216+
"sort-keys": 0,
217+
"sort-vars": 0,
218+
"space-before-blocks": [2, "always"],
219+
"space-before-function-paren": [2, { "anonymous": "always", "named": "never" }],
220+
"space-in-parens": [2, "never"],
221+
"space-infix-ops": 2,
222+
"space-unary-ops": [2, { "words": true, "nonwords": false }],
223+
"spaced-comment": [2, "always", { "markers": ["!"] }],
224+
"unicode-bom": [2, "never"],
225+
"wrap-regex": 2,
226+
227+
// ECMAScript 6
228+
"arrow-body-style": [2, "as-needed"],
229+
"arrow-parens": [2, "as-needed"],
230+
"arrow-spacing": [2, { "before": true, "after": true }],
231+
"constructor-super": 2,
232+
"generator-star-spacing": [2, {"before": true, "after": false}],
233+
"no-class-assign": 2,
234+
"no-confusing-arrow": [2, { "allowParens": true }],
235+
"no-const-assign": 2,
236+
"no-dupe-class-members": 2,
237+
"no-duplicate-imports": 2,
238+
"no-new-symbol": 2,
239+
"no-restricted-imports": 0,
240+
"no-return-await": 2,
241+
"no-this-before-super": 2,
242+
"no-useless-computed-key": 2,
243+
"no-useless-constructor": 2,
244+
"no-useless-rename": 2,
245+
"no-var": 2,
246+
"object-shorthand": 2,
247+
"prefer-arrow-callback": 0,
248+
"prefer-const": 2,
249+
"prefer-numeric-literals": 2,
250+
"prefer-rest-params": 0,
251+
"prefer-spread": 2,
252+
"prefer-template": 2,
253+
"require-yield": 2,
254+
"rest-spread-spacing": [2, "never"],
255+
"sort-imports": 0,
256+
"symbol-description": 2,
257+
"template-curly-spacing": [2, "never"],
258+
"yield-star-spacing": [2, "before"],
259+
260+
// plugin: import
261+
"import/no-unresolved": [2, { "commonjs": true }]
262+
},
263+
"settings": {
264+
"import/resolver": "webpack"
265+
}
266+
}

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules
2+
.vscode
3+
/dist
4+
/build
5+
/docs
6+
.DS_Store
7+
/example
8+
webpack.config.example.js

assets/common/bg.png

5.18 KB
Loading

assets/common/return.png

18 KB
Loading

assets/dialog/ask_no.png

18.1 KB
Loading

assets/dialog/ask_yes.png

19.8 KB
Loading

assets/dialog/bg.png

5.21 KB
Loading

assets/fg/image.png

252 KB
Loading

assets/option/screen_full.png

21.1 KB
Loading

assets/option/screen_window.png

21 KB
Loading

assets/option/sliderbar.png

14.8 KB
Loading

assets/option/sliderblock.png

17.6 KB
Loading

assets/option/title.png

17.6 KB
Loading

assets/rule/r_1.png

505 KB
Loading

assets/rule/r_10.png

271 KB
Loading

assets/rule/r_11.png

870 KB
Loading

assets/rule/r_12.png

710 KB
Loading

assets/rule/r_2.png

668 KB
Loading

assets/rule/r_3.png

71.1 KB
Loading

assets/rule/r_4.png

496 KB
Loading

assets/rule/r_5.png

408 KB
Loading

assets/rule/r_6.png

16.8 KB
Loading

assets/rule/r_7.png

206 KB
Loading

assets/rule/r_8.png

942 KB
Loading

assets/rule/r_9.png

334 KB
Loading

assets/saveload/item_bg.png

845 Bytes
Loading

assets/scripts/1.bkc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"resources": []
3+
}

assets/scripts/1.bks

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[bg file='common/bg.png']
2+
[text show]
3+
Hello, world![p]
4+
[fg center file='fg/image.png']
5+
【Girl】
6+
Your new game project has been created.[r] Edit it to tell your story![p]
7+
[router push path='/title']

assets/textwindow/bg.png

32.5 KB
Loading

assets/title/info.png

2.35 KB
Loading

assets/title/load.png

3.26 KB
Loading

assets/title/option.png

4.19 KB
Loading

assets/title/start.png

3.54 KB
Loading

copyright.txt

Whitespace-only changes.

icon128.png

30.7 KB
Loading

icon192.png

62.6 KB
Loading

icon64.png

10.6 KB
Loading

index.html

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<link rel="manifest" href="/manifest.json" >
6+
<meta name="renderer" content="webkit">
7+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
8+
<meta http-equiv="Cache-Control" content="no-siteapp" />
9+
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui" />
10+
11+
<title>My Adventure Game</title>
12+
<meta name="application-name" content="My Adventure Game">
13+
<meta name="description" content="Yet Another Adventrue Game, Powered by AVG.js.">
14+
<meta name="keywords" content="Game, AVG, AVG.js">
15+
<meta name="author" content="Your Name">
16+
<!--<link rel="author" href="humans.txt">-->
17+
<!--<link rel="copyright" href="copyright.txt">-->
18+
19+
<meta name="mobile-web-app-capable" content="yes" />
20+
<meta name="apple-mobile-web-app-capable" content="yes" />
21+
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
22+
<meta name="format-detection" content="telphone=no, email=no" />
23+
<meta name="theme-color" content="#000" />
24+
<!-- UC Configure-->
25+
<meta name="screen-orientation" content="landscape">
26+
<meta name="full-screen" content="yes">
27+
<meta name="browsermode" content="application"/>
28+
<!-- QQ Configure-->
29+
<meta name="x5-orientation" content="landscape"/>
30+
<meta name="x5-fullscreen" content="true"/>
31+
<meta name="x5-page-mode" content="app">
32+
33+
<meta name="msapplication-tap-highlight" content="no">
34+
<meta name="HandheldFriendly" content="true">
35+
36+
<link rel="icon" href="icon64.png" sizes="64x64" type="image/png">
37+
<link rel="icon" href="icon128.png" sizes="128x128" type="image/png">
38+
<link rel="icon" href="icon192.png" sizes="192x192" type="image/png">
39+
<link rel="shortcut icon" href="icon64.png" sizes="64x64" type="image/png">
40+
<link rel="shortcut icon" href="icon128.png" sizes="128x128" type="image/png">
41+
<link rel="shortcut icon" href="icon192.png" sizes="192x192" type="image/png">
42+
<link rel="apple-touch-icon-precomposed" href="icon64.png" sizes="64x64" type="image/png">
43+
<link rel="apple-touch-icon-precomposed" href="icon128.png" sizes="128x128" type="image/png">
44+
<link rel="apple-touch-icon-precomposed" href="icon192.png" sizes="192x192" type="image/png">
45+
46+
<script type="text/javascript" src="libs/pixi.min.js" charset="utf-8"></script>
47+
<script type="text/javascript" src="libs/avg.min.js" charset="utf-8"></script>
48+
<!--<script src="//cdn.jsdelivr.net/eruda/1.2.0/eruda.min.js"></script>-->
49+
<style>
50+
* {
51+
margin: 0;
52+
padding: 0;
53+
border: 0;
54+
overflow: hidden;
55+
}
56+
body {
57+
background: white;
58+
}
59+
*:not(input, textarea) {
60+
-webkit-touch-callout: none;
61+
-webkit-user-select: none;
62+
}
63+
</style>
64+
</head>
65+
<body>
66+
<div id="app"></div>
67+
<!--<script>eruda.init();</script>-->
68+
<script type="text/javascript" src="libs/index.min.js" charset="utf-8"></script>
69+
<!--<script>(function(){var script=document.createElement('script');script.onload=function(){var stats=new Stats();document.body.appendChild(stats.dom);window.stats = stats;/*requestAnimationFrame(function loop(){stats.update();requestAnimationFrame(loop)});*/};script.src='//rawgit.com/mrdoob/stats.js/master/build/stats.min.js';document.head.appendChild(script);})()</script>-->
70+
</body>
71+
</html>

0 commit comments

Comments
 (0)