package elm_playground_gamekits

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

elm_playground_gamekits

What the games of a genre share, written from scratch for teaching: how each genre works, a kit per genre, one idea per module. They are above the Elm Playground, most of them drawing with it, and use the from-scratch libraries of tiny_libs (ai, audio).

Each is a library of its own, named elm_playground_gamekits.<name> outside this repository, for example in a dune file:

(executable
 (name main)
 (libraries elm_playground elm_playground_native
            elm_playground_gamekits.kit_platformer))

The libraries are unwrapped: their modules are used by their own names, Tile_move, Ladder.

Shoot 'em ups

Shots as values that move, the curves enemies fly along (elm_playground_gamekits.kit_shmup):

Fighting games

Hit boxes, a move's frames, fighters as stick figures (elm_playground_gamekits.kit_brawler); and in 3D, a fighter as a skeleton of boxes (elm_playground_gamekits.kit_brawler3d):

Platformers

A box moved against a tilemap, ladders, shaped ground felt by sensors (elm_playground_gamekits.kit_platformer); Crush's slices (elm_playground_gamekits.kit_crush):

Mazes and arenas

A grid's corridors and the ways chosen in them (elm_playground_gamekits.kit_maze); Tron's light cycles (elm_playground_gamekits.kit_lightcycles):

Puzzles

Pushing on a grid, going back, Sokoban's rules, levels and solver (elm_playground_gamekits.kit_puzzle):

Cards

The 52 cards, Microsoft's numbered deals, a card drawn (elm_playground_gamekits.kit_cards):

Adventures

The world as data and the player's sentences answered by rules (elm_playground_gamekits.kit_adventure):

Racing

The road and a car on it, a car on a flat world or on ground with a height (elm_playground_gamekits.kit_racing); and in 3D, a course as a ribbon of quads (elm_playground_gamekits.kit_racing3d):

Sports

The ball pushed ahead, a side keeping its shape (elm_playground_gamekits.kit_sports):

Strategy

The three kinds of order and the walking (elm_playground_gamekits.kit_rts):

Rhythm games

The music's clock, the grades, charts played and made (elm_playground_gamekits.kit_rhythm):

The worlds of 2.5D and 3D games

Doom's sectors (elm_playground_gamekits.kit_sectors), Descent's mine and its ship (elm_playground_gamekits.kit_segments), Comanche's terrain (elm_playground_gamekits.kit_heightmap), a world seen from one fixed angle (elm_playground_gamekits.kit_isometric):