development:csdk:2.0:sprites
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
development:csdk:2.0:sprites [2024/11/20 22:03] – created clyde | development:csdk:2.0:sprites [2024/11/21 04:59] (current) – [Drawing by rectangle] clyde | ||
---|---|---|---|
Line 50: | Line 50: | ||
=====Drawing by rectangle===== | =====Drawing by rectangle===== | ||
- | Once your graphics are loaded into a sprite bank, you can draw them with '' | + | Once your graphics are loaded into a sprite bank, you can draw them with [[development: |
<code c> | <code c> | ||
- | queue_draw_sprite(X, | + | queue_draw_sprite(X, |
</ | </ | ||
- | X and Y indicate coordinates on the screen. W and H are the width and height. GX and GY are the coordinates in the source image which you'd use to pick a tile or frame of animation from a sheet. | + | X and Y indicate coordinates on the screen. W and H are the width and height. GX and GY are the coordinates in the source image which you'd use to pick a tile or frame of animation from a sheet. |
'' | '' | ||
Line 64: | Line 64: | ||
=====Drawing by frame number===== | =====Drawing by frame number===== | ||
- | If you've exported a packed sprite sheet alongside JSON frame data, you can use '' | + | If you' |
<code c> | <code c> |
development/csdk/2.0/sprites.1732140187.txt.gz · Last modified: 2024/11/20 22:03 by clyde