API Documentation
renderer.Obj
- renderer.Obj(map,x,y)
- Create the object on the specified map plane at location (x,y)
- sprite
- pygame surface specifying the object's appearance
- layer
- Integer, objects of higher layer will be rendered on top
- update()
- Call this whenever a property is modified directly to redraw the object
- move(x,y)
- Move this object by (x,y) pixels
- remove()
- Destroy this object safely
- get_x(), get_y()
- Return the position of the rendering object
- center(), center_width(), center_height()
- Center the object's sprite relative to its position on either of the axis
renderer.MapPlane
- renderer.MapPlane(view_x,view_y,size_x,size_y)
- Create a new map plane. view_x/view_y specify the size of the output area, size_x/size_y specify the size of the map itself
- move_eye(x,y)
- Move the center of the viewport by (x,y) on the map.
- render(surface, position)
- This works exactly like pygame.Surface.blit. Render the plane's output onto the surface at the given position.
page revision: 0, last edited: 18 Sep 2010 13:31