Permalink
Commits on Apr 24, 2016
  1. Merge pull request #2 from ujpandey/master

    Remove redundant background blit to screen.
    committed Apr 24, 2016
Commits on Apr 22, 2016
Commits on Apr 20, 2013
  1. Create LICENSE.txt

    committed Apr 20, 2013
Commits on Jun 3, 2012
Commits on Jun 1, 2012
  1. Re-ordering sprites in LayeredDirty.

    If we pass the chimp before the fist instance, it would
    always be rendered first and so the fist would appear
    on top of it.
    committed Jun 1, 2012
  2. No need to refresh the background anymore.

    Every part is updated separately and so the background
    layer can stay still.
    committed Jun 1, 2012
  3. Handle mouse move.

    Call Fist's move() on a mouse motion event.
    committed Jun 1, 2012
  4. Reset fist position after punch.

    Fixing a bug where the fist's position would
    remain down even after the punch animation is done.
    committed Jun 1, 2012
  5. Only render Fist when necessary.

    Splitting Fist's update() into update() and move(),
    so that we only render it (that is, mark dirty) if it
    either moved (mouse motion) or punched (mouse button).
    committed Jun 1, 2012
  6. Clearing the layer.

    We tell the LayeredDirty instance to clear with
    our background object.
    committed Jun 1, 2012
  7. Only updating the dirty parts.

    We achieve this by calling allsprites.draw(),
    which returns only the areas of the screen that
    are dirty, and then passing these to display.update().
    committed Jun 1, 2012
  8. Using LayeredDirty instead of RenderPlain.

    This is the group object that would handle the updates.
    committed Jun 1, 2012
  9. Marking sprites as dirty.

    Temporarily, we mark both sprites as always dirty, so
    that we could see them rendered properly.
    committed Jun 1, 2012
  10. Using DirtySprite instead of Sprite.

    And not forgetting to use the DirtySprite initializer too.
    committed Jun 1, 2012
  11. Code style fixes.

    Making this example PEP 8 compatible.
    committed Jun 1, 2012
  12. Initial commit.

    Everything is just copied from pygame/examples.
    committed Jun 1, 2012