22 lines
549 B
Fennel
22 lines
549 B
Fennel
(local util (require :lib.util))
|
|
(local modes (require :editor.lovemode))
|
|
(local ModeView (require :editor.modeview))
|
|
(local state (require :game.state))
|
|
(local core (require :core))
|
|
(local command (require :core.command))
|
|
|
|
(local gamemode (require :game.mode))
|
|
(modes:register :game gamemode)
|
|
|
|
(set state.entities
|
|
[((require :game.entities.bomberman) 20 20)
|
|
((require :game.entities.pacman) 350 350)])
|
|
|
|
(command.add nil {
|
|
"love:game" (fn []
|
|
(let [node (core.root_view:get_active_node)]
|
|
(node:add_view (ModeView gamemode))))
|
|
})
|
|
|
|
{}
|