Thinking of a 1K hires game .....

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
dr beep
Posts: 2080
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Thinking of a 1K hires game .....

Post by dr beep »

Hello everybody,

next months I will have some spare time and I was thinking of making another 1K hires game.

The ZX81 version of my game THE EDGE for the ZX Spectrum.
Image

The object of the game is to fill the edge with King, Queen, Jack and 'skip' other cards.
You can do that by placing the cards and erase the cards with the sum of 10.
The display is quite similar to MEMORY but the graphical cards will be a challenge.

Greetings Dr Beep
dr beep
Posts: 2080
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Thinking of a 1K hires game .....

Post by dr beep »

Graphical card King of hearts on a 1K hires game.
KH.jpg
KH.jpg (1.4 KiB) Viewed 2994 times
.

A bit different than the ZX Spectrum version, but it saves a lot of memory.

Other cards are done too.
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: Thinking of a 1K hires game .....

Post by sirmorris »

Superb! I can't wait to see your next masterpiece :D
dr beep
Posts: 2080
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Thinking of a 1K hires game .....

Post by dr beep »

Working on the display as we speak.

To make the display correct I need 5 suits; hearts, clubs, diamonds, spades and ... Empty.
The following values are possible
A23456789TJQK and empty
A card can fit in 1 byte. 3 bits for any of the 5 suits and 4 bits for the possible 14 values.
A full deck will cost 52 bytes.
The graphical display is the tricky part.
The trick will be ...
create 4 graphical cards when display starts. Show these cards.
Repeat 5x (4x for playfield, 1x for card to be set)

In this way the graphical screen will cost 192 bytes.
The UDG for the cards are 45 bytes.
Value display is created from the ROM with a nice twist to make it not the ROM character.

A lot of work to do, but a nice challenge for sure.
User avatar
1024MAK
Posts: 5118
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: Thinking of a 1K hires game .....

Post by 1024MAK »

Like ;) :D

Mark
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Buffer Amp

:!: Standby alert :!:
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :!:
Looking forward to summer later in the year.
dr beep
Posts: 2080
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Thinking of a 1K hires game .....

Post by dr beep »

Based on the cardvalue (suit and number) all cards can now be generated.
Next step is to do the generating while displaying.
Now a single card is displayed. Next step complete screen of placed cards.
dr beep
Posts: 2080
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Thinking of a 1K hires game .....

Post by dr beep »

Cardgeneration during screenrefresh is a tough job to do....
Still short in time and memory ...
dr beep
Posts: 2080
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Thinking of a 1K hires game .....

Post by dr beep »

It looks like the fieldarea can be displayed within 1 screen, but now the stack must be added. Timing remains an issue....
dr beep
Posts: 2080
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Thinking of a 1K hires game .....

Post by dr beep »

Carddisplay now working, but stack must be added as well as some kind of cursor. Timing is a hard job.

Display will start with fake cards, creating a screen$
edge.jpg
edge.jpg (62.98 KiB) Viewed 2836 times
dr beep
Posts: 2080
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Thinking of a 1K hires game .....

Post by dr beep »

And the playfield when started
edge.jpg
edge.jpg (60.61 KiB) Viewed 2835 times
Post Reply