Permalink
Switch branches/tags
Nothing to show
Commits on Jun 12, 2011
  1. Merge pull request #1 from yihuang/master

    I've made minor changes to let drag'n'drop collision feels more naturally by setting proper the drag ball's velocity.
    committed Jun 12, 2011
Commits on Jun 11, 2011
  1. Merge pull request #2 from nbogie/master

    Have arrow keys alter apparent direction of gravity.
    committed Jun 11, 2011
  2. Have arrow keys alter apparent direction of gravity.

    This is a small change to the ball box demo.
    Up arrow sets only a low upward pull, intentionally.
    nbogie committed Jun 11, 2011
Commits on Jun 10, 2011
  1. Code cleanup.

    - no -Wall errors.
    - no HLint complaints.
    committed Jun 10, 2011
  2. Rudimentary drag'n'drop support.

    It is now possible to drag balls around. Current anti-features:
    
        - I don't like the implementation of drag'n'drop using an MVar.
        - Balls do not make place for dragged balls. I'm not sure this
          is a programming error or a disadvantage of Chipmunk.
    committed Jun 10, 2011
  3. Chipmunk based physic simulation of balls.

    Added as a learning guide and example how to use Chipmunk. This library can
    provide an easy entry into developing of a small game, since we don't have to
    handle all the boring simulation stuff.
    committed Jun 10, 2011
Commits on Jun 8, 2011
  1. Improved example.

    The drawn graphic rotates and is partially transparent.
    committed Jun 8, 2011
  2. Fixed texturing color bug while drawing an image.

    We need to save the current texture and restore if after the image has been
    drawn to prevent coloring errors.
    committed Jun 8, 2011
  3. Truetype font support.

    Allows to load and show arbitrary .ttf fonts using the FTGL library.
    committed Jun 8, 2011
  4. Fixed font 9x15 supported.

    The function text allows to display multiple strings, which are placed among
    each other.
    committed Jun 8, 2011
  5. Fixed small scaling error.

    The y-axis should be from 0.0 to 1.0 and not to 1.3. We only want to stretch the
    x-axis, as is usual in screen formats, e.g 640x480, ...
    committed Jun 8, 2011
Commits on Jun 7, 2011
  1. MouseHandler implemented.

    The handler allows to pattern match on all mouse events except for motions.
    committed Jun 7, 2011
  2. Inital commit.

    - Functional Window.hs that creates an OpenGL window with a (0,0) x (1.3, 1.0)
      viewport and calls a user-defined functions fps times per second.
    - Main.hs demonstrates the usage by drawing a border and random colored lines.
    committed Jun 7, 2011