shine-examples: Examples for the shine package

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

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


[Skip to Readme]

Properties

Versions 0.1, 0.1
Change log None available
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
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:54:23Z

Downloads

Maintainer's Corner

Package maintainers

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