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_lightcycles/Lightcycles/index.html

Module LightcyclesSource

Sourceval size : int
Sourceval cell : Playground.number
Sourcetype layout = string * string list
Sourceval layouts : layout list
Sourceval arena_of : layout -> Tilemap.t
Sourcetype dir =
  1. | Up
  2. | Down
  3. | Left
  4. | Right
Sourceval delta : dir -> int * int
Sourceval opposite : dir -> dir
Sourcetype cycle = {
  1. col : int;
  2. row : int;
  3. dir : dir;
  4. wanted : dir;
  5. mark : char;
  6. corners : (int * int) list;
  7. alive : bool;
  8. energy : int;
  9. boosting : bool;
}
Sourcetype round = {
  1. arena : Tilemap.t;
  2. cycles : cycle list;
  3. over : int list option;
  4. pause : int;
  5. frames : int;
}
Sourcetype brain =
  1. | Room of int
  2. | Search of int
Sourcetype settings = {
  1. riders : int;
  2. humans : int;
  3. brain : brain;
  4. arenas : layout list;
}
Sourcetype game = {
  1. round : round;
  2. scores : int list;
  3. settings : settings;
  4. round_no : int;
}
Sourcetype scene =
  1. | Title
  2. | Playing of game
  3. | Winner of game
Sourcetype model = scene Scene2d.t
Sourceval initial_model : model
Sourceval step : int
Sourceval rounds_to_win : int
Sourceval boost_max : int
Sourceval new_game : settings -> game
Sourceval update_game : Playground.keyboard -> game -> game
Sourceval winner : game -> int option
Sourceval update : Playground.computer -> model -> model
Sourceval room : Tilemap.t -> (int * int) -> int -> int
Sourceval computer_turn : ?limit:int -> Tilemap.t -> cycle -> dir
Sourceval voronoi : ((int * int) -> bool) -> (int * int) -> (int * int) -> int
Sourceval search_turn : depth:int -> Tilemap.t -> cycle list -> int -> dir