MyNixOS website logo
Description

Try to avoid the asteroids with your space ship.

The Asteroids game, using the wxHaskell GUI, as described in "wxHaskell, A Portable and Concise GUI Library for Haskell" http://legacy.cs.uu.nl/daan/download/papers/wxhaskell.pdf

wxAsteroids

A demonstration of how to use wxHaskell

Your space ship enters an asteroid belt, try to avoid collisions!

wxAsteroids is a game demonstrating the wxHaskell GUI. To run the game, you will need wxHaskell, see:

https://wiki.haskell.org/WxHaskell#Documentation

If wxHaskell is installed, and you have cabal-install on your system, give the folllowing command to install wxAsteroids:

cabal install wxAsteroids

Another option is, to download the wxAsteroids tarball from Hackage and unpack it; go to the directory with the game code and enter the commands:

runhaskell Setup configure
runhaskell Setup build
runhaskell Setup install

You will get a message about the directory in which the executable is installed; this directory must be in the search path.

Give the following command to start the game:

wxAsteroids

Controls:

  • Use the left and right cursor keys to move the ship sideways.
  • Ctrl-n creates a new window with a new Asteroids game.
  • Ctrl-p pauses/resumes the game.
  • To increase the speed of the space ship, press '+';
  • to slow down, press '-'.

For a detailed description of wxHaskell and the program, see: wxHaskell, A Portable and Concise GUI Library for Haskell

Further information about wxHaskell can be found at: https://wiki.haskell.org/WxHaskell.

Metadata

Version

1.1.0.1

Platforms (77)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows