azazel wrote:
- To get and set the colorkey of a surface I use the get_colorkey and set_colorkey methods, till now I've written the colorkey of everyseveral image formats can store the colorkey internally. the two best examples of this would be GIF and PNG. if these images have a colorkey set, then they will have their colorkey all setup when you load them.
image in a file, and after loading an image I set the colorkey read in
that file with set_colorkey. There is a way to set a default colorkey
for an image that don't force me to store it in another file?
there are two styles of speed control in games.- I've noticed that some games use a time_scale variables to regulate the movement of the sprite in connection with the actual speed of the game. For example if I want to run my game with a framerate of 30fps and prev_tick - last_tick is time elapsed since last frame time_scale become: time_scale = (last_tick - prev_tick) / 30.0