switchable screen size.
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
(:require [advent.core :refer :all]
|
||||
[clojure.tools.nrepl.server])
|
||||
(:import [com.badlogic.gdx.backends.lwjgl LwjglApplication LwjglApplicationConfiguration]
|
||||
[org.lwjgl.input Keyboard])
|
||||
[org.lwjgl.input Keyboard]
|
||||
[com.badlogic.gdx Gdx])
|
||||
(:gen-class))
|
||||
|
||||
(defmacro start-nrepl-expr [port]
|
||||
@@ -14,6 +15,8 @@
|
||||
(spit port#)))
|
||||
(println "Started nREPL server on port" port#)))
|
||||
|
||||
|
||||
|
||||
(defn -main
|
||||
[& [port]]
|
||||
(when port (start-nrepl-expr (Integer/parseInt port)))
|
||||
@@ -26,4 +29,5 @@
|
||||
(LwjglApplication. advent "advent" 1280 960))
|
||||
|
||||
|
||||
|
||||
(Keyboard/enableRepeatEvents true))
|
||||
|
||||
Reference in New Issue
Block a user