layers-game: A prototypical 2d platform game.

[ bsd3, game, program ] [ Propose Tags ]

A prototypical 2d platform game

Player Controls

left/right arrow key = moving left/right
space/up arrow key   = jumping
tab key              = switch layer
q/escape key         = exit game

Flags

-e --editmode             Start layers in edit mode
-l --loadlevelsfrom=FILE  Load levels from file
-s --savelevelsto=FILE    Save levels to file (default='LayersData.hs')
-h --help                 Display help message
-v --version              Print version information

Edit Mode

a key = add new level after the current one and switch to it
A key = add new level before the current one and switch to it
n key = goto next level
N key = goto previous level
m key = move current level after the next one
M key = move current level before the previous one
l key = reload current level
s key = save levels to file specified by '-s'
r key = remove game object under mouse cursor
p key = place a star at mouse cursor position
e key = place an enemy at mouse cursor position
u key = start changing path of platform/enemy under mouse cursor,
        define path points by moving the mouse and clicking
        left mouse button, press 'u' again to end path definition

left mouse button + ctrl  = move game object under mouse cursor
                            (hold mouse button pressed)
left mouse button + shift = resize platform under mouse cursor
                            (hold mouse button pressed)
left mouse button         = define new platform by holding the
                            button pressed and moving the mouse
mouse wheel               = change scale of orthographic projection

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.3, 0.3.1, 0.4, 0.4.1, 0.4.2, 0.4.3, 0.5, 0.5.1, 0.5.2, 0.5.3, 0.6.0, 0.7.0, 0.8.0 (info)
Dependencies base (>3 && <5), cmdargs (>=0.10.7 && <0.11), composition (>=1.0.1.0 && <1.1), data-lens-light (>=0.1.2.4 && <0.2), Gamgine (>=0.4 && <0.8), GLFW-b (>=1.0 && <3.4), ListZipper (>=1.2.0.2 && <1.3), mtl (>=2.1.3.1 && <2.4), OpenGLRaw (>=3.0.0.0 && <3.4), pretty-show (>=1.6.7 && <1.11) [details]
License BSD-3-Clause
Author Daniel Trstenjak
Maintainer daniel.trstenjak@gmail.com
Category Game
Source repo head: git clone https://github.com/dan-t/layers
Uploaded by DanielTrstenjak at 2024-06-02T14:50:35Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables layers
Downloads 7879 total (20 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2024-06-02 [all 1 reports]