30 lines
718 B
JavaScript
30 lines
718 B
JavaScript
// Disable Electron Security Warnings
|
|
if (typeof process !== 'undefined' && process.env) {
|
|
process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = 'true';
|
|
}
|
|
|
|
import GrassScene from './scenes/GrassScene_Clean.js';
|
|
import UIScene from './scenes/UIScene.js';
|
|
|
|
const config = {
|
|
type: Phaser.AUTO,
|
|
width: 1920,
|
|
height: 1080,
|
|
scale: {
|
|
mode: Phaser.Scale.FIT,
|
|
autoCenter: Phaser.Scale.CENTER_BOTH
|
|
},
|
|
backgroundColor: '#1a1a1a', // Temno siva, da slika izstopa
|
|
parent: 'body',
|
|
physics: {
|
|
default: 'arcade',
|
|
arcade: {
|
|
debug: false,
|
|
gravity: { y: 0 }
|
|
}
|
|
},
|
|
scene: [GrassScene, UIScene]
|
|
};
|
|
|
|
const game = new Phaser.Game(config);
|