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]
Versions [faq] 0.1
Dependencies base (>=4.11 && <4.13), containers (==0.6.*), ghcjs-dom (==0.9.*), keycode (==0.2.*), random (==1.1.*), shine (==0.2.*) [details]
License MIT
Author
Maintainer Francesco Gazzetta <fgaz@fgaz.me>
Category Web, Graphics, Javascript, Game
Home page https://github.com/fgaz/shine/tree/master/shine-examples
Bug tracker https://github.com/fgaz/shine/issues
Uploaded by fgaz at 2020-01-04T15:55:30Z
Distributions NixOS:0.1
Executables mountaincar, spaceinvaders, simple-interaction, animated-shapes
Downloads 125 total (14 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2020-01-04 [all 2 reports]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for shine-examples-0.1

[back to package description]

shine-examples

Examples for the shine library.

Compiling

You need ghcjs

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

Contents

animated-shapes

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.

simple-interaction

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

mountaincar

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.

spaceinvaders

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).