edtris/game/init.fnl

27 lines
700 B
Plaintext
Raw Permalink Normal View History

2021-02-07 21:56:19 +00:00
(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))
(local SpaceOrb (require :game.orb))
(local map (require :game.tilemap))
(local tile (require :game.tiles))
(local bomberman (require :game.entities.bomberman))
2021-04-12 02:01:34 +00:00
(local pacman (require :game.entities.pacman))
(local rules (require :game.rules))
2021-02-07 21:56:19 +00:00
(modes:register :game gamemode)
2022-04-24 23:39:15 +00:00
(rules.reset-game)
2021-02-07 21:56:19 +00:00
(command.add nil {
"love:game" (fn []
(let [node (core.root_view:get_active_node)]
(node:add_view (ModeView gamemode))))
})
{}