Skip to content

Commit e477d3c

Browse files
Move things around a bit
1 parent 9070063 commit e477d3c

File tree

10 files changed

+21
-27
lines changed

10 files changed

+21
-27
lines changed

assets/test.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
local Gdx = luajava.bindClass("com.badlogic.gdx.Gdx")
22
local Input = luajava.bindClass("com.badlogic.gdx.Input")
33
local Funkin = luajava.bindClass("me.stringfromjava.funkin.Funkin")
4-
local Paths = luajava.bindClass("me.stringfromjava.funkin.util.Paths")
4+
local Paths = luajava.bindClass("me.stringfromjava.funkin.backend.system.Paths")
55
local Sprite = luajava.bindClass("com.badlogic.gdx.graphics.g2d.Sprite")
66
local Texture = luajava.bindClass("com.badlogic.gdx.graphics.Texture")
77

core/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dependencies {
99
api "io.github.libktx:ktx-freetype:$ktxVersion"
1010
api "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
1111
api "org.mini2Dx:universal-tween-engine:$universalTweenVersion"
12-
implementation 'org.luaj:luaj-jse:3.0.1'
12+
implementation "org.luaj:luaj-jse:3.0.1"
1313

1414
if(enableGraalNative == 'true') {
1515
implementation "io.github.berstanio:gdx-svmhelper-annotations:$graalHelperVersion"

core/src/main/java/me/stringfromjava/funkin/Funkin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import me.stringfromjava.funkin.backend.display.FunkinScreen;
88
import me.stringfromjava.funkin.lua.FunkinLua;
99
import me.stringfromjava.funkin.tween.FunkinTween;
10-
import me.stringfromjava.funkin.util.FunkinSignal;
11-
import me.stringfromjava.funkin.util.Paths;
10+
import me.stringfromjava.funkin.backend.system.FunkinSignal;
11+
import me.stringfromjava.funkin.backend.system.Paths;
1212

1313
import java.util.HashMap;
1414
import java.util.Map;

core/src/main/java/me/stringfromjava/funkin/FunkinGame.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* An enhanced version of libGDX's {@link Game} object.
1212
* <p>
1313
* If you want to change what happens to the pre and window
14-
* configurations, you might want to see {@link me.stringfromjava.funkin.lwjgl3.Lwjgl3Launcher} in the
14+
* configurations, you might want to see {@code Lwjgl3Launcher} in the
1515
* {@code lwjgl3} folder.
1616
*/
1717
public class FunkinGame extends Game {

core/src/main/java/me/stringfromjava/funkin/audio/FunkinSound.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import com.badlogic.gdx.audio.Sound;
55
import com.badlogic.gdx.files.FileHandle;
66
import me.stringfromjava.funkin.Funkin;
7-
import me.stringfromjava.funkin.util.Paths;
7+
import me.stringfromjava.funkin.backend.system.Paths;
88

99
/**
1010
* An enhanced version of libGDX's {@link Sound}.

core/src/main/java/me/stringfromjava/funkin/util/FunkinSignal.java renamed to core/src/main/java/me/stringfromjava/funkin/backend/system/FunkinSignal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package me.stringfromjava.funkin.util;
1+
package me.stringfromjava.funkin.backend.system;
22

33
import java.util.ArrayList;
44

core/src/main/java/me/stringfromjava/funkin/util/Paths.java renamed to core/src/main/java/me/stringfromjava/funkin/backend/system/Paths.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package me.stringfromjava.funkin.util;
1+
package me.stringfromjava.funkin.backend.system;
22

33
import com.badlogic.gdx.Gdx;
44
import com.badlogic.gdx.files.FileHandle;

core/src/main/java/me/stringfromjava/funkin/game/InitScreen.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@ public class InitScreen extends FunkinScreen {
99
@Override
1010
public void show() {
1111
super.show();
12-
System.out.println("setup complete");
13-
Funkin.setScreen(new TitleScreen());
14-
}
1512

16-
@Override
17-
public void render(float delta) {
18-
super.render(delta);
13+
Funkin.setScreen(new TitleScreen());
1914
}
2015
}

lwjgl3/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ dependencies {
3838

3939
if(enableGraalNative == 'true') {
4040
implementation "io.github.berstanio:gdx-svmhelper-backend-lwjgl3:$graalHelperVersion"
41-
42-
}
41+
}
4342
}
4443

4544
def os = System.properties['os.name'].toLowerCase()

lwjgl3/src/main/java/me/stringfromjava/funkin/lwjgl3/Lwjgl3Launcher.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,25 @@ public static void main(String[] args) {
2121
private static Lwjgl3Application createApplication() {
2222
FunkinGame game = new FunkinGame();
2323
Funkin.initialize(game); // This is VERY important to do before creating the application!
24-
return new Lwjgl3Application(game, getDefaultConfiguration());
24+
return new Lwjgl3Application(game, createWindowConfiguration());
2525
}
2626

27-
private static Lwjgl3ApplicationConfiguration getDefaultConfiguration() {
27+
private static Lwjgl3ApplicationConfiguration createWindowConfiguration() {
2828
Lwjgl3ApplicationConfiguration configuration = new Lwjgl3ApplicationConfiguration();
2929
configuration.setTitle("Friday Night Funkin': Java Edition");
30-
//// Vsync limits the frames per second to what your hardware can display, and helps eliminate
31-
//// screen tearing. This setting doesn't always work on Linux, so the line after is a safeguard.
30+
// Vsync limits the frames per second to what your hardware can display, and helps eliminate
31+
// screen tearing. This setting doesn't always work on Linux, so the line after is a safeguard.
3232
configuration.useVsync(true);
33-
//// Limits FPS to the refresh rate of the currently active monitor, plus 1 to try to match fractional
34-
//// refresh rates. The Vsync setting above should limit the actual FPS to match the monitor.
33+
// Limits FPS to the refresh rate of the currently active monitor, plus 1 to try to match fractional
34+
// refresh rates. The Vsync setting above should limit the actual FPS to match the monitor.
3535
configuration.setForegroundFPS(Lwjgl3ApplicationConfiguration.getDisplayMode().refreshRate + 1);
36-
//// If you remove the above line and set Vsync to false, you can get unlimited FPS, which can be
37-
//// useful for testing performance, but can also be very stressful to some hardware.
38-
//// You may also need to configure GPU drivers to fully disable Vsync; this can cause screen tearing.
36+
// If you remove the above line and set Vsync to false, you can get unlimited FPS, which can be
37+
// useful for testing performance, but can also be very stressful to some hardware.
38+
// You may also need to configure GPU drivers to fully disable Vsync; this can cause screen tearing.
3939

4040
configuration.setWindowedMode(Constants.Display.WINDOW_WIDTH, Constants.Display.WINDOW_HEIGHT);
41-
//// You can change these files; they are in lwjgl3/src/main/resources/ .
42-
//// They can also be loaded from the root of assets/ .
41+
// You can change these files; they are in lwjgl3/src/main/resources/ .
42+
// They can also be loaded from the root of assets/ .
4343
configuration.setWindowIcon("icon128.png", "icon64.png", "icon32.png", "icon16.png");
4444
return configuration;
4545
}

0 commit comments

Comments
 (0)