Next 1K hires game, BREAKOUT

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

Next 1K hires game, BREAKOUT

Post by dr beep » Wed Aug 30, 2017 5:26 pm

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: 310
Joined: Wed Apr 22, 2009 9:22 am

Re: Next 1K hires game, BREAKOUT

Post by Shaun_B » Wed Aug 30, 2017 5:50 pm

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

Re: Next 1K hires game, BREAKOUT

Post by dr beep » Thu Aug 31, 2017 12:49 pm

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

Re: Next 1K hires game, BREAKOUT

Post by dr beep » Thu Aug 31, 2017 3:53 pm

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 268 times

dr beep
Posts: 1045
Joined: Thu Jun 16, 2011 7:35 am
Location: Boxmeer

Re: Next 1K hires game, BREAKOUT

Post by dr beep » Thu Aug 31, 2017 7:38 pm

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 256 times

dr beep
Posts: 1045
Joined: Thu Jun 16, 2011 7:35 am
Location: Boxmeer

Re: Next 1K hires game, BREAKOUT

Post by dr beep » Thu Aug 31, 2017 9:42 pm

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 249 times

Shaun_B
Posts: 310
Joined: Wed Apr 22, 2009 9:22 am

Re: Next 1K hires game, BREAKOUT

Post by Shaun_B » Fri Sep 01, 2017 4:12 am

Amazing - good work Dr!

User avatar
Paul
Posts: 859
Joined: Thu May 27, 2010 7:15 am
Location: Germanys west end

Re: Next 1K hires game, BREAKOUT

Post by Paul » Fri Sep 01, 2017 5:27 am

dr beep wrote:
Thu Aug 31, 2017 9: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: 1045
Joined: Thu Jun 16, 2011 7:35 am
Location: Boxmeer

Re: Next 1K hires game, BREAKOUT

Post by dr beep » Fri Sep 01, 2017 7:08 am

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

Re: Next 1K hires game, BREAKOUT

Post by dr beep » Fri Sep 01, 2017 11:47 am

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 217 times

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests