Update GrassScene: S1 Max Logic, Infinite Grass mode, new assets (visoka_trava_v2), physics enabled. Time: 15:15

This commit is contained in:
2026-01-26 15:15:38 +01:00
parent d8f24f9588
commit 3b0c26fa5a
11 changed files with 367 additions and 102 deletions

48
main.js Normal file
View File

@@ -0,0 +1,48 @@
const { app, BrowserWindow, ipcMain } = require('electron');
const path = require('path');
const fs = require('fs');
let mainWindow;
function createWindow() {
mainWindow = new BrowserWindow({
width: 1280,
height: 720,
webPreferences: {
nodeIntegration: true,
contextIsolation: false
},
backgroundColor: '#000000',
title: 'Mrtva Dolina - Death Valley'
});
mainWindow.loadFile('index.html');
mainWindow.webContents.openDevTools();
mainWindow.on('closed', () => {
mainWindow = null;
});
}
ipcMain.on('log-action', (event, message) => {
console.log('[LOG]', message);
});
app.whenReady().then(() => {
createWindow();
app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) {
createWindow();
}
});
// Handle security warnings
process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true';
});
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit();
}
});