Giter VIP home page Giter VIP logo

hate's Introduction

Häte

Circle CI

Hate is a small framework for graphical haskell games and applications. It's heavily inspired by Love and aims at similar ease of use, but within the power of Haskell's type and concurrency safety.

Hate features a pure 2D rendering API, backed by raw, low-level OpenGL, and a simple way to gather input from the user (via GLFW-b).

The samples folder features a few examples on how to get started, but you have to consider the API to be extremely unstable and it's subject to change at any time.

Feel free to submit feature requests, opinions etc. through the GitHub issues system.

###Installation

Hate is developed and tested using GHC. If you're a beginner, the easiest way to get it is Haskell Platform. You probably also want Git.

To verify the installation, do this:

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.8.3

$ cabal --version
cabal-install version 1.18.0.5
using version 1.18.1.3 of the Cabal library

If it looks similar (the numbers are bigger), then it's probably OK. To proceed, run those commands:

git clone https://github.com/bananu7/Hate.git
cd Hate
cabal sandbox init
cabal install --dependencies-only
cabal run sample_shapes

To use sandboxing functionality, you need a fairly recent Cabal, but it's highly recommended, as it helps to avoid a lot of problems. You can then install Hate into that sandbox by typing cabal install.

The samples available at the time of writing are:

  • sample_shapes
  • sample_scheduler
  • sample_sprite
  • sample_spritesheet
  • sample_asteroids

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.