Files
Buddho-Engine/src/main/sekai/core/gamestate.cljs
2024-03-17 18:39:02 +01:00

14 lines
214 B
Clojure

(ns sekai.core.gamestate)
(def empty-game-state
{:canvas nil
:entities {}
:tags {}
})
(defonce game-state
(atom empty-game-state))
(defn reset-game-state! []
(reset! game-state empty-game-state))