Skip to content

Commit

Permalink
Update stonesense-art-guide.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
realSquidCoder committed Jan 27, 2025
1 parent f43bc3a commit 44702b5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/guides/stonesense-art-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ Stonesense art creation guide
Understanding sprites
---------------------

Understanding how Stonesense deals with sprites is central to anyone who wishes to modify the content. The
scheme is not very complicated, and this guide will give a short introduction to how they work. With the
exception of floors, which we will discuss later, all sprites are 32x32 pixels big and come in groups known
as Sprite Sheets. All sprites are loaded and rendered in 32-bit full-color PNGs. The image files should have
a transparent background but pure magenta (RGB: 255,0,255) is also treated as transparent.


.. image:: ../images/stonesense-sprite-sample.png
:align: left

Expand All @@ -21,12 +28,7 @@ To illustrate this, here is a template for the area used by sprites:
The solid area is the floor space taken up by a sprite, while the dotted box indicates the volume above this
area corresponding to one z-level.

Understanding how Stonesense deals with sprites is central to anyone who wishes to modify the content.
The scheme is not very complicated, and this guide will give a short introduction to how they work.
The way sprites are loaded is fairly generalized. With the exception of floors, which we will discuss later,
all sprites are 32x32 pixels big and come in groups known as Sprite Sheets. All sprites are loaded and
rendered in 32-bit full-color PNGs. The image files should have a transparent background but pure magenta
(RGB: 255,0,255) is also treated as transparent.
The way sprites are loaded is fairly generalized: Sprite sheets, and the index of a sprite within that sheet.

Sprite sheets
-------------
Expand Down

0 comments on commit 44702b5

Please sign in to comment.