Skip to content

Commit

Permalink
Better init.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinmera committed Nov 8, 2018
1 parent 989b228 commit 989bf87
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.lisp
Expand Up @@ -71,6 +71,7 @@
(:default-initargs :name :untitled))

(defmethod initialize-instance :after ((level empty-level) &key)
(enter (make-instance 'player :location (vec 8 8)) level)
(enter (make-instance 'chunk :size (cons 16 16)) level))
(enter (make-instance 'parallax) level)
(enter (make-instance 'player :location (vec 64 64)) level)
(enter (make-instance 'chunk :size (cons 64 64)) level))

0 comments on commit 989bf87

Please sign in to comment.