Unfortunately this is not possible in most games, as doing them purely
vector-based is infeasible. A lot of the artwork made for games will be
standard raster graphics, and will need to be designed for a specific
screen. If there are changes in the future, they can always be redrawn.

--Noah

Bernardo Innocenti wrote:
> On 12/09/07 18:35, Roberto Fagá wrote:
>
>   
>> Another good option to optimize games in PyGame on XO is to reduce the
>> depth of the colors on:
>> window = pygame.display.set_mode((400, 225), 16)
>>     
>
> Isn't 16bpp the default?
>
> The X display runs at 16bpp, so using any other depth causes
> useless and very expensive runtime conversions.
>
> Application and game developers should avoid assuming a
> particular screen resolution and depth.  These apparently
> fixed properties are in fact subject to change in future
> generations of the XO, and may already be different in
> emulated environments.  Moreover, people are already porting
> Sugar to different hardware than the XO, including regular
> Linux distributions.
>
> It is therefore wise to *always* query screen properties
> at run-time and load/render graphics in the correct format.
> Cairo makes it extremely easy.
>
>   


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel

Reply via email to