Skip to content

Commit 886ba6b

Browse files
committed
Add files
1 parent df6b68d commit 886ba6b

65 files changed

Lines changed: 20078 additions & 2 deletions

Some content is hidden

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

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
3+
dist/

README.md

Lines changed: 119 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,119 @@
1-
# test_electron-pixijs-typescript
2-
About Sample using Electron, Pixi.JS and Spine(pixi-spine) and TypeScript to make a game app that runs on browser and on desktop.
1+
# electron-pixijs-typescript and spine(pixi-spine)
2+
Sample using Electron, Pixi.JS and Spine and TypeScript to make a game app that runs on browser and on desktop.
3+
4+
**DEMO**
5+
Web:
6+
<img src="https://evofan.github.io/electron-pixijs-typescript/screenshot/pic_by_browser.jpg" width="50%">
7+
[https://evofan.github.io/electron-pixijs-typescript/build/app/index.html](https://evofan.github.io/electron-pixijs-typescript/build/app/index.html)
8+
9+
Electron:
10+
<img src="https://evofan.github.io/electron-pixijs-typescript/screenshot/pic_by_electron.jpg" width="50%">
11+
12+
Installer: Releases / dist_20201008.zip
13+
<img src="https://evofan.github.io/electron-pixijs-typescript/screenshot/pic_exec.jpg" width="50%"> <img src="https://evofan.github.io/electron-pixijs-typescript/screenshot/pic_inst1.jpg" width="25%">
14+
15+
**How to use it**
16+
```
17+
npm install
18+
npm run build
19+
npm start
20+
```
21+
You can also build your app to work on a web browser using.
22+
`npm run web`
23+
24+
Make Installer
25+
`npm i -g electron-builder`
26+
`electron-builder --win --x64`
27+
28+
**Update library**(2021/01)
29+
~~~
30+
@types/node ^14.11.2 → ^14.14.21
31+
electron ^10.1.3 → ^11.2.0
32+
gulp-sourcemaps ^2.6.5 → ^3.0.0
33+
pixi-spine ^2.1.10 → ^2.1.11
34+
pixi.js ^5.3.3 → ^5.3.7
35+
source-map-loader ^1.0.0 → ^2.0.0
36+
ts-loader ^8.0.4 → ^8.0.14
37+
typescript ^4.0.3 → ^4.1.3
38+
webpack ^4.44.2 → ^5.15.0
39+
webpack-stream ^6.1.0 → ^6.1.1
40+
~~~
41+
42+
**Update library**(2020/10)
43+
~~~
44+
@types/node ^11.11.3 → ^14.11.2
45+
@types/pixi.js ^4.8.6 → ^5.0.0
46+
del ^4.0.0 → ^6.0.0
47+
electron ^4.0.8 → ^10.1.3
48+
gulp ^4.0.0 → ^4.0.2
49+
gulp-typescript ^5.0.0 → ^5.0.1
50+
merge2 ^1.2.3 → ^1.4.1
51+
minimist ^1.2.3 → ^1.2.5
52+
pixi.js ^4.8.6 → ^5.3.3
53+
ts-loader ^5.3.3 → ^8.0.4
54+
tslint ^5.13.1 → ^6.1.3
55+
typescript ^3.3.3333 → ^4.0.3
56+
webpack ^4.29.6 → ^4.44.2
57+
webpack-node-externals ^1.7.2 → ^2.5.2
58+
webpack-stream ^5.2.1 → ^6.1.0
59+
~~~
60+
61+
---
62+
63+
reference
64+
65+
**PixiJS Examples Pixie**
66+
[https://pixijs.io/examples/#/plugin-spine/pixie.js](https://pixijs.io/examples/#/plugin-spine/pixie.js)
67+
Uses background material and script, fairy is unused for spine ver 3.7.
68+
69+
**Example: Alien**
70+
[http://ja.esotericsoftware.com/spine-examples-alien](http://ja.esotericsoftware.com/spine-examples-alien)
71+
Because spine ver 3.8 or higher is required.
72+
73+
or use other branch.
74+
>PixiJS Spine plugin supports only format for Spine 3.8. Your model has version 3.3.07.
75+
>Please look in pixi-spine repository README for another branch.
76+
77+
**electron 5.0.0 “Uncaught ReferenceError: require is not defined”**
78+
[https://stackoverflow.com/questions/55093700/electron-5-0-0-uncaught-referenceerror-require-is-not-defined](https://stackoverflow.com/questions/55093700/electron-5-0-0-uncaught-referenceerror-require-is-not-defined)
79+
>nodeIntegration: true
80+
81+
**ReferenceError: PIXI is not defined · Issue #47 · pixijs/pixi-projection**
82+
[https://github.com/pixijs/pixi-projection/issues/47](https://github.com/pixijs/pixi-projection/issues/47)
83+
84+
**pixijs/pixi-spine**
85+
[https://github.com/pixijs/pixi-spine](https://github.com/pixijs/pixi-spine)
86+
>Basic Example
87+
88+
**Creating a desktop application from scratch with Electron and building / releasing it using electron-builder.**
89+
(Electronで1からデスクトップアプリを作り、electron-builderを使ってビルド・リリースするまで - Qiita)
90+
[https://qiita.com/saki-engineering/items/203892838e15b3dbd300](https://qiita.com/saki-engineering/items/203892838e15b3dbd300)
91+
92+
memo
93+
erased glup lint...
94+
nodeIntegration security ok?
95+
96+
**Electron | Build cross-platform desktop apps with JavaScript, HTML, and CSS.**
97+
[https://www.electronjs.org/](https://www.electronjs.org/)
98+
99+
(Uncaught ReferenceError: require is not defined)
100+
**Electron 12.0.0 'Require' is not defined #463 electron/electron-quick-start**
101+
[https://github.com/electron/electron-quick-start/issues/463](https://github.com/electron/electron-quick-start/issues/463)
102+
>webPreferences: {
103+
> nodeIntegration: true,
104+
> contextIsolation: false
105+
>}
106+
107+
(Uncaught Error: Cannot find module)
108+
**electron-builderで「Error: Cannot find module 」が出る場合について | Sysrigar**
109+
[https://sysrigar.com/2019/11/23/electron-builder%E3%81%A7%E3%80%8Cerror-cannot-find-module-%E3%80%8D%E3%81%8C%E5%87%BA%E3%82%8B%E5%A0%B4%E5%90%88%E3%81%AB%E3%81%A4%E3%81%84/](https://sysrigar.com/2019/11/23/electron-builder%E3%81%A7%E3%80%8Cerror-cannot-find-module-%E3%80%8D%E3%81%8C%E5%87%BA%E3%82%8B%E5%A0%B4%E5%90%88%E3%81%AB%E3%81%A4%E3%81%84/)
110+
>本件エラーは electron-builder の導入先への指定がおかしいため生じていました。
111+
npm i -D electron-builderを追加
112+
113+
**electornで作成した実行ファイル(app/exe)を実行すると「Error: Cannot find module ~」が発生 | Tech Memo**
114+
[https://tech.shiroshika.com/electorn-error-cannot-find-module/](https://tech.shiroshika.com/electorn-error-cannot-find-module/)
115+
>package.jsonの「dependencies」にパッケージの記載がない
116+
dependenciesにエラーが出たモジュールを追加
117+
118+
119+

app/app.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* {padding: 0; margin: 0}

app/assets/images/iP4_BGtile.jpg

169 KB
Loading

app/assets/images/iP4_ground.png

189 KB
Loading

0 commit comments

Comments
 (0)