Testing out JmonkeyEngine to make a game in Scala with Akka Actors within a pure FP layer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
368 B

  1. package wow.doge.mygame.game.subsystems.ui
  2. import scala.concurrent.duration._
  3. import com.jayfella.jme.jfx.JavaFxUI
  4. import monix.bio.Task
  5. import wow.doge.mygame.game.SimpleAppExt
  6. object JFxUI {
  7. def apply(app: SimpleAppExt) =
  8. Task(JavaFxUI.initialize(app))
  9. .executeOn(app.scheduler) >> Task.sleep(500.millis) >> Task(
  10. JavaFxUI.getInstance()
  11. )
  12. }