11 lines
398 B
Plaintext
11 lines
398 B
Plaintext
(defprop &mut firstDraw true)
|
|
|
|
(defmethod new [] 0)
|
|
|
|
(defmethod :Void initialize [:Assets assets]
|
|
(assets.loadSurface "laptop" AssetPaths.laptop__srf))
|
|
(defmethod :Void update [:Game game :Float deltaSeconds] 0)
|
|
(defmethod :Void draw [:Void->Graphics graphics :Assets assets]
|
|
(when firstDraw
|
|
(set firstDraw false)
|
|
(.blitSurface (graphics) (assets.getSurface "laptop") 0 0))) |