Difference between revisions of "Sprites"

From Open Surge Engine Wiki
Jump to: navigation, search
(Transparency)
m
Line 8: Line 8:
 
===Transparency===
 
===Transparency===
 
All picture sheets has a transparent color, they differ between games, but for Open Surge it uses magenta (RGB 255,0,255) as a transparent color.
 
All picture sheets has a transparent color, they differ between games, but for Open Surge it uses magenta (RGB 255,0,255) as a transparent color.
 +
 +
== Creating a basic sprite ==
 +
 +
== Creating the .spr file ==

Revision as of 19:04, 23 December 2010

Sprites

Introduction

All objects with an animation is refered to as sprites. A sprite is a picture sheet with all the frames needed to be displayed in an animation.

File formats

Although Open Surge uses PNG's for all images it doesn't use 32bit PNG's. The main reason is that 32 bit PNG's is incompatible with the engine. This is why the transparency color below is used. A part from PNG's Open Surge uses SPR files to handle all the engine needs to display the sprites properly.

Transparency

All picture sheets has a transparent color, they differ between games, but for Open Surge it uses magenta (RGB 255,0,255) as a transparent color.

Creating a basic sprite

Creating the .spr file