Examples for the shine package.
This package contains some examples of use of the shine package, from animations to a simple game.
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).