Permalink
Switch branches/tags
Nothing to show
Commits on Apr 24, 2016
  1. Merge pull request #2 from ujpandey/master

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

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

    n0nick committed Jun 1, 2012
    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.
  2. No need to refresh the background anymore.

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

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

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

    n0nick committed Jun 1, 2012
    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).
  6. Clearing the layer.

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

    n0nick committed Jun 1, 2012
    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().
  8. Using LayeredDirty instead of RenderPlain.

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

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

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

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

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