feat: initial Regnum project structure (Vue3 + Phaser3 + Socket.io)

This commit is contained in:
kevin.lhereec committed 2026-08-17 11:34:55 +02:00
commit 1db221e468
23 files changed
+1265

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
import Phaser from 'phaser'
export class BootScene extends Phaser.Scene {
constructor() {
super('BootScene')
}
preload() {
// Créer des textures procédurales pour les cartes
const graphics = this.add.graphics()
// Fond de carte
graphics.fillStyle(0x2a1500)
graphics.fillRoundedRect(0, 0, 120, 180, 10)
graphics.lineStyle(2, 0xd4a732)
graphics.strokeRoundedRect(0, 0, 120, 180, 10)
graphics.generateTexture('card-back', 120, 180)
graphics.clear()
// Carte face
graphics.fillStyle(0x3a2010)
graphics.fillRoundedRect(0, 0, 120, 180, 10)
graphics.lineStyle(2, 0xd4a732)
graphics.strokeRoundedRect(0, 0, 120, 180, 10)
graphics.generateTexture('card-front', 120, 180)
graphics.destroy()
}
create() {
this.scene.start('GameScene')
}
}