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.

30 lines
856 B

4 years ago
4 years ago
3 years ago
3 years ago
  1. package wow.doge.mygame.game
  2. // class GameAppResource(
  3. // logger: Logger[Task],
  4. // jmeScheduler: Scheduler,
  5. // schedulers: Schedulers
  6. // ) {
  7. // def get: Resource[Task, GameApp] =
  8. // Resource.make(
  9. // for {
  10. // _ <- logger.info("Creating game app")
  11. // appExt <- Task(new SimpleAppExt(schedulers, new StatsAppState()))
  12. // app <- Task {
  13. // val settings = new AppSettings(true)
  14. // settings.setVSync(true)
  15. // /**
  16. // * disables the launcher
  17. // * We'll be making our own launcher anyway
  18. // */
  19. // appExt.setShowSettings(false)
  20. // appExt.setSettings(settings)
  21. // // JMERunner.runner = app
  22. // new GameApp(logger, appExt)
  23. // }
  24. // } yield (app)
  25. // )(_ => logger.info("Closing game app"))
  26. // }