From dfbe8476aa6323bf1d9e699b5e08165a8403b21c Mon Sep 17 00:00:00 2001 From: Minteck Date: Thu, 10 Jun 2021 22:00:49 +0200 Subject: (Pre)final commit ! --- app.js | 9 +---- index.html | 3 +- kartik.bat | 2 +- online/server.json | 2 +- package.json | 2 +- views/credits.html | 9 +++-- views/menu.html | 2 +- views/script/core_chart.js | 26 +++++++++++-- views/script/core_music.js | 89 ++++++++++++++++++++++---------------------- views/script/credits_libs.js | 6 +-- 10 files changed, 82 insertions(+), 68 deletions(-) diff --git a/app.js b/app.js index da35e78..71578af 100644 --- a/app.js +++ b/app.js @@ -217,7 +217,7 @@ const { app, BrowserWindow } = require('electron'); }) global.shouldExitIfClosed = true; - win.hide(); + console.log(" * Starting IPC engine"); win.pwidth = Math.round(720 * scale); @@ -241,12 +241,7 @@ const { app, BrowserWindow } = require('electron'); win.music = fs.readFileSync(homedir + "/.kartik/config/music.txt").toString().trim() === "1"; win.voice = fs.readFileSync(homedir + "/.kartik/config/voice.txt").toString().trim() === "2"; - // TODO: Enable online mode when stable - if (dimga === "stable") { - win.online = false; - } else { - win.online = fs.readFileSync(homedir + "/.kartik/config/online.txt").toString().trim() === "1"; - } + win.online = fs.readFileSync(homedir + "/.kartik/config/online.txt").toString().trim() === "1"; win.resources = resources; global.currentSongValue = null; diff --git a/index.html b/index.html index 4cdc345..86375d0 100644 --- a/index.html +++ b/index.html @@ -86,9 +86,8 @@ diff --git a/kartik.bat b/kartik.bat index a343c70..6cf0b2f 100644 --- a/kartik.bat +++ b/kartik.bat @@ -1,2 +1,2 @@ @echo off -bin\win32\kartik-core.exe app.js \ No newline at end of file +bin\win32\kartik-core.exe app.js diff --git a/online/server.json b/online/server.json index 19726bf..905621c 100644 --- a/online/server.json +++ b/online/server.json @@ -1,4 +1,4 @@ { - "hostname": "192.168.1.51", + "hostname": "kartik.hopto.org", "port": 8448 } diff --git a/package.json b/package.json index f1485c6..d797f9d 100644 --- a/package.json +++ b/package.json @@ -1 +1 @@ -{"name":"kartik","version":"634dc4c","channel":"git","description":"A multiplatform 2D karting game","main":"app.js","dependencies":{"@electron/remote":"^1.0.4","discord-rpc":"^3.2.0","electron":"^12.0.1","ini":"^1.3.8","jquery":"^3.6.0","os-locale":"^5.0.0","uuid":"^8.3.2","yaml":"^1.10.2"},"scripts":{"test":"node_modules\\electron\\dist\\electron.exe app.js"},"author":"Minteck Projects","license":"GPL-3.0-or-later","serial":"XXX99999999999"} \ No newline at end of file +{"name":"kartik","version":"3e62534","channel":"git","description":"A multiplatform 2D karting game","main":"app.js","dependencies":{"@electron/remote":"^1.0.4","discord-rpc":"^3.2.0","electron":"^12.0.1","ini":"^1.3.8","jquery":"^3.6.0","os-locale":"^5.0.0","uuid":"^8.3.2","yaml":"^1.10.2"},"scripts":{"test":"node_modules\\electron\\dist\\electron.exe app.js"},"author":"Minteck Projects","license":"GPL-3.0-or-later","serial":"XXX99999999999"} \ No newline at end of file diff --git a/views/credits.html b/views/credits.html index e3ff9f9..46978b6 100644 --- a/views/credits.html +++ b/views/credits.html @@ -39,10 +39,13 @@ -

Kartik, a 2D car race game

-

© Minteck Projects. All assets are licensed under their original license rather than Kartik's license.

+

Kartik, a 2D car racing game

+

© Minteck Projects/Cutefox Studios. All assets are licensed under their original license rather than Kartik's license.

+ made by
+ +

Lead

Minteck

@@ -184,7 +187,7 @@

Minteck
Romain
Redman 054
Oxymillion

Libraries

-

+
diff --git a/views/menu.html b/views/menu.html index 0c6849f..661d397 100644 --- a/views/menu.html +++ b/views/menu.html @@ -41,7 +41,7 @@