Start simulation on instance initialisation
This commit is contained in:
parent
816b39e11f
commit
26d92f7d5d
@ -14,6 +14,9 @@
|
||||
(defgeneric update (simulation dt))
|
||||
(defgeneric render (simulation))
|
||||
|
||||
(defmethod initialize-instance :after ((sim simulation) &key)
|
||||
(start sim))
|
||||
|
||||
(defmethod run ((sim simulation))
|
||||
(sdl2:make-this-thread-main
|
||||
(lambda ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user