FAZA 0: Initial project setup - Electron + Phaser configuration

This commit is contained in:
2025-12-06 17:47:56 +01:00
commit cdcd7f8bc6
9 changed files with 502 additions and 0 deletions

34
src/game.js Normal file
View File

@@ -0,0 +1,34 @@
// Phaser Game Configuration
const config = {
type: Phaser.AUTO,
width: 1280,
height: 720,
parent: 'game-container',
backgroundColor: '#1a1a2e',
pixelArt: true,
antialias: false,
roundPixels: true,
physics: {
default: 'arcade',
arcade: {
gravity: { y: 0 },
debug: false
}
},
scene: [BootScene, PreloadScene, GameScene],
scale: {
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_BOTH
}
};
// Initialize game
const game = new Phaser.Game(config);
// Global game state
window.gameState = {
currentScene: null,
debugMode: true
};
console.log('🎮 NovaFarma initialized!');