Here's a little BASIC demo that I wrote while messing about.
[EDIT] Version 1.1 is a bit better again I think.
[EDIT] Version 1.1a is further improved
Happy zXmas!
Thanks,
Shaun.
A simple scrolly bouncy demo
A simple scrolly bouncy demo
- Attachments
-
- ZXMAS_v1.1a.P
- (1.96 KiB) Downloaded 292 times
-
- ZXMAS_v1.1.P
- (1.91 KiB) Downloaded 290 times
-
- ZXMAS.P
- A bouncy scrolly thingy
- (1.54 KiB) Downloaded 305 times
Last edited by Shaun_B on Thu Dec 21, 2017 8:21 pm, edited 2 times in total.
Re: A simple scrolly bouncy demo
Thanks for the demo.
It works great in ZedEx on my android phone.
It works great in ZedEx on my android phone.
In theory, there is no difference between theory and practice. But, in practice, there is.
Re: A simple scrolly bouncy demo
Thanks Paul.
I'm going to see if I can make a reasonable snowfall-type effect with BASIC, but perhaps it is not possible.
Regards,
Shaun.
I'm going to see if I can make a reasonable snowfall-type effect with BASIC, but perhaps it is not possible.
Regards,
Shaun.
Re: A simple scrolly bouncy demo
I've made a slight improvement to the listing; in line 6, the cursor is re-positioned to the start of the line so that when line 3 fires (to clear the scrolly), it's already in the correct place. I think this makes for a slightly better frame rate as well. See below:
Regards,
Shaun.
Regards,
Shaun.
Re: A simple scrolly bouncy demo
That's really impressive. I would have thought it would be slower than that.
Becky.
Becky.
2x ZX81 / 2xZ88 / Spectrum 48K / Spectrum+ / Spectrum +2 (Grey) / Spectrum +3
Harlequin Rev G
Harlequin Rev G
Re: A simple scrolly bouncy demo
I'm pleased that someone's giving the old BASIC ROM some lovin'! Keep it up Shaun
Is there some benefit to PRINTing AT 0+Y rather than just Y? There is a number parse and addition there that you don't have to do or so it seems to me.
Is there some benefit to PRINTing AT 0+Y rather than just Y? There is a number parse and addition there that you don't have to do or so it seems to me.
Re: A simple scrolly bouncy demo
No, you're right, dumb mistake! It may be removed to save probably some processor t-states.
Regards,
Shaun