Tyoob online! (BBC BASIC stress test)

for discussion of bbc basic for windows/sdl, brandy and more
Post Reply
Deleted User 9295

Tyoob online! (BBC BASIC stress test)

Post by Deleted User 9295 »

As the 'ultimate' test of the in-browser edition of BBC BASIC for SDL 2.0 I've ported David Williams's prizewinning Tyoob game to that platform. This is a fully-functional, no compromise, version to demonstrate just what can be achieved! It needs a fast PC and a reasonable internet connection to get the best results, but here it manages a fairly consistent 30 fps. This is pure BBC BASIC (no assembler) of course.

To try it you'll need an up-to-date (desktop) version of Google Chrome, Microsoft Edge or Mozilla Firefox (if you have a choice, it seems to run slightly more smoothly in Firefox than the other two, for whatever reason). If you have a suitable setup, click here and prepare to be amazed! :shock:
User avatar
jgharston
Posts: 5319
Joined: Thu Sep 24, 2009 12:22 pm
Location: Whitby/Sheffield
Contact:

Re: Tyoob online! (BBC BASIC stress test)

Post by jgharston »

Wow! :)

Code: Select all

$ bbcbasic
PDP11 BBC BASIC IV Version 0.45
(C) Copyright J.G.Harston 1989,2005-2024
>_
User avatar
leenew
Posts: 4900
Joined: Wed Jul 04, 2012 4:27 pm
Location: Doncaster, Yorkshire
Contact:

Re: Tyoob online! (BBC BASIC stress test)

Post by leenew »

Wow! indeed. :shock:

Lee.
User avatar
scruss
Posts: 653
Joined: Sun Jul 01, 2018 4:12 pm
Location: Toronto
Contact:

Re: Tyoob online! (BBC BASIC stress test)

Post by scruss »

That's really impressive, Richard!
Deleted User 9295

Re: Tyoob online! (BBC BASIC stress test)

Post by Deleted User 9295 »

scruss wrote: Fri Sep 18, 2020 3:16 am That's really impressive, Richard!
David Williams should take most of the credit, I simply ported it from BBC BASIC for Windows to BBC BASIC for SDL 2.0. It's a good example of a program which needed assembler code (or C) to achieve acceptable performance in BB4W, but doesn't in BBCSDL because it's backed by a hardware-accelerated 2D graphics engine (SDL2).

It's also fortuitous that the rings that make up the 'tube' are drawn as lots of small dots, this lent itself to being rendered using the SDL_RenderFillRects function. Had David not run out of time (it was a contest submission and won 2nd Prize) he planned for the later levels to be drawn with different shapes: that would have made a pure BASIC implementation impractical!
User avatar
pixelblip
Posts: 4050
Joined: Wed Feb 04, 2015 7:19 pm
Location: London
Contact:

Re: Tyoob online! (BBC BASIC stress test)

Post by pixelblip »

That is very impressive .....to see it work in the web browser as well...good show.
Post Reply

Return to “modern implementations of classic programming languages”