lol
This commit is contained in:
29
nova farma/game.js
Normal file
29
nova farma/game.js
Normal file
@@ -0,0 +1,29 @@
|
||||
// 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);
|
||||
Reference in New Issue
Block a user