From 6f4a23423dc759a7979d3ec6de3b61ee5464103b Mon Sep 17 00:00:00 2001 From: Simon Brooke Date: Thu, 18 Nov 2021 14:22:46 +0000 Subject: [PATCH] Game launches and exits cleanly, nothing actually works. --- src/clj/cc/journeyman/climate_game/core.clj | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/clj/cc/journeyman/climate_game/core.clj b/src/clj/cc/journeyman/climate_game/core.clj index 023a9db..7531cc4 100644 --- a/src/clj/cc/journeyman/climate_game/core.clj +++ b/src/clj/cc/journeyman/climate_game/core.clj @@ -3,8 +3,16 @@ (:require [cc.journeyman.climate-game.planet.geometry :refer [init-planet]] [jme-clj.core :refer [add-light-to-root add-to-root box defsimpleapp generate geo get* light load-texture material rotate set* sphere start vec3]]) - (:import [cc.journeyman.climate_game ClimateGameApp])) + (:import [cc.journeyman.climate_game ClimateGameApp]) + (:gen-class)) -(def app (ClimateGameApp.)) -(start app) \ No newline at end of file +(defn -main + "This should be pretty simple." + [& args] + (let [app (ClimateGameApp.)] + (try + (start app) + (catch Exception any + (println (.getMessage any)))))) +