New 1K hires game in progress: Artillery Duel

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

New 1K hires game in progress: Artillery Duel

Post by dr beep »

I am working on game 29. This will be a 2 player artilleryshooter where you need to enter angle and speed to shoot a cannonball to the other. First to hit the other wins.

This is a classic game from the early '80ies and now in development in 1K hires on the ZX81.

I am struggling with the display.
It must become a combined OUTLAW, Marble Racer and Blocky screen to work.
Timing is an issue, but it looks like I have found a way out after hours of trying.

Game 30 will be another great final like game 10 and 20 was.

Example how it might look.
IMG_3600.PNG
(133.66 KiB) Downloaded 394 times
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: New 1K hires game in progress: Artillery Duel

Post by dr beep »

Only way to make the screen work is not to use the final line for display of bullit or cannon.
This can be done by 2 pointers in a address.
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: New 1K hires game in progress: Artillery Duel

Post by dr beep »

How to calculate a hiresscreenroutine.
(and still need to change the order a bit)
hiresdev.png
(95.15 KiB) Downloaded 375 times
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: New 1K hires game in progress: Artillery Duel

Post by dr beep »

And still a display error in the routine.
Now solved and screen even wider than in above routine.
This was an easier solution than the smaller screen.
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: New 1K hires game in progress: Artillery Duel

Post by dr beep »

Left canon now in display.
cannonleft.png
cannonleft.png (57.45 KiB) Viewed 3032 times
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: New 1K hires game in progress: Artillery Duel

Post by dr beep »

Now right cannon also added and 48K bug repaired.
Next thing is start a game and set up an initial left and right cannon on a platform.

Then formula to enter angle and speed and fire a cannonball.
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: New 1K hires game in progress: Artillery Duel

Post by dr beep »

Both cannons and each game the platformheight changes.
cannons.png
cannons.png (55.98 KiB) Viewed 3001 times
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: New 1K hires game in progress: Artillery Duel

Post by dr beep »

For the cannonball itself I need full lines over the screen.
Since the cannonball will look like

Code: Select all

.X
XXX
.X
I need 3 lines.

The making of the screen with the cannonball took some effort. Finally the hiresdisplay of the right cannon had a bug
The game can now show the cannons and the lines of the cannonball (even when this is on the line of a cannon).
Next thing to add: the plotting of the cannonball.
After that : shooting the cannonball. Part of the formula is already added in the program.

Remaining space : 261 bytes
To do:
Plotting, controls, part of formula, end of game test
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: New 1K hires game in progress: Artillery Duel

Post by dr beep »

Temporary 40 bytes filler is also codeable.
Remaining 301 bytes.
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: New 1K hires game in progress: Artillery Duel

Post by dr beep »

Cannon now properly loaded, ready to fire.
Post Reply