Welcome
Installation
Getting Started
User Interaction
Build a Game #1
Build a Game #2
Build a Game #3
Colours
Coordinates
API Reference
Globals
Window
Camera
Mouse
Key
Rect
Image
Text
Shape
Line
Screen
Sound
Base
Image
The Image class is for rendering textures.
It is a subclass of Rect.
__init__(name = MAN, x = 0, y = 0, angle = 0, width = 0, height = 0, color = WHITE)
Call the image initialiser.
name: strThe path to the source image. Can also be
MAN,COINorENEMY.x: floatThe x position of the image
y: floatThe y position of the image
width: floatThe width of the image. When set to 0, detect the image width
height: floatThe height of the image. When set to 0, detect the image height
angle: floatThe rotation of the image
color: float, float, float, floatThe colour of the image
name: str
The path to the source image.
Can also be MAN, COIN or ENEMY.