package elm_playground_gamekits

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module CrushSource

Sourcetype level = {
  1. name : string;
  2. hint : string;
  3. slices : string list list;
}
Sourceval levels : level array
Sourceval tile : Playground.number
Sourceval nx : level -> int
Sourceval ny : level -> int
Sourceval nz : level -> int
Sourceval cell : level -> int -> int -> int -> char
Sourceval across : level -> int -> int
Sourceval deep_n : level -> int -> int
Sourceval at : int -> int -> int -> int * int
Sourceval project : level -> int -> int -> int -> char
Sourceval plane : level -> int -> bool -> int -> Tilemap.t
Sourcetype play = {
  1. level : int;
  2. view : int;
  3. crushed : bool;
  4. squash : Playground.number;
  5. u : Playground.number;
  6. y : Playground.number;
  7. depth : int;
  8. vx : Playground.number;
  9. vy : Playground.number;
  10. ground : bool;
  11. message : string;
}
Sourceval size : Playground.number * Playground.number
Sourceval enter : int -> play
Sourceval current : play -> Tilemap.t
Sourceval crush : play -> play
Sourceval uncrush : play -> play
Sourceval turn : play -> play
Sourcetype input = {
  1. dx : Playground.number;
  2. jump : bool;
  3. step_deep : int;
  4. crush_key : bool;
  5. turn_key : bool;
}
Sourceval nothing : input
Sourceval read_input : ((Playground.keyboard -> bool) -> bool) -> Playground.keyboard -> input
Sourceval step : input -> play -> play
Sourceval fell : play -> bool
Sourceval at_exit : play -> bool
Sourcetype outcome =
  1. | Going of play
  2. | Next_level of play
  3. | Finished
Sourceval frame : input -> play -> outcome