Next 1K hires game, BREAKOUT

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

Next 1K hires game, BREAKOUT

Post by dr beep »

Thanks to Shaun B I started BREAKOUT.

My thought about BREAKOUT. Why is it called BREAKOUT when you never break out.

So my version will be where you break through a wall and get bonus for remaining bricks.

Working on displayroutine right now.
Shaun_B
Posts: 474
Joined: Wed Apr 22, 2009 10:22 am

Re: Next 1K hires game, BREAKOUT

Post by Shaun_B »

That's a neat twist. The 'reaction' break-out that I spoke about, I think I'll give that a go.

Thanks,

Shaun.
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Next 1K hires game, BREAKOUT

Post by dr beep »

This will take some calculation to fit it all in 207 tstates for all linepossibilities and display timing at same moment.

1) is there a ball
2) is there a bat
3) display bricks

adjust pointers for next brick
test on end of screen

All in 207 tstates.
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Next 1K hires game, BREAKOUT

Post by dr beep »

It looks nothing, but it is a great first step. Especially the timing was hard to get in 207 Tstates.

The display of bat (only 2 pixels in size now) and the bricks (graphics still to be made) is working.
There is a test for the ball already, but the screen is not visible yet.
So next step: add the ball.
BO1.png
BO1.png (11.73 KiB) Viewed 3209 times
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Next 1K hires game, BREAKOUT

Post by dr beep »

A bit altered to make the balldisplay fit 207 Tstates.

Calculation is now ok, next is coding the balldisplay.
BO2.png
BO2.png (11.98 KiB) Viewed 3197 times
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Next 1K hires game, BREAKOUT

Post by dr beep »

Yes, ballscreen now added.

This is a selfmade display.
Next thing:
Screen is built by the game
Also to add: top and bottom bounce line.

You see up to 4 lines in a brick. Each hit will take of 1 line until break through..
BO3.png
BO3.png (7.73 KiB) Viewed 3190 times
Shaun_B
Posts: 474
Joined: Wed Apr 22, 2009 10:22 am

Re: Next 1K hires game, BREAKOUT

Post by Shaun_B »

Amazing - good work Dr!
User avatar
Paul
Posts: 1511
Joined: Thu May 27, 2010 8:15 am
Location: Germanys west end

Re: Next 1K hires game, BREAKOUT

Post by Paul »

dr beep wrote: Thu Aug 31, 2017 10:42 pm Also to add: top and bottom bounce line.
Hi Johan, is it possible to invert the border instead of adding bounce lines?
Might save some bytes?
In theory, there is no difference between theory and practice. But, in practice, there is.
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Next 1K hires game, BREAKOUT

Post by dr beep »

Paul,

It is not possible.

You could also invert the display.
However over the screen code is run and run code will always display as normal.

Still 2 lines added to the screen will cost about 40 bytes and I still have about 550 bytes free.
dr beep
Posts: 2060
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Next 1K hires game, BREAKOUT

Post by dr beep »

Now it is time to code the game....
ATM 435 bytes free, but when I move the screen to another location I will get app 100 bytes free.
BO4.png
BO4.png (11.25 KiB) Viewed 3158 times
Post Reply