package elm_playground_gamekits

  1. Overview
  2. Docs
Genre kits for Playground games: platformers, racing, shoot 'em ups, fighting and more

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.3.6.tar.gz
md5=7c636383d146d30ac6f2fa234a6253c8
sha512=c79f3823c5f8f57e5038eb640d487c61168b84aa07c61999d6622ef9fd0c890e2b03b4c6a7cdbbe9352a49e25dda00ac7bb14693cee8e3d7beeed251351a2af0

doc/elm_playground_gamekits.kit_crush/Crush/index.html

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