FAZA 0: Initial project setup - Electron + Phaser configuration
This commit is contained in:
34
src/game.js
Normal file
34
src/game.js
Normal 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!');
|
||||
Reference in New Issue
Block a user