Rotatesprite16: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
New page: '''rotatesprite16''' <x> <y> <z> <a> <tilenum> <shade> <pal> <orientation> <x1> <x2> <y1> <y2> Displays tiles onscreen. It works likewise the rotatesprite command but it the rotat...
 
No edit summary
Line 1: Line 1:
'''rotatesprite16''' <x> <y> <z> <a> <tilenum> <shade> <pal> <[[orientation]]> <x1> <x2> <y1> <y2>
'''rotatesprite16''' <x> <y> <z> <a> <tilenum> <shade> <pal> <[[orientation]]> <x1> <x2> <y1> <y2>


Displays tiles onscreen. It works likewise the [[rotatesprite]] command but it the rotatesprite16 is more accurate.
Displays tiles onscreen. It works like the [[rotatesprite]] command, but it is 65536 times more accurate.


<x> x-coordinate. Range 0..13107200. (200*65536=13107200)<br>
<x> X coordinate, ranged 0-13107200 (200*65536=13107200)<br>
<y> y-coordinate. Range 0..20971520. (320*65536=20971520)<br>
<y> Y coordinate, ranged 0-20971520 (320*65536=20971520)<br>


The command named "rotatesprite16" because "multiplying by 65536" is equivalent to "shifting left by 16".
The command is named "rotatesprite16" because "multiplying by 65536" is equivalent to "shifting left by 16".
[[Category:EDuke32 specific commands]]
[[Category:EDuke32 specific commands]]
[[Category:Screen drawing commands]]
[[Category:Screen drawing commands]]

Revision as of 22:20, 14 May 2009

rotatesprite16 <x> <y> <z> <a> <tilenum> <shade> <pal> <orientation> <x1> <x2> <y1> <y2>

Displays tiles onscreen. It works like the rotatesprite command, but it is 65536 times more accurate.

<x> X coordinate, ranged 0-13107200 (200*65536=13107200)
<y> Y coordinate, ranged 0-20971520 (320*65536=20971520)

The command is named "rotatesprite16" because "multiplying by 65536" is equivalent to "shifting left by 16".