(make room-map start-room)
(make room-map start-room inventory)
Make a new game state based on a room map and an optional initial inventory set.
Make a new game state based on a room map and an optional initial inventory set.
(process-input game-state input)
Take an input comand, find the verb in it and execute its action handler.
Take an input comand, find the verb in it and execute its action handler.
(run game-state finished? & {:as extras})
Run the game loop. Requires a finished? function to decide when to terminate the loop. The rest of the parameters are configuration key/values.
Run the game loop. Requires a finished? function to decide when to terminate the loop. The rest of the parameters are configuration key/values.
(use-plugin gs plugin-spec)
Merges the given plugin spec into the given game configuration.
Merges the given plugin spec into the given game configuration.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close