-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathMOVE
198 lines (162 loc) · 1.99 KB
/
MOVE
1
;CHECK CRUMBLCHECKCRUMBLE ; FALL +CRACK LDA HOWMANY STA BUILDPOINTCHCR LDX BUILDPOINT LDA BUILDTALL,X BEQ BEND1 ; BUILD GONE ! LDA SDAMAGE,X BEQ DROPIT ; FALLINGBEND ; DO CRACKS HERE NODAMAGE DEC BUILDPOINT BPL CHCR RTSDROPIT LDA CRACKING,X BEQ FALLIT DEC CRACKING,X JMP CDOWNFALLIT LDA #AFALL CPX MONONB BNE NPLAY STA ACTIONNPLAY CPX MONONB+1 BNE NPLAY1 STA ACTION+1NPLAY1 CPX MONONB+2 BNE NPLAY2 STA ACTION+2NPLAY2 DEC BUILDTALL,XCDOWN TXA JSR CRACKUP LDX #2 JSR RAND CMP #200 BCS NOSOD LDA #2 LDX #1 JSR SOUNDNOSOD LDA #1 LDX #2 JSR SOUND JMP BEND BEND1 JMP NODAMAGEPUTDUSTON TAX LDA BUILDTYPE,X TAY LDA SBXEND,X SEC SBC SBXSTART,X STA COUNTDOWN LDA SBXSTART,X TAX LDA SCREENTEMP CLC ADC #3 STA DUSMC+2 PUTDUST TXA EOR BANANA AND #15 TAY LDA DUSTCHARS,YDUSMC STA &F400+(22*40),X ;STA &F800+(22*40),X INX DEC COUNTDOWN BPL PUTDUST LDA BANANA ADC #21 STA BANANANODUST RTSSCREENSETUP LDY #7SETUP1 LDA #0 STA SHIT,Y LDA #20 STA SDAMAGE,Y DEY BPL SETUP1 RTSCOUNTDOWN DB 0XSTORE DB 0BANANA DB 0DUSTCHARS DB &D9,&DA,&DB,&DC,&DD,&DE DB &DB,&D9,&DC,&DD,&DA,&D9,&DD,&DE DB &D9,&D9,&D9,&D9,&D9,&D9CRACKING DS 10,10TEMPC DB 0TEMPR DB 0SDAMAGE DB 50,50,50,50,50,50,50,50,50 ;BUILDTALLSHIT DB 0,0,0,0,0,0,0,0,0SCREENDRAW ASL A TAY LDA TYPOINT,Y STA SMCBT+1 LDA TYPOINT+1,Y STA SMCBT+2 LDA BXPOINT,Y STA SMCBX+21 LDA BXPOINT+1,Y STA SMCBX+2 RTSJOYGETPLAYAUTOPLAYAUTOG TXA TAY AUP LDX #0 JSR RAND CMP #252 BCS QJUMP CMP #200 BCC KEEPGOING JSR RAND AND #15 TAX AND #1 STA LEFT,Y EOR #1 STA RIGHT,Y JMP KEEPUPAUTO1 LDA #1 STA LEFT,Y LDA #0 STA RIGHT,YKEEPUP TXA CMP #12 BCS AUTO2 LDA #1 STA UP+2 LDA #0 STA DOWN,Y JMP KEEPGOINGAUTO2 LDA #0 STA UP+2 LDA #1 STA DOWN,YKEEPGOING LDX #3 JSR RAND CMP #200 LDA #0 ADC #0 STA FIRE,Y RTSQJUMP LDA #0 STA UP,Y STA LEFT,Y STA RIGHT,Y STA DOWN,Y LDA #1 STA FIRE,Y RTS