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: 2079
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

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

Post by dr beep »

Ok, minimal gameplay now working.

Still a few alterations needed on collission.

No bytes left, so seeking optimization before changing the display.
dr beep
Posts: 2079
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

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

Post by dr beep »

Collission working, but location must change for better play.

3 bytes needed, 1 available.
dr beep
Posts: 2079
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

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

Post by dr beep »

Collision now perfect.
Added check if rock is hit.
So tight coded that a bit of the stack can be shown on screen.

Only check on angle to be done. Code might have a small bug there.
Don't it will cost bytes.
dr beep
Posts: 2079
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

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

Post by dr beep »

Well,

there was indeed a flaw in the angle/speed routine.
Redundant code saved a byte, but repair costed 2 bytes.

Luckily I could save the byte on the lowres screen.
No bytes left for code.

The game is so tight coded that the stack might appear on the screen. This is repaired on the next screenupdate, so no problem.

Gameplay is a two player turned base game where you enter angle and speed.
Newline starts the game and input can't be corrected. Only numbers accepted.

Player with loaded cannon must fire.
Game ends when opponent is hit. No further input is asked.
Restart with Newline.
dr beep
Posts: 2079
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

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

Post by dr beep »

I had an idea last nicht and I was able to sav eed numerous bytes. I added windeffect and was able to reduce stacksize. So not only better gameplay but better screen as wel.
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

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

Post by sirmorris »

You never fail to Amaze me Dr. Beep :D
dr beep
Posts: 2079
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

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

Post by dr beep »

sirmorris wrote:You never fail to Amaze me Dr. Beep :D
Thanks, game 30 will be a ZX81 version of this game....

https://vector-runner-remix.tresensa.com/
Post Reply