File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
src/main/java/tech/fastj/template Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff 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 {
4444repositories. 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. */
Original file line number Diff line number Diff line change 11package tech .fastj .template ;
22
33import tech .fastj .engine .FastJEngine ;
4- import tech .fastj .graphics .display .Display ;
4+ import tech .fastj .graphics .display .FastJCanvas ;
55import tech .fastj .graphics .display .RenderSettings ;
66import tech .fastj .graphics .game .Text2D ;
77
1010public 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 ) {
You can’t perform that action at this time.
0 commit comments