Idea for new 1K hires game : the rabbit game

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

Idea for new 1K hires game : the rabbit game

Post by dr beep »

During my vacation I found a boardgame that might fit 1K hires.

Needed: 6 cards with rabbits on it, 1 card with rabbit or carrot ( some free interpretation of the game by me)
Graphics with numbers 0-3
Die 1-6 (although this could become just a number)

First to do: define graphics needed for the gameplay
Second: set up screen
Third: code gameplay

However, at the moment I don't have the means to do it...
So later more .....
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Idea for new 1K hires game : the rabbit game

Post by dr beep »

Working on the graphics.

I need 12 graphics and I can fit them in 11x2x12 bytes (with double use of lines).
Only graphic to draw is a graphic of a carrot.

Next step after that: the display of the game in the hires routine.
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Idea for new 1K hires game : the rabbit game

Post by dr beep »

Building the screen ATM...

Small bug in the ear of rabbit 2
RABsr.png
RABsr.png (8.15 KiB) Viewed 3345 times
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Idea for new 1K hires game : the rabbit game

Post by dr beep »

1/3 of the screen ready.
Display of cards from player 1 and 2

Next: display of the board

Then: Display of player 3 and 4 (just a copy of player 1/2)
rab1.png
rab1.png (8.26 KiB) Viewed 3327 times
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Idea for new 1K hires game : the rabbit game

Post by dr beep »

First "full" hires screen.
Lowres text must still be added.

In this screen player 1 has drawn the carrotcard and may now select the missing card from any other player.
So player 4 or player 2 has rabbit 4 and he will win.

Now start coding the gameplay........
RABPLAY.png
RABPLAY.png (11.39 KiB) Viewed 3320 times
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Idea for new 1K hires game : the rabbit game

Post by dr beep »

I am working on saving bytes as much as possible.
I now have the start of machine code (the BASIC-line) fully coded in the sysvars which are reused after loading.
I also could fill a gap with a routine after rebuilding it and saving 1 byte to fit a gap needed to set UDG on right places.

Still need to add a lot. Now on 671 bytes.
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Idea for new 1K hires game : the rabbit game

Post by dr beep »

Another step added, now the deck of cards are placed over the sysvar.
Code to do that is coded on space needed for the players to store their cards, so no memory used for this initialization.
Other trick used:
Since graphics have even size, each graphic starts on even byte. Now in table use of bit 0 to indicate card is taken.

Also tested the shuffle routine, it shuffles the deck and next time it shuffles the shuffled deck and also RND based on timer.
In this way you can't ever get the same game twice. Shuffle routine also resets the cards taken by resetting bit 0.

To do:
Playersloop
Show board with available cards
AI computer or player
Throw a die
Do moves
Read cards and act accordingly
Winner-test

Size now: 720 bytes
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Idea for new 1K hires game : the rabbit game

Post by dr beep »

NEED TO KNOW:


I have altered my startup of hiresprograms but does it run on real hardware??

Could anyone load this file and reply if by pressing 1 to 4 the number of players are shown?
(if so, then loading and start is ok)

Is screen also perfect (lowres, no leading back lines etc...)
rg.p
(800 Bytes) Downloaded 144 times
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: Idea for new 1K hires game : the rabbit game

Post by sirmorris »

It loads and runs OK.

The screen is like this upon loading, no keys pressed.
20170730_165827.png
(1.04 MiB) Downloaded 288 times
I press 1,2,3,4 and the appropriate player piles appear. I will show 1 & 4 here, you should imagine 2 & 3 :D
20170730_165843.png
(699.99 KiB) Downloaded 288 times
20170730_165858.png
(969.08 KiB) Downloaded 288 times
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Idea for new 1K hires game : the rabbit game

Post by dr beep »

Thanks,

only small thing is the small triangle on the left side of the screen just below hires and before lowres that needs attention.
Post Reply