Page 1 of 1

Re: Help identifying spectrum hand coded games

Posted: Wed Jul 18, 2018 6:13 am
by Juan F. Ramirez
I love this thread, those printed papers and how fast they were guessed.

If you have more printed papers, please, post them!

Now I'm thinking of a new quiz thread idea... Guess the game from thermal toilet papers! 8-)

Re: Help identifying spectrum hand coded games

Posted: Wed Jul 18, 2018 11:05 am
by djnzx48
Nice looking images [mention]stformatjez[/mention]. Were they ever in colour originally? Maybe we could even start a colouring competition thread here. ;)

Sorry if I'm hijacking your thread, but I've had this small BASIC listing lying around for a while and I'd forgotten where it was from. I was going to post it here to see if anyone knew it, but then I finally found the original from a PET ad in the
August 1981 issue of Creative Computing. It's still a cool listing so here's a (lazily converted and very slow) Spectrum version of it.

Code: Select all

10 PAPER 0: BORDER 0: INK 7: CLS
20 LET P=160: LET Q=100
30 LET XP=144: LET XR=1.5*PI
40 LET YP=56: LET YR=1: LET ZP=64
50 LET XF=XR/XP: LET YF=YP/YR: LET ZF=XR/ZP
60 FOR A=-Q TO Q-1
70 IF A<-ZP OR A>ZP THEN GO TO 150
80 LET ZT=A*XP/ZP: LET ZZ=A
90 LET XL=INT (.5+SQR (XP*XP-ZT*ZT))
100 FOR B=-XL TO XL
110 LET XT=SQR (B*B+ZT*ZT)*XF: LET XX=B
120 LET YY=(SIN XT+.4*SIN (3*XT))*YF
130 GO SUB 170
140 NEXT B
150 NEXT A
160 STOP
160 LET X1=(XX+ZZ)*22/25+P
170 LET Y1=(YY-ZZ)*22/25+Q
185 IF x1<0 OR X1>255 OR Y1<0 OR Y1>175 THEN RETURN
190 PLOT X1,Y1
220 RETURN
hatdraw.tzx
Image

Re: Help identifying spectrum hand coded games

Posted: Wed Jul 18, 2018 11:53 am
by ZXDunny
djnzx48 wrote: Wed Jul 18, 2018 11:05 am Sorry if I'm hijacking your thread, but I've had this small BASIC listing lying around for a while and I'd forgotten where it was from. I was going to post it here to see if anyone knew it, but then I finally found the original from a PET ad in the
August 1981 issue of Creative Computing. It's still a cool listing so here's a (lazily converted and very slow) Spectrum version of it.
That's pretty neat - though you have a couple of errors. You have two line 160s, and you're not doing hidden surface removal as in the original - though that would slow things down a lot more on the Speccy.

Re: Help identifying spectrum hand coded games

Posted: Wed Jul 18, 2018 10:22 pm
by stformatjez
djnzx48 wrote: Wed Jul 18, 2018 11:05 am Nice looking images @stformatjez. Were they ever in colour originally? Maybe we could even start a colouring competition thread here. ;)

Sorry if I'm hijacking your thread, but I've had this small BASIC listing lying around for a while and I'd forgotten where it was from. I was going to post it here to see if anyone knew it, but then I finally found the original from a PET ad in the
August 1981 issue of Creative Computing. It's still a cool listing so here's a (lazily converted and very slow) Spectrum version of it.

Image
Wow dude, that's pretty cool for the ZX Spectrum!

The only other bog-roll print I have is a poor attempt at the Star Wars loading screen, which I always drooled over as a kid (far better than the actual game itself :lol:)

The print itself is also in a bad way, but then I'm actually amazed any of them have survived 30 years!

Image

Re: Help identifying spectrum hand coded games

Posted: Thu Jul 19, 2018 1:57 am
by djnzx48
ZXDunny wrote: Wed Jul 18, 2018 11:53 am That's pretty neat - though you have a couple of errors. You have two line 160s, and you're not doing hidden surface removal as in the original - though that would slow things down a lot more on the Speccy.
Whoops! Well that makes more sense now - it looks like GMODE 2 is basically like INVERSE 1 and erases all the pixels that have already been drawn behind it. You can fix it with:

Code: Select all

195 IF Y1 THEN INVERSE 1: PLOT X1,Y1-1: DRAW 0,1-Y1: INVERSE 0
but you're right about the speed issue. Surely it can't have been that much faster on the PET? There are a few methods that could be used to improve it - for example XP/ZP and XP*XP always remain constant. ZT*ZT is also needlessly calculated over and over.
stformatjez wrote: Wed Jul 18, 2018 10:22 pm The only other bog-roll print I have is a poor attempt at the Star Wars loading screen, which I always drooled over as a kid (far better than the actual game itself :lol:)

The print itself is also in a bad way, but then I'm actually amazed any of them have survived 30 years!
Nice! It is impressive that they've lasted for so long when you consider the print quality of some of the book/magazine listings at the time! Were these all done in a single session and then printed out?

Re: Help identifying spectrum hand coded games

Posted: Thu Jul 19, 2018 1:59 am
by Seven.FFF
djnzx48 wrote: Wed Jul 18, 2018 11:05 am I finally found the original from a PET ad in the
August 1981 issue of Creative Computing.
I remember the PET hat!!

Re: Help identifying spectrum hand coded games

Posted: Thu Jul 19, 2018 8:05 am
by ZXDunny
Yep, that's the ticket. I modified it slightly for SpecBAS:

Image

Image

Which is now a new demo for my archive - many thanks :)

Re: Help identifying spectrum hand coded games

Posted: Thu Jul 19, 2018 1:32 pm
by Seven.FFF
Nice, Dunny.

I looked up MTU (the guys who ran the original PET graphics card ad) for the heck of it, and they’re still going!

http://www.mtu.com/support/mtufounders.htm