play-clj

Jacob Rosenzweig 2022-01-08T21:05:00.000500Z

Does anyone know how to change the height and width of the game window itself? I don't think it's (size!)

Melody 2025-03-04T17:59:53.506359Z

tbh I was having trouble getting play-clj to work a while ago but I wanted to try again soon. Have you tried messing :width or :height?

; input/output

(defn game
  "Provides quick access to often-used functions.  
  (game :width)"
  [k & [arg]]
  (case k
    :width (graphics! :get-width)
    :height (graphics! :get-height)
    :fps (graphics! :get-frames-per-second)
    :fullscreen? (graphics! :is-fullscreen)
    :touched? (input! :is-touched)
    :x (input! :get-x (or arg 0))
    :y (- (graphics! :get-height) (input! :get-y (or arg 0)))
    :point-x (game :x arg)
    :point-y (game :y arg)
    (u/throw-key-not-found k)))