Skip to content

Commit b37d197

Browse files
committed
bumped fastj version to 1.6.0-SNAPSHOT-3
1 parent 21ec58e commit b37d197

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ plugins {
1111
* this, too. */
1212
id 'application'
1313
/* To create distributable files for your game, we use this jlink plugin. */
14-
id 'org.beryx.jlink' version '2.24.0'
14+
id 'org.beryx.jlink' version '2.24.4'
1515
}
1616

1717
/* Your project's group name goes here.
@@ -44,7 +44,9 @@ repositories.maven {
4444
repositories.mavenCentral()
4545

4646
/* The dependency for FastJ, the game engine this template depends on. */
47-
dependencies.implementation('com.github.fastjengine:FastJ:1.5.0')
47+
dependencies.implementation('com.github.fastjengine:FastJ:1.6.0-SNAPSHOT-3')
48+
/* We'll stick with the simplest logging option for now -- you can change it however you need. */
49+
dependencies.implementation('org.slf4j:slf4j-simple:2.0.0-alpha3')
4850

4951

5052
/* JLink is used to configure the executables and other distributions for your project. */

src/main/java/tech/fastj/template/Game.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package tech.fastj.template;
22

33
import tech.fastj.engine.FastJEngine;
4-
import tech.fastj.graphics.display.Display;
4+
import tech.fastj.graphics.display.FastJCanvas;
55
import tech.fastj.graphics.display.RenderSettings;
66
import tech.fastj.graphics.game.Text2D;
77

@@ -10,18 +10,18 @@
1010
public class Game extends SimpleManager {
1111

1212
@Override
13-
public void init(Display display) {
13+
public void init(FastJCanvas canvas) {
1414
/* Some crispy anti-aliasing for the road. */
15-
display.modifyRenderSettings(RenderSettings.Antialiasing.Enable);
15+
canvas.modifyRenderSettings(RenderSettings.Antialiasing.Enable);
1616

1717
/* A very simple Text2D object, welcoming you to FastJ! */
18-
Text2D helloFastJText = Text2D.fromText("Hello, FastJ 1.5.0!");
19-
helloFastJText.translate(display.getScreenCenter());
18+
Text2D helloFastJText = Text2D.fromText("Hello, FastJ 1.6.0!");
19+
helloFastJText.translate(canvas.getCanvasCenter());
2020
drawableManager.addGameObject(helloFastJText);
2121
}
2222

2323
@Override
24-
public void update(Display display) {
24+
public void update(FastJCanvas canvas) {
2525
}
2626

2727
public static void main(String[] args) {

0 commit comments

Comments
 (0)