Masken, "fullscreen" snake game in 1k

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
abacaxi
Posts: 17
Joined: Thu Dec 05, 2024 8:20 pm

Re: Masken, "fullscreen" snake game in 1k

Post by abacaxi »

Thanks that's a great reply, really appreciate it. I've made some choices that don't save any space but because it's how my original game worked, controls and the border for example, and the black on white graphics rather than inverted. I'm very interested in compressing the screen to hold more data or even code, but how do I expand it later, can I just keep writing to available memory? Any "end" needed? Also you say there's 50 bytes to save this way, which parts can I overwrite apart from 4000-400B?
abacaxi
Posts: 17
Joined: Thu Dec 05, 2024 8:20 pm

Re: Masken, "fullscreen" snake game in 1k

Post by abacaxi »

I bought your book, very helpful.
dr beep
Posts: 2428
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Masken, "fullscreen" snake game in 1k

Post by dr beep »

The compression and decompression is mentioned in the book.

You compress manually and decompress with the routine in the book.
dr beep
Posts: 2428
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Masken, "fullscreen" snake game in 1k

Post by dr beep »

I am looking through the code.

When I only compress the screen I can add 1 extra line to the screen

I can also move routines over the systemvariables which will add 1 extra line too.

However it is your game so I only will place a version with a compressed screen and 1 extra line.
dr beep
Posts: 2428
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Masken, "fullscreen" snake game in 1k

Post by dr beep »

The new 1K version with an extra line

Have fun debugging......

zxmasken-comp.asm
(9.46 KiB) Downloaded 1273 times
zxmasken-comp.p
(862 Bytes) Downloaded 892 times
dr beep
Posts: 2428
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Masken, "fullscreen" snake game in 1k

Post by dr beep »

"which parts can I overwrite apart from 4000-400B?"

Except from dfile, lastk, frames and cdflag all systemvariables.
abacaxi
Posts: 17
Joined: Thu Dec 05, 2024 8:20 pm

Re: Masken, "fullscreen" snake game in 1k

Post by abacaxi »

dr beep wrote: Wed Dec 11, 2024 9:40 pm The new 1K version with an extra line
wow, this is very interesting. i've been out of the loop for a while. thank you so much.
dr beep
Posts: 2428
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Masken, "fullscreen" snake game in 1k

Post by dr beep »

abacaxi wrote: Sun Dec 22, 2024 12:57 am
dr beep wrote: Wed Dec 11, 2024 9:40 pm The new 1K version with an extra line
wow, this is very interesting. i've been out of the loop for a while. thank you so much.
As said... I can change a lot more but it must be your game.
abacaxi
Posts: 17
Joined: Thu Dec 05, 2024 8:20 pm

Re: Masken, "fullscreen" snake game in 1k

Post by abacaxi »

I have 27 spare bytes and 20 lines now, only six more until I can get the 21st line, which will be the end of this project and the game will be released soon. Or I might use the bytes to make the keyboard response better, which might actually be a better idea. Thank you all and Beep in particular.

(beep, why do you ld sp,dfile-1+1024 and not just dfile-1?)
abacaxi
Posts: 17
Joined: Thu Dec 05, 2024 8:20 pm

Re: Masken, "fullscreen" snake game in 1k

Post by abacaxi »

much more responsive controls, worth it. released.

https://dr-abacaxi.itch.io/masken
Post Reply