Learning ZX Spectrum Next Basic - Sprite Continue
#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
Видео Learning ZX Spectrum Next Basic - Sprite Continue канала leesmiths workshop
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
Видео Learning ZX Spectrum Next Basic - Sprite Continue канала leesmiths workshop
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![ZX Spectrum +2 Another Ebay untested repair and restore project, Will it work ?](https://i.ytimg.com/vi/WnSLwBV1W1M/default.jpg)
![Spectrum Next Basic commands - Reading the joystick and Sprite over](https://i.ytimg.com/vi/8LoLCHMO2Bg/default.jpg)
![Lets restore this neglected Acorn Electron. My first computer. re-uploaded](https://i.ytimg.com/vi/WHvO-cZuf3g/default.jpg)
![How I learned to program the Commodore 64 in basic and compiled C while writing a PAC-MAN game.](https://i.ytimg.com/vi/mE3Ry_1I4i4/default.jpg)
![Learning Spectrum Next basic part 4 - Tile map scrolling](https://i.ytimg.com/vi/TEfnt7-Sq3E/default.jpg)
![Building the Micro 8088 XT kit with Adlib and XT-IDE kits. Part 1 Intro and XT-IDE build](https://i.ytimg.com/vi/liLMZX7VFl8/default.jpg)
![Why Buy A Sinclair ZX Spectrum Next - Join The Kickstarter #2 - Speccy You Don't Want To Miss Out On](https://i.ytimg.com/vi/g73r-YY_OH8/default.jpg)
![The ZX Spectrum Magazine Covertape Wars (+ The Best Covertape Games) - Kim Justice](https://i.ytimg.com/vi/MCpfjwcOVjs/default.jpg)
![ZX Spectrum Next Basic - Sprite at, Sprite pause and relative sprites](https://i.ytimg.com/vi/2VA8mu3fns0/default.jpg)
![My 3d printer MiSTer FPGA retro wedge case](https://i.ytimg.com/vi/wmXbRdR733Q/default.jpg)
![Beyond The Scanlines Extra #010: Exploring Alternate FPGA Cores of the Spectrum Next](https://i.ytimg.com/vi/xed3vQnqIu0/default.jpg)
![The Spectrum Show EP91](https://i.ytimg.com/vi/tuoWzK8ejUM/default.jpg)
![Building the Micro 8088 XT kit with Adlib and XT-IDE kits. Part 2 Adlib Soundcard build](https://i.ytimg.com/vi/J8ank-NtFZY/default.jpg)
![Building the 8088 XT Kit Part 3. Sergey Kiselev designed processor board.](https://i.ytimg.com/vi/JNlRUDkF4nU/default.jpg)
![Micro 8088 XT pc - Doscember update. Sound cards and floppy drive.](https://i.ytimg.com/vi/FilTxAbot-s/default.jpg)
![Beyond The Scanlines Extra #008: The ZX Spectrum Next - Diving In Several Months After Launch!](https://i.ytimg.com/vi/PXqAH3XCSBg/default.jpg)
![NextBASIC sprites tutorial #1: coding "Connect 4" on the ZX Spectrum Next](https://i.ytimg.com/vi/eSvYYZ1au_Y/default.jpg)
![ZX Spectrum Next - NextDAW Beginner's Tutorial](https://i.ytimg.com/vi/Q_s1fgmn6bg/default.jpg)
![Sinclair ZX Spectrum Next - I Want One Bad - Speccy](https://i.ytimg.com/vi/-u5xI9AvRLM/default.jpg)
![ZX Spectrum Next - Zero Day Update](https://i.ytimg.com/vi/dcpzO9CGDq0/default.jpg)