summaryrefslogtreecommitdiff
path: root/examples/maps/example.tmx
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2018-01-17 13:33:10 -0500
committerDavid Thompson <dthompson2@worcester.edu>2018-01-17 13:33:10 -0500
commitdf2872c456185090f3b4a7ceba408d576526ba32 (patch)
tree53f965cfe0b3f44bbe40e84cdc6133adb55afb6c /examples/maps/example.tmx
parent4a7d9c49f3454a01487ab3661e9d9cd9d6850a7e (diff)
render: sprite: Fix bug in rendering texture regions.
The texture-rect procedure contains the pixel location of the texture region, so if you use that rect to render a sprite the result is a sprite offset by its location in the greater texture, which is very very very wrong. * chickadee/render/sprite.scm (draw-sprite): Dynamically configure rendering rect based on the texture region's width and height.
Diffstat (limited to 'examples/maps/example.tmx')
0 files changed, 0 insertions, 0 deletions