← findnix.eu
🎬 makertube.net makertube.net

Learning ZX Spectrum Next Basic - Sprite Continue

⏱ 26:01 🌐 makertube.net

#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: r

β†—https://makertube.net/w/czTwLWoyEDgUnV9fo8ANzS
spectrum zxspectrum spectrumnext nextbasic programming
Indexiert von findnix.eu Β· Eigene Seite einreichen