How do i get a movement on screen using the ZX81

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
Crayon21
Posts: 348
Joined: Sun Nov 04, 2018 2:33 am

Re: How do i get a movement on screen using the ZX80

Post by Crayon21 »

Yeah, basic is slow.

At least i got something done
Attachments
test.tzx
(37 Bytes) Downloaded 134 times
In Heck, there are two options for perpetual torment:

Eat the Puckerberry and suffer for eternity:
drink nothing but a cocktail of The Last Dab and Mexican Cake blended and served with
habanero slices
:twisted:
Crayon21
Posts: 348
Joined: Sun Nov 04, 2018 2:33 am

Re: How do i get a movement on screen using the ZX80

Post by Crayon21 »

sorry to necro but How do i program the arrow keys?
In Heck, there are two options for perpetual torment:

Eat the Puckerberry and suffer for eternity:
drink nothing but a cocktail of The Last Dab and Mexican Cake blended and served with
habanero slices
:twisted:
User avatar
BarryN
Posts: 151
Joined: Thu Nov 09, 2017 11:34 pm

Re: How do i get a movement on screen using the ZX80

Post by BarryN »

Crayon21 wrote: Wed Aug 11, 2021 4:10 am Yeah, basic is slow.

At least i got something done
I can't read/load your file. Can you send it as a .P file?
Crayon21
Posts: 348
Joined: Sun Nov 04, 2018 2:33 am

Re: How do i get a movement on screen using the ZX80

Post by Crayon21 »

no...it appears to have vanished

damn

:x I'm sick of this happening
In Heck, there are two options for perpetual torment:

Eat the Puckerberry and suffer for eternity:
drink nothing but a cocktail of The Last Dab and Mexican Cake blended and served with
habanero slices
:twisted:
User avatar
XavSnap
Posts: 1940
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.

Re: How do i get a movement on screen using the ZX80

Post by XavSnap »

empty_tzx.JPG
:oops:
Empty TZX...

You had to type "SAVE" ("E" and New/line) on the ZX80 screen to save a TZX !
In the "Tape window" a new entry will appear after the first entry (comment tag).

"code"..."xxx" is your program

In case of multiple files (errors/updates…) just create a new TZX, and save it again to get one "code" entry.

Then save the file as a "P" ("HELLO.P") file if there's only one file, the comment ("created by …" isn't a file…
crayon_zx80.JPG
To check if the "code" file isn't empty, double click on it.
Xavier ...on the Facebook groupe : "Zx81 France"(fr)
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: How do i get a movement on screen using the ZX80

Post by mrtinb »

Just remember. Saving in EigthyOne is a two step process. Having the file shown in the tape window is not enough. It just means it’s in EightyOne’s memory. You have to save it to a Windows file from here. When you add another file to the tape, it is still in RAM, so you need to save to a new file again. This might trick people using EightyOne. It tricked me, and I lost programs that way too.
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
Crayon21
Posts: 348
Joined: Sun Nov 04, 2018 2:33 am

Re: How do i get a movement on screen using the ZX80

Post by Crayon21 »

BarryN wrote: Mon Aug 09, 2021 12:09 pm You can do it in BASIC using text.

Code: Select all

10 FOR Y=1 TO 10
20 FOR X=1 TO 10
20 PRINT AT Y,X;" HELLO "
30 NEXT X
40 FOR X=10 TO 1 STEP -1
50 PRINT AT Y,X;" HELLO "
60 NEXT X
70 PRINT AT Y,1;"       "
80 NEXT Y
The word hello will go back and forth and advance down the screen.
sorry to necro, How do i get side to side movement (like in breakout)
In Heck, there are two options for perpetual torment:

Eat the Puckerberry and suffer for eternity:
drink nothing but a cocktail of The Last Dab and Mexican Cake blended and served with
habanero slices
:twisted:
User avatar
BarryN
Posts: 151
Joined: Thu Nov 09, 2017 11:34 pm

Re: How do i get a movement on screen using the ZX80

Post by BarryN »

Crayon21 wrote: Mon Aug 30, 2021 5:01 am
BarryN wrote: Mon Aug 09, 2021 12:09 pm You can do it in BASIC using text.

Code: Select all

10 FOR Y=1 TO 10
20 FOR X=1 TO 10
20 PRINT AT Y,X;" HELLO "
30 NEXT X
40 FOR X=10 TO 1 STEP -1
50 PRINT AT Y,X;" HELLO "
60 NEXT X
70 PRINT AT Y,1;"       "
80 NEXT Y
The word hello will go back and forth and advance down the screen.
sorry to necro, How do i get side to side movement (like in breakout)
Run the sample, this does both horizontal and vertical movement.
bola_dor
Posts: 398
Joined: Wed Oct 02, 2019 5:32 am

Re: How do i get a movement on screen using the ZX80

Post by bola_dor »

Did you realize that OP asked about ZX80?
There is no PRINT AT
And there is not an easy way to animate something in the screen..
Not in BASIC
files from Eighty One are .O
Ernesto
ZX80 USA, ZX81UK, ZX Spectrum, ZX Spectrum+, ZX Spectrum 128+ UK, ZX Spectrum +2/A, Sinclair QL, CZ1000, CZ1500, CZ2000, CZ1000Plus, CZ1500Plus, CZ Spectrum, CZ Spectrum Plus, TK83, TK85, TK90X, TK95. TS2068. And more to come :D
User avatar
BarryN
Posts: 151
Joined: Thu Nov 09, 2017 11:34 pm

Re: How do i get a movement on screen using the ZX80

Post by BarryN »

bola_dor wrote: Mon Aug 30, 2021 7:30 am Did you realize that OP asked about ZX80?
There is no PRINT AT
And there is not an easy way to animate something in the screen..
Not in BASIC
files from Eighty One are .O
Good point! Sorry. :(
Post Reply