Discuss Scratch

supersonic61223
Scratcher
100+ posts

The Beeb - a full BBC Microcomputer emulator

i found a port of pac man lol so im posting it here as a text file
mega link
https://mega.nz/file/8mgklIBL#mW1b4Vcm5YrDfJY79R88pYQoyR3ZktGI9XxNzd1wGlY

Last edited by supersonic61223 (May 19, 2021 17:31:16)


I know how to make games. It would be cool for someone to make a real AI inside of vanilla Scratch although it may be impossible.

I'm confused by ScratchBlocks
when I receive [scratchblocks v]
if <(confused) = [true]> then
broadcast [confusion v]
stop [brain v]
end
[/scratchblocks]
RokCoder
Scratcher
1000+ posts

The Beeb - a full BBC Microcomputer emulator

CyrusTheNiceGuy wrote:

Playing these games with these crude graphics really makes you realise how far we've come…
Some of the old games really hold up for playability though. I'm on level two of Boffin 2 and need to get to level 3! The text adventures are awesome, too. In fact, a lot of the games have got me wanting to go back for more!


Scratch dabbling for fun…

RokCoder
Scratcher
1000+ posts

The Beeb - a full BBC Microcomputer emulator

supersonic61223 wrote:

i found a port of pac man lol so im posting it here as a text file…
Thanks for finding and posting that one. You'll notice that all the images in this forum are entered as -
[code]
Enormously long pasted disk code
[/code]
Maybe edit your post so you can include the image itself? Though, with that said, it doesn't work properly in the emulator. It's clearly a modern hacked/updated version of Snapper (which is included in the project) but it goes horribly wrong shortly after starting a game. I might have a more detailed look into it later to see what's going on.


Scratch dabbling for fun…

supersonic61223
Scratcher
100+ posts

The Beeb - a full BBC Microcomputer emulator

ok lol i found it on this site if it helps http://www.bbcmicro.co.uk/index.php?rt_R=&rt_B=&rt_M=&rt_P=&rt_U=&rt_W=&rs_L=&rt_L=&search=&sort=b

I know how to make games. It would be cool for someone to make a real AI inside of vanilla Scratch although it may be impossible.

I'm confused by ScratchBlocks
when I receive [scratchblocks v]
if <(confused) = [true]> then
broadcast [confusion v]
stop [brain v]
end
[/scratchblocks]
supersonic61223
Scratcher
100+ posts

The Beeb - a full BBC Microcomputer emulator

i checked for more information and it seems to be a homebrew game that doesnt run on any other game's code

I know how to make games. It would be cool for someone to make a real AI inside of vanilla Scratch although it may be impossible.

I'm confused by ScratchBlocks
when I receive [scratchblocks v]
if <(confused) = [true]> then
broadcast [confusion v]
stop [brain v]
end
[/scratchblocks]
supersonic61223
Scratcher
100+ posts

The Beeb - a full BBC Microcomputer emulator

i did more looking (as in playing snapper) and it seems like it uses custom code the emu cant run

I know how to make games. It would be cool for someone to make a real AI inside of vanilla Scratch although it may be impossible.

I'm confused by ScratchBlocks
when I receive [scratchblocks v]
if <(confused) = [true]> then
broadcast [confusion v]
stop [brain v]
end
[/scratchblocks]
RokCoder
Scratcher
1000+ posts

The Beeb - a full BBC Microcomputer emulator

supersonic61223 wrote:

ok lol i found it on this site…
I know it's there. I was suggesting you edited your original post to add the text in using the code and /code approach rather than putting lots of external links into the forum


Scratch dabbling for fun…

supersonic61223
Scratcher
100+ posts

The Beeb - a full BBC Microcomputer emulator

it seems the code is made of alot of 5e's which could be a error in trying to convert it to a text format also i can only use the mega mirror :p

I know how to make games. It would be cool for someone to make a real AI inside of vanilla Scratch although it may be impossible.

I'm confused by ScratchBlocks
when I receive [scratchblocks v]
if <(confused) = [true]> then
broadcast [confusion v]
stop [brain v]
end
[/scratchblocks]
RokCoder
Scratcher
1000+ posts

The Beeb - a full BBC Microcomputer emulator

supersonic61223 wrote:

more roms (THESE ARE COMPRESSED)…
I really appreciate you sharing but please stop posting links. I would not recommend anyone to download a file from mega.nz and doubt the ST would be too happy about links to download sites being put in the forums.

