Snake Game Using OpenGL

Latest on Hackage:1.2

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow to host generated Haddocks.

BSD3 licensed and maintained by Akash Fulchand Jagdhane
** How To install :

1) go to the extracted directory "snake-game-1.1"

2) on terminal , fire the following commands :
$ sudo runhaskell Setup.hs configure
$ sudo runhaskell Setup.hs build
$ sudo runhaskell Setup.hs install

3) to check if the package is installed into ghci, do the following :
$ ghci
prelude> :module SnakeGame

If you will reach something like "prelude SnakeGame>" in haskell then you can say that the package is properly installed.

4) well, game is ready to play now :

** How to play :

1) we have three modules :

2) last 2 modules are supporting modules where our concern is SnakeGame.Game. So we will load this module.

3) Prelude> :module SnakeGame.Game
Prelude SnakeGame.Game> startGame

4) A game will start with a fullscreen. By pressing any of the four arrow keys, snake will start running. By using arrow keys player will have to give the directions to the snake.

Note : Since snake is always hungry, it will be running always on the screen in the search of food.
Depends on:
Used by 1 package:
comments powered byDisqus