Skip to content

Commit

Permalink
bumped fastj version to 1.6.0-SNAPSHOT-3
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasstarsz committed Dec 21, 2021
1 parent d6f3ec8 commit 6f1ba23
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
16 changes: 9 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ plugins {
* this, too. */
application
/* To create distributable files for your game, we use this runtime plugin. */
id("org.beryx.runtime") version "1.12.5"
id("org.beryx.runtime") version "1.12.7"
}

/* Your project"s group name goes here.
/* Your project's group name goes here.
* This should be a domain name you own.
* If you don"t own a domain, don"t worry! You can always set this to "io.github.yourgithubusername". */
* If you don't own a domain, don"t worry! You can always set this to "io.github.yourgithubusername". */
group = "io.github.yourgithubusername"

/* Your project"s version.
/* Your project's version.
* When you want to distribute a new version of your project, always make sure to update the
* project version. */
version = "0.0.1"

/* Your project"s description.
/* Your project's description.
* Give a one or two sentence description of your project -- if you publish it somewhere, you"ll be
* able to use it. */
description = "A Java Template for FastJ."
description = "A Kotlin Template for FastJ."

/* Here, we specify where the main entrypoint of the project.
* Feel free to change this as needed. */
Expand All @@ -43,7 +43,9 @@ repositories.maven {
repositories.mavenCentral()

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

/* To make Kotlin compile and run properly with Gradle, this adds your Kotlin code to the Java
* source sets. */
Expand Down
12 changes: 6 additions & 6 deletions src/main/kotlin/tech/fastj/template/Game.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package tech.fastj.template

import tech.fastj.engine.FastJEngine
import tech.fastj.graphics.display.Display
import tech.fastj.graphics.display.FastJCanvas
import tech.fastj.graphics.display.RenderSettings
import tech.fastj.graphics.game.Text2D
import tech.fastj.systems.control.SimpleManager
Expand All @@ -12,17 +12,17 @@ fun main() {
}

class Game : SimpleManager() {
override fun init(display: Display?) {
override fun init(canvas: FastJCanvas) {
/* Some crispy anti-aliasing for the road. */
display?.modifyRenderSettings(RenderSettings.Antialiasing.Enable)
canvas.modifyRenderSettings(RenderSettings.Antialiasing.Enable)

/* A very simple Text2D object, welcoming you to FastJ! */
val helloFastJText = Text2D.fromText("Hello, FastJ 1.5.0!")
helloFastJText.translate(display?.screenCenter)
val helloFastJText = Text2D.fromText("Hello, FastJ 1.6.0!")
helloFastJText.translate(canvas.canvasCenter)
drawableManager.addGameObject(helloFastJText)
}

override fun update(display: Display?) {
override fun update(canvas: FastJCanvas?) {
}
}

0 comments on commit 6f1ba23

Please sign in to comment.