Skip to content

Instantly share code, notes, and snippets.

@rdeaton
Created May 30, 2012 19:20
Show Gist options
  • Save rdeaton/2838397 to your computer and use it in GitHub Desktop.
Save rdeaton/2838397 to your computer and use it in GitHub Desktop.
Sprite Ideas
Alternative forms of collision detection
- Possible use of algorithms like quadtrees and spatial hashing
Positioning based on tuples/numpy arrays vs Rects
Anchor points
Improved layering system
"Automated" dirty rendering
A Group which implements the Sprite protocol (aggregate sprites)
Properties which change sprites in various ways:
- angle of rotation
- scale (zoom in or out)
- cropping rectangle
- change collision parameters (smaller hitbox or etc)
- hidden/visible
Animated Sprites:
- Using pregenerated frames shown in a specific order and at certain time intervals
- Rabbyt or Kivy style "animation" for attributes like:
- angle, scale, rect, position
Making sure blendmode flags are respected
Event dispatch from groups to sprites
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment