 (def ball-size (* 0.04 (:w canvas-size)))
 
 (def init-paddle-y
-  "Start the paddles centered vertically."
-  (let [scr-half-y    (/ (:h canvas-size) 2)
-        paddle-half-y (/ (:h paddle-size) 2)]
-    (- scr-half-y paddle-half-y)))
+  (- (:hh canvas-size) (/ (:h paddle-size) 2)))
 
 (def colours {:bg     "#699D32"
               :paddle "#2A7E77"

      :initial-state {:entities     [background player-paddle ai-paddle ball]
                      :mouse-coords [0 0]}

      :on-tick      update-state
      :on-mousemove (partial update-mouse-coords canvas)
      :event-target canvas
      :to-draw      (partial render-scene ctx)))))

(enable-console-print!)

;; Globals ----------------------------------------------------------
(def canvas-size
  (let [[w h] [646 400]]
    {:w w
     :h h
     :hw (/ w 2)
     :hh (/ h 2)}))

(def paddle-offset 12)

