#zxspectrum #zxnext #zxspectrumbasic #speccy
I am learning to program the ZX Spectrum Next in basic and was looking at some of the new commands that can access the Next hardware. First we have Sprite Continue that can be used to move enemies around the screen in simple lines and animate without using any of your basic, you set it running and the next moves them for you.
10 SAVE "demo.bas": rem save the program 20 RUN AT 3 : rem run at 28mhz 30 LOAD "demo.spr" BANK 13: rem load a sprite file into bank 13 40 SPRITE BANK 13: rem tell the sprite commands to use bank 13 50 LAYER 2,1: PAPER 2: CLS: turn on layer 2 and set a blue background 60 SPRITE PRINT 1: enable sprites 70 SPRITE 1,50,50,3,1 : draw three sprites 75 SPRITE 2,150,50,3,1 76 SPRITE 3,80,100,3,1 80 SPRITE CONTINUE 1,50 TO 150 STEP 1 RUN ,50 STOP ,3 TO 9, BIN 1000,0 85 SPRITE CONTINUE 2,150 STOP ,50 TO 150 STEP 2 RUN ,1 TO 3, BIN 0100,0 86 SPRITE CONTINUE 3,50 TO 150 STEP 1 RUN ,50 TO 150 STEP 1 RUN ,3 TO 3, BIN 11011101,0: rem use sprite continue to move them on the screen 90 SPRITE MOVE INT: rem this is our program loop we never go back from this point. 100 GO TO 90
Take a look at the PDF on the next website docs_nextzxos_NextBASIC_New_Commands_and_Features.pdf
I use HDFM Gooey to add files to the next image http://uto.speccy.org/downloads/hdfmonkey_windows.zip
CSPect http://www.zxspectrumnext.online/cspect/
If this is helpful please consider buying me a coffee or a small donation to my palpal.me https://ko-fi.com/leelegionsmith https://www.paypal.com/paypalme/leelegionsmith