Tyoob online! (BBC BASIC stress test)

for discussion of bbc basic for windows/sdl, brandy and more
Post Reply
User avatar
Richard Russell
Posts: 1668
Joined: Sun Feb 27, 2011 10:35 am
Location: Downham Market, Norfolk
Contact:

Tyoob online! (BBC BASIC stress test)

Post by Richard Russell » Thu Sep 17, 2020 6:55 pm

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: 4116
Joined: Thu Sep 24, 2009 12:22 pm
Location: Whitby/Sheffield
Contact:

Re: Tyoob online! (BBC BASIC stress test)

Post by jgharston » Thu Sep 17, 2020 7:57 pm

Wow! :)

Code: Select all

$ bbcbasic
PDP11 BBC BASIC IV Version 0.32
(C) Copyright J.G.Harston 1989,2005-2020
>_

User avatar
leenew
Posts: 4214
Joined: Wed Jul 04, 2012 4:27 pm
Location: Doncaster, Yorkshire
Contact:

Re: Tyoob online! (BBC BASIC stress test)

Post by leenew » Thu Sep 17, 2020 8:13 pm

Wow! indeed. :shock:

Lee.

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

Re: Tyoob online! (BBC BASIC stress test)

Post by scruss » Fri Sep 18, 2020 3:16 am

That's really impressive, Richard!

User avatar
Richard Russell
Posts: 1668
Joined: Sun Feb 27, 2011 10:35 am
Location: Downham Market, Norfolk
Contact:

Re: Tyoob online! (BBC BASIC stress test)

Post by Richard Russell » Fri Sep 18, 2020 10:23 am

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: 2192
Joined: Wed Feb 04, 2015 7:19 pm
Location: London
Contact:

Re: Tyoob online! (BBC BASIC stress test)

Post by pixelblip » Fri Sep 18, 2020 12:43 pm

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”