mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-15 00:05:02 +00:00
14 lines
440 B
Text
14 lines
440 B
Text
platform "gui"
|
|
requires { Model } { program : _ }
|
|
exposes [Game]
|
|
packages {}
|
|
imports [Game.{ Bounds, Elem, Event }]
|
|
provides [programForHost]
|
|
|
|
# TODO allow changing the window title - maybe via a Task, since that shouldn't happen all the time
|
|
programForHost : {
|
|
init : (Bounds -> Model) as Init,
|
|
update : (Model, Event -> Model) as Update,
|
|
render : (Model -> List Elem) as Render,
|
|
}
|
|
programForHost = program
|