mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-07-05 15:23:58 +00:00
Prep for generic sprite compilation
This commit is contained in:
@ -201,12 +201,7 @@ def dcgrRect(x, y, w, h)#0
|
|||||||
dcgrHLin(x, x2, v)
|
dcgrHLin(x, x2, v)
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
////////////////////////////////////////////////////////////////
|
def dcgrCompSprite#0
|
||||||
// //
|
|
||||||
// Test Harness //
|
|
||||||
// //
|
|
||||||
////////////////////////////////////////////////////////////////
|
|
||||||
def compileSprite#0
|
|
||||||
byte i
|
byte i
|
||||||
|
|
||||||
for i = 0 to 6
|
for i = 0 to 6
|
||||||
@ -228,6 +223,11 @@ def compileSprite#0
|
|||||||
dcgrMemBl7(sprite7w, i * SPR_HEIGHT, sprite7w, SPR_HEIGHT, sprite7msk[i], sprite7span)
|
dcgrMemBl7(sprite7w, i * SPR_HEIGHT, sprite7w, SPR_HEIGHT, sprite7msk[i], sprite7span)
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
////////////////////////////////////////////////////////////////
|
||||||
|
// //
|
||||||
|
// Test Harness //
|
||||||
|
// //
|
||||||
|
////////////////////////////////////////////////////////////////
|
||||||
def dcgrTest#0
|
def dcgrTest#0
|
||||||
word i, j, k, i7, im7, k7, km7, s7w, inci, incj, inck
|
word i, j, k, i7, im7, k7, km7, s7w, inci, incj, inck
|
||||||
word backblk, backspan
|
word backblk, backspan
|
||||||
@ -334,7 +334,7 @@ def dcgrTest#0
|
|||||||
end
|
end
|
||||||
|
|
||||||
dcgrMode(0)
|
dcgrMode(0)
|
||||||
compileSprite
|
dcgrCompSprite
|
||||||
dcgrTest
|
dcgrTest
|
||||||
dcgrMode(-1)
|
dcgrMode(-1)
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user