Module World

module World: sig .. end
World module
See also Racket Documentation

type ('a, 'b) t = 
| World of 'a (*
'a is the type of world states
*)
| Package of 'a * 'b (*
'a is the type of world states, 'b is the type of messages
*)
val big_bang : ?name:string ->
?width:int ->
?height:int ->
?to_draw:('a -> Image.t) ->
?on_tick:('a -> ('a, 'b) t) ->
?on_mouse:('a -> float -> float -> string -> ('a, 'c) t) ->
?on_key_press:('a -> string -> ('a, 'd) t) ->
?on_key_release:('a -> string -> ('a, 'e) t) ->
?rate:float ->
?stop_when:('a -> bool) ->
?to_draw_last:('a -> Image.t) ->
?register:string * string ->
?on_receive:('a -> 'f -> ('a, 'g) t) -> 'a -> unit
starts a game after receiving the following arguments (the last argument of type 'a is mandatory)