shine-examples: Examples for the shine package

[ game, graphics, javascript, mit, web ] [ Propose Tags ]

This package contains some examples of use of the shine package, from animations to a simple game.

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS] 0.1
Dependencies base (>=4.11 && <4.13), containers (>=0.6 && <0.7), ghcjs-dom (>=0.9 && <0.10), keycode (>=0.2 && <0.3), random (>=1.1 && <1.2), shine (>=0.2 && <0.3) [details]
License MIT
Maintainer Francesco Gazzetta <>
Category Web, Graphics, Javascript, Game
Home page
Bug tracker
Uploaded by fgaz at 2020-01-04T15:55:30Z
Executables mountaincar, spaceinvaders, simple-interaction, animated-shapes
Downloads 318 total (5 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2020-01-04 [all 2 reports]

Readme for shine-examples-0.1

[back to package description]


Examples for the shine library.


You need ghcjs

A great way of building ghcjs packages is to use the reflex platform



A lot of different shapes, some of them changing color, size and other properties with time.

Note: it will not work without manually copying image.png next to the index.html file. See the "handling assets" section in the shine README for more info.


An extremely simple user interaction: a black square appears on left mouse down and disappears on mouse up.


This is a human-controlled version of the Mountain car problem (a standard testing domain in Reinforcement learning). Use the left/right keys to control the car.


This is a simplified version of the Space Invaders video game. Use the left/right keys to move the laser cannon and the space key to fire (or to restart the game).