rolexx commited on
Commit
7a6a2a4
·
1 Parent(s): d4c653c

minor changes

Browse files
pnpm-lock.yaml ADDED
@@ -0,0 +1,325 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ lockfileVersion: '6.0'
2
+
3
+ settings:
4
+ autoInstallPeers: true
5
+ excludeLinksFromLockfile: false
6
+
7
+ dependencies:
8
+ next:
9
+ specifier: 14.2.3
10
11
+ phaser:
12
+ specifier: ^3.87.0
13
+ version: 3.87.0
14
+ react:
15
+ specifier: ^18
16
+ version: 18.3.1
17
+ react-dom:
18
+ specifier: ^18
19
+ version: 18.3.1([email protected])
20
+
21
+ devDependencies:
22
+ '@types/node':
23
+ specifier: ^20
24
+ version: 20.17.16
25
+ '@types/react':
26
+ specifier: ^18
27
+ version: 18.3.18
28
+ '@types/react-dom':
29
+ specifier: ^18
30
+ version: 18.3.5(@types/[email protected])
31
+ typescript:
32
+ specifier: ^5
33
+ version: 5.7.3
34
+
35
+ packages:
36
+
37
+ /@next/[email protected]:
38
+ resolution: {integrity: sha512-W7fd7IbkfmeeY2gXrzJYDx8D2lWKbVoTIj1o1ScPHNzvp30s1AuoEFSdr39bC5sjxJaxTtq3OTCZboNp0lNWHA==}
39
+ dev: false
40
+
41
+ /@next/[email protected]:
42
+ resolution: {integrity: sha512-3pEYo/RaGqPP0YzwnlmPN2puaF2WMLM3apt5jLW2fFdXD9+pqcoTzRk+iZsf8ta7+quAe4Q6Ms0nR0SFGFdS1A==}
43
+ engines: {node: '>= 10'}
44
+ cpu: [arm64]
45
+ os: [darwin]
46
+ requiresBuild: true
47
+ dev: false
48
+ optional: true
49
+
50
+ /@next/[email protected]:
51
+ resolution: {integrity: sha512-6adp7waE6P1TYFSXpY366xwsOnEXM+y1kgRpjSRVI2CBDOcbRjsJ67Z6EgKIqWIue52d2q/Mx8g9MszARj8IEA==}
52
+ engines: {node: '>= 10'}
53
+ cpu: [x64]
54
+ os: [darwin]
55
+ requiresBuild: true
56
+ dev: false
57
+ optional: true
58
+
59
+ /@next/[email protected]:
60
+ resolution: {integrity: sha512-cuzCE/1G0ZSnTAHJPUT1rPgQx1w5tzSX7POXSLaS7w2nIUJUD+e25QoXD/hMfxbsT9rslEXugWypJMILBj/QsA==}
61
+ engines: {node: '>= 10'}
62
+ cpu: [arm64]
63
+ os: [linux]
64
+ requiresBuild: true
65
+ dev: false
66
+ optional: true
67
+
68
+ /@next/[email protected]:
69
+ resolution: {integrity: sha512-0D4/oMM2Y9Ta3nGuCcQN8jjJjmDPYpHX9OJzqk42NZGJocU2MqhBq5tWkJrUQOQY9N+In9xOdymzapM09GeiZw==}
70
+ engines: {node: '>= 10'}
71
+ cpu: [arm64]
72
+ os: [linux]
73
+ requiresBuild: true
74
+ dev: false
75
+ optional: true
76
+
77
+ /@next/[email protected]:
78
+ resolution: {integrity: sha512-ENPiNnBNDInBLyUU5ii8PMQh+4XLr4pG51tOp6aJ9xqFQ2iRI6IH0Ds2yJkAzNV1CfyagcyzPfROMViS2wOZ9w==}
79
+ engines: {node: '>= 10'}
80
+ cpu: [x64]
81
+ os: [linux]
82
+ requiresBuild: true
83
+ dev: false
84
+ optional: true
85
+
86
+ /@next/[email protected]:
87
+ resolution: {integrity: sha512-BTAbq0LnCbF5MtoM7I/9UeUu/8ZBY0i8SFjUMCbPDOLv+un67e2JgyN4pmgfXBwy/I+RHu8q+k+MCkDN6P9ViQ==}
88
+ engines: {node: '>= 10'}
89
+ cpu: [x64]
90
+ os: [linux]
91
+ requiresBuild: true
92
+ dev: false
93
+ optional: true
94
+
95
+ /@next/[email protected]:
96
+ resolution: {integrity: sha512-AEHIw/dhAMLNFJFJIJIyOFDzrzI5bAjI9J26gbO5xhAKHYTZ9Or04BesFPXiAYXDNdrwTP2dQceYA4dL1geu8A==}
97
+ engines: {node: '>= 10'}
98
+ cpu: [arm64]
99
+ os: [win32]
100
+ requiresBuild: true
101
+ dev: false
102
+ optional: true
103
+
104
+ /@next/[email protected]:
105
+ resolution: {integrity: sha512-vga40n1q6aYb0CLrM+eEmisfKCR45ixQYXuBXxOOmmoV8sYST9k7E3US32FsY+CkkF7NtzdcebiFT4CHuMSyZw==}
106
+ engines: {node: '>= 10'}
107
+ cpu: [ia32]
108
+ os: [win32]
109
+ requiresBuild: true
110
+ dev: false
111
+ optional: true
112
+
113
+ /@next/[email protected]:
114
+ resolution: {integrity: sha512-Q1/zm43RWynxrO7lW4ehciQVj+5ePBhOK+/K2P7pLFX3JaJ/IZVC69SHidrmZSOkqz7ECIOhhy7XhAFG4JYyHA==}
115
+ engines: {node: '>= 10'}
116
+ cpu: [x64]
117
+ os: [win32]
118
+ requiresBuild: true
119
+ dev: false
120
+ optional: true
121
+
122
123
+ resolution: {integrity: sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==}
124
+ dev: false
125
+
126
127
+ resolution: {integrity: sha512-KGYxvIOXcceOAbEk4bi/dVLEK9z8sZ0uBB3Il5b1rhfClSpcX0yfRO0KmTkqR2cnQDymwLB+25ZyMzICg/cm/A==}
128
+ dependencies:
129
+ '@swc/counter': 0.1.3
130
+ tslib: 2.8.1
131
+ dev: false
132
+
133
+ /@types/[email protected]:
134
+ resolution: {integrity: sha512-vOTpLduLkZXePLxHiHsBLp98mHGnl8RptV4YAO3HfKO5UHjDvySGbxKtpYfy8Sx5+WKcgc45qNreJJRVM3L6mw==}
135
+ dependencies:
136
+ undici-types: 6.19.8
137
+ dev: true
138
+
139
+ /@types/[email protected]:
140
+ resolution: {integrity: sha512-gNMvNH49DJ7OJYv+KAKn0Xp45p8PLl6zo2YnvDIbTd4J6MER2BmWN49TG7n9LvkyihINxeKW8+3bfS2yDC9dzQ==}
141
+ dev: true
142
+
143
144
+ resolution: {integrity: sha512-P4t6saawp+b/dFrUr2cvkVsfvPguwsxtH6dNIYRllMsefqFzkZk5UIjzyDOv5g1dXIPdG4Sp1yCR4Z6RCUsG/Q==}
145
+ peerDependencies:
146
+ '@types/react': ^18.0.0
147
+ dependencies:
148
+ '@types/react': 18.3.18
149
+ dev: true
150
+
151
+ /@types/[email protected]:
152
+ resolution: {integrity: sha512-t4yC+vtgnkYjNSKlFx1jkAhH8LgTo2N/7Qvi83kdEaUtMDiwpbLAktKDaAMlRcJ5eSxZkH74eEGt1ky31d7kfQ==}
153
+ dependencies:
154
+ '@types/prop-types': 15.7.14
155
+ csstype: 3.1.3
156
+ dev: true
157
+
158
159
+ resolution: {integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==}
160
+ engines: {node: '>=10.16.0'}
161
+ dependencies:
162
+ streamsearch: 1.1.0
163
+ dev: false
164
+
165
166
+ resolution: {integrity: sha512-vHyLade6wTgI2u1ec3WQBxv+2BrTERV28UXQu9LO6lZ9pYeMk34vjXFLOxo1A4UBA8XTL4njRQZdno/yYaSmWw==}
167
+ dev: false
168
+
169
170
+ resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==}
171
+ dev: false
172
+
173
174
+ resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}
175
+ dev: true
176
+
177
178
+ resolution: {integrity: sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==}
179
+ dev: false
180
+
181
182
+ resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
183
+ dev: false
184
+
185
186
+ resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
187
+ dev: false
188
+
189
190
+ resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==}
191
+ hasBin: true
192
+ dependencies:
193
+ js-tokens: 4.0.0
194
+ dev: false
195
+
196
197
+ resolution: {integrity: sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==}
198
+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
199
+ hasBin: true
200
+ dev: false
201
+
202
203
+ resolution: {integrity: sha512-dowFkFTR8v79NPJO4QsBUtxv0g9BrS/phluVpMAt2ku7H+cbcBJlopXjkWlwxrk/xGqMemr7JkGPGemPrLLX7A==}
204
+ engines: {node: '>=18.17.0'}
205
+ hasBin: true
206
+ peerDependencies:
207
+ '@opentelemetry/api': ^1.1.0
208
+ '@playwright/test': ^1.41.2
209
+ react: ^18.2.0
210
+ react-dom: ^18.2.0
211
+ sass: ^1.3.0
212
+ peerDependenciesMeta:
213
+ '@opentelemetry/api':
214
+ optional: true
215
+ '@playwright/test':
216
+ optional: true
217
+ sass:
218
+ optional: true
219
+ dependencies:
220
+ '@next/env': 14.2.3
221
+ '@swc/helpers': 0.5.5
222
+ busboy: 1.6.0
223
+ caniuse-lite: 1.0.30001695
224
+ graceful-fs: 4.2.11
225
+ postcss: 8.4.31
226
+ react: 18.3.1
227
+ react-dom: 18.3.1([email protected])
228
+ styled-jsx: 5.1.1([email protected])
229
+ optionalDependencies:
230
+ '@next/swc-darwin-arm64': 14.2.3
231
+ '@next/swc-darwin-x64': 14.2.3
232
+ '@next/swc-linux-arm64-gnu': 14.2.3
233
+ '@next/swc-linux-arm64-musl': 14.2.3
234
+ '@next/swc-linux-x64-gnu': 14.2.3
235
+ '@next/swc-linux-x64-musl': 14.2.3
236
+ '@next/swc-win32-arm64-msvc': 14.2.3
237
+ '@next/swc-win32-ia32-msvc': 14.2.3
238
+ '@next/swc-win32-x64-msvc': 14.2.3
239
+ transitivePeerDependencies:
240
+ - '@babel/core'
241
+ - babel-plugin-macros
242
+ dev: false
243
+
244
245
+ resolution: {integrity: sha512-AyI1b3T5fp05gzf6WUmu2FNqaZL+Y7w88yBRLf7YZXF9bncUSHpnDrupnTGoPqy/RKHRLBcay7zWeqQ2wiMWcw==}
246
+ dependencies:
247
+ eventemitter3: 5.0.1
248
+ dev: false
249
+
250
251
+ resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
252
+ dev: false
253
+
254
255
+ resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==}
256
+ engines: {node: ^10 || ^12 || >=14}
257
+ dependencies:
258
+ nanoid: 3.3.8
259
+ picocolors: 1.1.1
260
+ source-map-js: 1.2.1
261
+ dev: false
262
+
263
264
+ resolution: {integrity: sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==}
265
+ peerDependencies:
266
+ react: ^18.3.1
267
+ dependencies:
268
+ loose-envify: 1.4.0
269
+ react: 18.3.1
270
+ scheduler: 0.23.2
271
+ dev: false
272
+
273
274
+ resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==}
275
+ engines: {node: '>=0.10.0'}
276
+ dependencies:
277
+ loose-envify: 1.4.0
278
+ dev: false
279
+
280
281
+ resolution: {integrity: sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==}
282
+ dependencies:
283
+ loose-envify: 1.4.0
284
+ dev: false
285
+
286
287
+ resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
288
+ engines: {node: '>=0.10.0'}
289
+ dev: false
290
+
291
292
+ resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==}
293
+ engines: {node: '>=10.0.0'}
294
+ dev: false
295
+
296
297
+ resolution: {integrity: sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==}
298
+ engines: {node: '>= 12.0.0'}
299
+ peerDependencies:
300
+ '@babel/core': '*'
301
+ babel-plugin-macros: '*'
302
+ react: '>= 16.8.0 || 17.x.x || ^18.0.0-0'
303
+ peerDependenciesMeta:
304
+ '@babel/core':
305
+ optional: true
306
+ babel-plugin-macros:
307
+ optional: true
308
+ dependencies:
309
+ client-only: 0.0.1
310
+ react: 18.3.1
311
+ dev: false
312
+
313
314
+ resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
315
+ dev: false
316
+
317
318
+ resolution: {integrity: sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==}
319
+ engines: {node: '>=14.17'}
320
+ hasBin: true
321
+ dev: true
322
+
323
324
+ resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==}
325
+ dev: true
src/game/config.ts CHANGED
@@ -3,12 +3,12 @@ import { MazeScene } from './scenes/MazeScene';
3
  export const gameConfig: Phaser.Types.Core.GameConfig = {
4
  type: Phaser.AUTO,
5
  parent: 'game-content',
6
- backgroundColor: '#4488aa',
7
  scale: {
8
  mode: Phaser.Scale.FIT,
9
  autoCenter: Phaser.Scale.CENTER_BOTH,
10
- width: 256, // 8 tiles * 32 pixels
11
- height: 256, // 8 tiles * 32 pixels
12
  },
13
  physics: {
14
  default: 'arcade',
 
3
  export const gameConfig: Phaser.Types.Core.GameConfig = {
4
  type: Phaser.AUTO,
5
  parent: 'game-content',
6
+ backgroundColor: '#000000',
7
  scale: {
8
  mode: Phaser.Scale.FIT,
9
  autoCenter: Phaser.Scale.CENTER_BOTH,
10
+ width: 800,
11
+ height: 600
12
  },
13
  physics: {
14
  default: 'arcade',
src/game/scenes/MazeScene.ts ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import Phaser from 'phaser';
2
+ import { EventBus } from '../EventBus';
3
+
4
+ export class MazeScene extends Phaser.Scene {
5
+ constructor() {
6
+ super({ key: 'MazeScene' });
7
+ }
8
+
9
+ create() {
10
+ // Exemple de création d'un texte simple
11
+ this.add.text(400, 300, 'Maze Game', {
12
+ fontSize: '32px',
13
+ color: '#fff'
14
+ }).setOrigin(0.5);
15
+
16
+ // Notifier React que la scène est prête
17
+ EventBus.emit('current-scene-ready', this);
18
+ }
19
+
20
+ update() {
21
+ // Logique de mise à jour du jeu
22
+ }
23
+ }