Giter Site home page Giter Site logo

hypercube's Introduction

This program is not very efficient yet, I've been sucked into voxel engine optimizations and I have yet to find the time to play around with different kind of implementations. Also I wrote this code quite a while ago and I wouldn't consider it very idiomatic, but it is a working example of how to use OpenGL in Haskell.

hypercube

Minecraft clone in haskell focussed on performance.

downloading

$ git clone https://github.com/noughtmare/hypercube.git
$ cd hypercube

building

$ stack build

or

$ cabal sandbox init
$ cabal install --dependencies-only
$ cabal build

running

$ stack exec hypercube

or

$ cabal run

controls

W     - move forward
A     - move to the left
S     - move backward
D     - move to the right
SHIFT - move down
SPACE - move up
CTRL  - speed up
R     - toggle mouse cursor
ESC   - quit game

screenshots

hourglass pit sinefield

hypercube's People

Contributors

chatanga avatar kreinders avatar noughtmare avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hypercube's Issues

Physics

Enabling physics should make the player fall to the ground and give her the ability to jump around.

This is the first step towards a "survival mode".

Manage chunks on a separate thread.

Managing the chunks, generating, loading, unloading and extracting the surface of a chunk, can be done in the background. The only thing that cannot be done in another thread is loading the surface data to the GPU, that has to be done in the main thread.

Split chunk vbo's

To make the gpu do less work we can split the VBO's into multiple parts. For example 1 for each direction (north,south,east,west,up,down). Then we only have to render three of these and not all six, that should improve performance.

Cull invisible chunks

Chunks that are outside the view or obstructed by other chunks do not have to be rendered.

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.