From b4f3c4bcfe8cbc12592eb4673974729146b7bdcf Mon Sep 17 00:00:00 2001 From: Quinn Dunki Date: Tue, 4 Jul 2017 12:44:47 -0700 Subject: [PATCH] Working demo for KFest 2017 --- hisprite.dsk | Bin 143360 -> 143360 bytes hisprite.s | 8 ++++---- spriteBuffers.s | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hisprite.dsk b/hisprite.dsk index 4a75babfc53ff0f240a4d29c276b0c7896c502d4..df2a7d2b0aea724f6c2a534d29def7a548469cd9 100644 GIT binary patch delta 3555 zcmd5;Uuc_E6#vrHrlyre+ORbpl6I73TgM_=P*FO?bscuB({Ac?@ZDQ?m#V9)e;%w# zsuGwFXOLX_um>e;w{|xptVNjX+R!K{pD*1&u^>(Y{-H0jmvn>9Zr*#7#`J#QmoV0c zy&S@Kf9H38_ndQ2&QPX$C{sOgvc@y))&6YWR;y`$XuA0E^;b1`cvHifs;PN=j#Wk* z3?pZah1B)lh%a^Fjfgy@{?p$5tG;mj^Bm9o!bnfmr#wQihE>)QDmY`02)9+32e>he z!KIKs=2|V5!@3JFZ?u6qBviQ)NA2g|!^|zPc94g~VfDQsL>SvByJhNScv}$%1cAJC zPNvnRX=cP*vy#hQd-ldgTiaeGhY2D_NFO;y2FM5GL-GmvltjoE1W1$&lT+kNa+;ha zjA+`O+x42m5zuZ^G`g?5xA)^q%B?cDie8V`IxL@F<2h3{PTs2J<$90ESi!K@5*$cml)Ic&sWlPn*XBk6iDC!xHj3 z4#hX0()=epOADFw)xY$S_LIkHXuRF?Jzg+|7TIj1is6XMKS;kB?-+GdI7XP`xtG() zSJHatuZQ9q(>gbVI*+&#ykDRL!CnMC2wp>g5%eLUVi$rg1TP^tga9E3A*rH0(XoSj zOe6RX!H)>8BA7?;yY#q>;9CR+f-4AqL2yla-~^pcG}9{y7rmC)z*`))VAziR|LRQh zAH~V6?oOnFB(gEJgG3tRj>*P|E3R={^9b5;*}y9V{i#yxj@(Z-?QR(||Fx2SvEOoK(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z628iu3*_4~zFK?R?sh2~%4a+CSzg&}RX{g~{9SR;IZ+jEjTevvKXHeRlg*Gy6*KJW ziLT^L5G*RKt^Rc@!-BqyA$A;}W%gQFJ}O&FFgE-mY7C(&TNBOJ+lrq>*&zx*-X3$` zsbkK*^y|J*ww#7_lp=!BD8qthtEHiPLQ~`RI*Bo4#?-J)6Gnpc%fkkOMPG4*=)^sw zT2}!X7=tQC_2>(I#13HG0kX6%p^!3`I3v5ypl- z(U_aH9L$gJ|AwJQQ01jzaDIOOgH&@gMxKal9|*tF9X)j9jaTEZ88yc(42_`O=Hi*Y ztc}ssv(Nj)S99{*Kzd*|ClDpix8%V6(giVgz%W< zF?2LzxwE=|LP@==+Ry9X+6dBOT3J)fqLOeW&HXt}>>pE=Z7k_BkpF_X*)f(h+gP5< zk}mx#xh@f<#q^4%T8z77Y|5l@w03e$WEqh)+#126K4Z92#q%vA8nQS(ou0Nu{{fgz B17QFF diff --git a/hisprite.s b/hisprite.s index 3cb6b34..8eb63d2 100644 --- a/hisprite.s +++ b/hisprite.s @@ -33,7 +33,7 @@ SPRITEPTR_H = $1c MAXSPRITEINDEX = 3 ; Sprite count - 1 MAXPOSX = 127 ; This demo doesn't wanna do 16 bit math MAXPOSY = 127 -MAXLOCALBATCHINDEX = 3 ; Sprites in batch - 1 +MAXLOCALBATCHINDEX = 4 ; Sprites in batch - 1 MAXBATCHINDEX = 0 ; Number of batches - 1 ; Macros @@ -148,12 +148,12 @@ backgroundLoop: jmp backgroundLoop ; 65 cycles overhead per rect backgroundRestartList: -; lda batchMaxIndex -; sta spriteNum + lda batchMaxIndex + sta spriteNum lda #MAXLOCALBATCHINDEX sta batchLocalIndex - jmp batchLoop ; Skip movement +; jmp batchLoop ; Skip movement movementLoop: ; Find our sprite pointer diff --git a/spriteBuffers.s b/spriteBuffers.s index 0be1b5c..26ac1d0 100644 --- a/spriteBuffers.s +++ b/spriteBuffers.s @@ -32,7 +32,7 @@ metaBuffer0: .byte 0 ; X pos .byte 0 ;116 ; Y pos .byte -1 ; X vec - .byte -1 ; Y vec + .byte -2 ; Y vec metaBuffer1: .byte 20 ; X pos @@ -43,7 +43,7 @@ metaBuffer1: metaBuffer2: .byte 40 ; X pos .byte 0; 67 ; Y pos - .byte -1 ; X vec + .byte -2 ; X vec .byte -1 ; Y vec metaBuffer3: