switchable screen size.

This commit is contained in:
Bryce Covert
2015-07-25 13:37:01 -07:00
parent ed7d6c457e
commit 964cdf6fa8
4 changed files with 26 additions and 6 deletions

View File

@@ -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))