Breakout clone in 10 lines of BBC BASIC (max 80 chars per line)
Breakout clone in 10 lines of BBC BASIC (max 80 chars per line)
https://bbcmic.ro/#%7B%22v%22%3A1%2C%2 ... %5Cn%22%7D
Use left and right arrow keys
Edit: slightly modified version: https://bbcmic.ro/#%7B%22v%22%3A1%2C%22 ... .G.4%22%7D
Play in jsbeeb (with sound): https://bbc.godbolt.org/?embedBasic=0MO ... om=gxr.rom
Use left and right arrow keys
Edit: slightly modified version: https://bbcmic.ro/#%7B%22v%22%3A1%2C%22 ... .G.4%22%7D
Play in jsbeeb (with sound): https://bbc.godbolt.org/?embedBasic=0MO ... om=gxr.rom
Last edited by 0xC0DE on Fri Feb 05, 2021 3:02 pm, edited 2 times in total.
0xC0DE
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
Re: Breakout clone in 10 lines of BBC BASIC (max 80 chars per line)
Flippin' great!
Good luck in the comp!
Good luck in the comp!
Re: Breakout clone in 10 lines of BBC BASIC (max 80 chars per line)
Thank you! I wonder if other Stardotters are participating...
0xC0DE
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
Re: Breakout clone in 10 lines of BBC BASIC (max 80 chars per line)
Excellent work!
Impressive
Lee
Impressive
Lee
Re: Breakout clone in 10 lines of BBC BASIC (max 80 chars per line)
Thanks Lee!
0xC0DE
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
- FourthStone
- Posts: 1528
- Joined: Thu Nov 17, 2016 2:29 am
- Location: Brisbane, Australia
- Contact:
Re: Breakout clone in 10 lines of BBC BASIC (max 80 chars per line)
Nice game and well thought out logic such as a little randomness to prevent ball getting stuck horizontally Cracked 1k points
Couple of bytes you could reclaim with unused variables ME$ and YEAR
Couple of bytes you could reclaim with unused variables ME$ and YEAR
Re: Breakout clone in 10 lines of BBC BASIC (max 80 chars per line)
Thanks! I see you have read the source code well
0xC0DE
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
Re: Breakout clone in 10 lines of BBC BASIC (max 80 chars per line)
You don't seem to be on the list of entrants..?:
https://gkanold.wixsite.com/homeputeriu ... -list-2021
Re: Breakout clone in 10 lines of BBC BASIC (max 80 chars per line)
Need to finish the accompanying required documentation!lurkio wrote: ↑Sat Feb 20, 2021 11:04 amYou don't seem to be on the list of entrants..?:
https://gkanold.wixsite.com/homeputeriu ... -list-2021
0xC0DE
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
- Kecske Bak
- Posts: 753
- Joined: Wed Jul 13, 2005 8:03 am
- Location: Mélykút, Hungary
- Contact:
Re: Breakout clone in 10 lines of BBC BASIC (max 80 chars per line)
I had a quick play with getting the game to work on BBC Basic for SDL (attached). You'll need to rename it to OUTBREA.bbc. It was interesting as the centre of the "O" character is not in the centre of the "O" on this version of BBC Basic so the collision detection didn't work. What I did to get around this was define char 224 an O character to match the BBC Micro O.
I really take my hat off to you - the game is ingenious, and it's only when you try and take something like this to bits you realise just how clever it is.
I really take my hat off to you - the game is ingenious, and it's only when you try and take something like this to bits you realise just how clever it is.
- Attachments
-
- OUTBREA.txt
- Outbreak for BBCSDL
- (4.51 KiB) Downloaded 89 times
[url]https://kecskebak.hu]
Re: Breakout clone in 10 lines of BBC BASIC (max 80 chars per line)
Thanks! And great to see what is basically the reverse process of me getting the game down to 10 (short) lines of BASIC
You even spotted the statement that I removed in the final version (ball_y=5). It is indeed unneccesary.
You even spotted the statement that I removed in the final version (ball_y=5). It is indeed unneccesary.
0xC0DE
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
- Kecske Bak
- Posts: 753
- Joined: Wed Jul 13, 2005 8:03 am
- Location: Mélykút, Hungary
- Contact:
Re: Breakout clone in 10 lines of BBC BASIC (max 80 chars per line)
One of the most interesting things I found in your listing was how you had to move some bits of code out of what might be the most obvious order to put them in, so that you could keep the lines within the character limit. It's a really remarkable little program!
[url]https://kecskebak.hu]
- marcusjambler
- Posts: 1150
- Joined: Mon May 22, 2017 12:20 pm
- Location: Bradford
- Contact:
Re: Breakout clone in 10 lines of BBC BASIC (max 80 chars per line)
Very impressive game coding
Hope it wins!!
Hope it wins!!
Re: Breakout clone in 10 lines of BBC BASIC (max 80 chars per line)
Characters are 7 pixels wide in an 8-pixel-wide cell. I think the original BBC Micro's characters were 'right justified', i.e. they have a gap on the left but not on the right. I chose to make mine 'left-justified', with the gap on the right, so they are shifted left by one pixel. I think the main reason was to demonstrate that I had not simply reproduced the BBC Micro's character set, which is protected by Copyright.Kecske Bak wrote: ↑Sun Feb 28, 2021 5:48 pmIt was interesting as the centre of the "O" character is not in the centre of the "O" on this version of BBC Basic
Copyright is already a tricky issue for emulators, so using the original Acorn character set probably isn't a big deal for them. But in the case of BBC BASIC for Windows and BBC BASIC for SDL 2.0 I needed to be ultra careful in respect of IPR. Whether in practice the one-pixel shift helps I don't know, but it shows I thought about the issue.
Re: Breakout clone in 10 lines of BBC BASIC (max 80 chars per line)
Thank you! I'm pretty proud of my 4th place in the PUR-80 category
0xC0DE
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
Re: Breakout clone in 10 lines of BBC BASIC (max 80 chars per line)
You woz robbed!
Seriously, though, Outbreak is fantastic!
Incidentally, The Children, which won the "EXTREM-256" category is another cracking little game (once you get the convoluted emulation setup right!). Would be great to see a Beeb port of it...
Re: Breakout clone in 10 lines of BBC BASIC (max 80 chars per line)
Honestly, I haven't looked at many of the other programs. There is a lot to learn from these for sure!
0xC0DE
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro
"I program my home computer / Beam myself into the future"
Follow me on Twitter
Visit my YouTube channel featuring my games and demos for Acorn Electron and BBC Micro