New 1K hires game in progress: Artillery Duel

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
User avatar
-B-
Posts: 26
Joined: Wed Jul 16, 2014 12:12 pm

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

Post by -B- »

Interesting!
Also, seeing the example picture at the top of the thread made me wonder; have you ever made a 1k game that makes use of the Chroma colour facilities?

-B-
dr beep
Posts: 2176
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

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

Post by dr beep »

-B- wrote:Interesting!
Also, seeing the example picture at the top of the thread made me wonder; have you ever made a 1k game that makes use of the Chroma colour facilities?

-B-
No I have not. I have added ZXPAND-joystick when possible or redefined keys, but never colour.
A bit dull even since the interface provides 16K memory as well.

The screen was an example of the game from an ATARI 2600.
Last edited by dr beep on Tue Nov 15, 2016 7:47 pm, edited 1 time in total.
dr beep
Posts: 2176
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

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

Post by dr beep »

In development:

The display of the screen is already ok, but the building of the screen had a few flaws.
Most are now solved. Still 1 that needs attention.
Not such a big thing. Most of the time the display is correct, but I still need to find the bug.
dr beep
Posts: 2176
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

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

Post by dr beep »

Final displaybug solved.
The displaybuffer got filled when RND was 25. Now max value of RND is 24.

Time to code the actual gameplay.
dr beep
Posts: 2176
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

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

Post by dr beep »

Starting on shooting the cannonball.
First test on movement and display look promising.

A bit slow to get the tension how the cannonball will fly to the opponent.
Are you right and will he meet doom or do you miss completely.
dr beep
Posts: 2176
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

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

Post by dr beep »

dr beep
Posts: 2176
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

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

Post by dr beep »

Getting somewhere...

Angle and speed can be set. Next to do, shooting with settings.

Free memory: 63 bytes
Game.png
(64.92 KiB) Downloaded 257 times
dr beep
Posts: 2176
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

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

Post by dr beep »

Formula is a bit of a problem.

Size, calculation and pixeldisplay is still a problem.

Method of claypigeon might save bytes combined with 2 formulas
for x(t) and y(t)
dr beep
Posts: 2176
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

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

Post by dr beep »

12 bytes left and only things to do:

Loopcounter
Plotting according to formula
End of game test

Need to make room or shorter routines.
dr beep
Posts: 2176
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

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

Post by dr beep »

Positive: My Bresenham is shorter than ZX Spectrum ROM
Negative: Still way too long.

I will go for a different approach.
Either not true line from y0,x0 to y1,x1
or calculating yn=(y1-y0)*(xn-x0)/(x1-x0)+y0 and skipping some points on the line.

Not a problem since the cannonball must follow the line, not be the line.
Post Reply