By all means, share the disk images but (1) please ensure they work in the emulator (and let me know if they don't) and (2) Take a disk image of the individual SSD, drag it into the converter at www.rokcoder.com/bbcmicro and then paste it here between code and /code. Lots of E5 values are normal - they just show unused areas of a disk.


Scratch dabbling for fun…

supersonic61223
Scratcher
100+ posts

The Beeb - a full BBC Microcomputer emulator

oh should i remove the 5e's? also sorry

I know how to make games. It would be cool for someone to make a real AI inside of vanilla Scratch although it may be impossible.

I'm confused by ScratchBlocks
when I receive [scratchblocks v]
if <(confused) = [true]> then
broadcast [confusion v]
stop [brain v]
end
[/scratchblocks]
oxiti8
Scratcher
1000+ posts

The Beeb - a full BBC Microcomputer emulator

Out of curiosity, What was the idea behind your approach for audio here? I'm working on XO-CHIP sound emulation which uses a 16-byte buffer to play 1-bit audio, but I'm not sure how to handle the actual audio output.
I notice that here you use actual beep samples at certain frequencies and then pitch shift them, rather than the music block synth approach as seen in gbc.sb2 and the Beta for “BBC Micro Games”. How did you match the pitch to the specific frequency the game is looking for?
RokCoder
Scratcher
1000+ posts

The Beeb - a full BBC Microcomputer emulator

supersonic61223 wrote:

oh should i remove the 5e's? also sorry
No, just post whatever comes out of the converter


Scratch dabbling for fun…

RokCoder
Scratcher
1000+ posts

The Beeb - a full BBC Microcomputer emulator

oxiti8 wrote:

Out of curiosity, What was the idea behind your approach for audio here? I'm working on XO-CHIP sound emulation which uses a 16-byte buffer to play 1-bit audio, but I'm not sure how to handle the actual audio output.
I notice that here you use actual beep samples at certain frequencies and then pitch shift them, rather than the music block synth approach as seen in gbc.sb2 and the Beta for “BBC Micro Games”. How did you match the pitch to the specific frequency the game is looking for?
Nice to see someone digging inside the code!

The reason for the approach in the original project was due to Scratch being broken (in my opinion) with regards to sound. Any change of frequency or volume, even in a custom block, results in a yield. A yield in a non-refresh custom block. That effectively makes it impossible to use the frequency approach. Fortunately @garbomuffin fixed the issue in TurboWarp when I mentioned it to him.

Because I'm emulating the chip itself for the sound I need to be able to change frequencies very quickly. There are three sound channels and one noise channel on the BBC Micro (though the noise channel can also match pitch with one of the other sound channels to give variations of white noise for example). I've sampled sounds from the BBC Micro at a known pitch setting and, as I know what pitch the chip is going to for whatever values are passed to it, I can continually vary the sample to match the pitch. Note blocks wouldn't allow anything like that. The BBC Micro has envelope commands which can shape sounds, too, so that would have been impossible to match without this technique.

It actually turned out surprisingly good - it's very hard to distinguish the difference from an actual BBC Micro. Except for when it attempts speech synthesis where it fails quite badly. Square waves, something, something, something

Hope that helps. Feel free to fire more questions this way if you want any more specific information.


Scratch dabbling for fun…

colinmacc
Scratcher
1000+ posts

The Beeb - a full BBC Microcomputer emulator

Have you had any joy running “L - A Mathemagical Adventure” ?

Whenever I try and run it, it tells me the disk is write-protected.

Sample Projects

RokCoder
Scratcher
1000+ posts

The Beeb - a full BBC Microcomputer emulator

colinmacc wrote:

Have you had any joy running “L - A Mathemagical Adventure” ?

Whenever I try and run it, it tells me the disk is write-protected.
I'd tested that one before adding write-protect to all of the game disks. I've removed that ‘feature’ now as it was just put in as a nicety. I've not played the game before but a teacher told me it was really excellent. It looks very interesting so I think I might actually play it now! Takes a while to load though.


Scratch dabbling for fun…

supersonic61223
Scratcher
100+ posts

The Beeb - a full BBC Microcomputer emulator

RokCoder wrote:

supersonic61223 wrote:

oh should i remove the 5e's? also sorry
No, just post whatever comes out of the converter
but the code is too long to post

I know how to make games. It would be cool for someone to make a real AI inside of vanilla Scratch although it may be impossible.

I'm confused by ScratchBlocks
when I receive [scratchblocks v]
if <(confused) = [true]> then
broadcast [confusion v]
stop [brain v]
end
[/scratchblocks]
samq64
Scratcher
1000+ posts

The Beeb - a full BBC Microcomputer emulator

you mean somthing like this?

supersonic61223 wrote:

RokCoder wrote:

supersonic61223 wrote:

oh should i remove the 5e's? also sorry
No, just post whatever comes out of the converter
but the code is too long to post

Can you take a screenshot of what happens when you try to post?

It could be that your post is literally more than 200,000 characters long.
RokCoder
Scratcher
1000+ posts

The Beeb - a full BBC Microcomputer emulator

supersonic61223 wrote:

but the code is too long to post

I keep telling you how to post it! Type the following in your post -
[code]
Paste the very long disk code on this line
[/code]

It'll look huge but will be condensed into a single line if you check with the preview icon or hit send.


Scratch dabbling for fun…

Bearindigo105
Scratcher
5 posts

The Beeb - a full BBC Microcomputer emulator

555345522044495300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004B000000020003200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

A recursive loop program
(press break to stop the loop)

Last edited by Bearindigo105 (May 22, 2021 20:31:05)


Hello There.
supersonic61223
Scratcher
100+ posts

The Beeb - a full BBC Microcomputer emulator

i did that but the code is too long to posr

I know how to make games. It would be cool for someone to make a real AI inside of vanilla Scratch although it may be impossible.

I'm confused by ScratchBlocks
when I receive [scratchblocks v]
if <(confused) = [true]> then
broadcast [confusion v]
stop [brain v]
end
[/scratchblocks]

Powered by DjangoBB