MIX-IT-UP Comp Entry - Tyoob

Started by BasicBoy, October 12, 2019, 18:58:58

Previous topic - Next topic

BasicBoy

The cross-platform BBCSDL versions of 'Tyoob' and 'Forces of Darkness' have been updated so that space bar is now the fire key.

The Mac OS X (macOS) DMG file has also been updated (thanks, Richard).

http://www.proggies.uk/bbcsdl/index.html


Direct links for macOS DMG files:

http://www.proggies.uk/bbcsdl/downloads/Tyoob.dmg
http://www.proggies.uk/bbcsdl/downloads/FoD.dmg


No 'autofire by default' yet, but I expect that will come at some point (or if it doesn't, I'll make sure any future shmups I make will have it!).


Steve Elliott

Congrats on going multi-platform.   :D

So BBC BASIC is using SDL and I thought SDL only allows integer adjustments for movement, does this version of BBC BASIC allow floating point movement for smoothness?
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

BasicBoy

Quote from: Steve Elliott on November 23, 2019, 14:52:20
Congrats on going multi-platform.   :D

So BBC BASIC is using SDL and I thought SDL only allows integer adjustments for movement, does this version of BBC BASIC allow floating point movement for smoothness?

Here's a reply from Richard Russell (to whom I'm grateful):

Quote
It depends on the version.  Starting with SDL 2.0.10 (the current
version) there are float variants of most of the rendering functions.
So for example there is now a SDL_RenderCopyF() which is like
SDL_RenderCopy() but coordinates are passed as floats instead of integers.

At the moment the editions of BBCSDL which I distribute with SDL
included (i.e. all except Linux/Raspbian) don't come with a recent
enough version to include those functions, but if it's something that is
deemed to be important I could update them.  Android and iOS are
trickier than the others in that respect, because of the build
processes, but I will need to face that issue sooner or later.

So if you wanted to experiment with float coordinates now you would need
to do it on Linux and ensure that you have installed SDL 2.0.10.  The
full list of float functions is: SDL_RenderDrawPointF(),
SDL_RenderDrawPointsF(), SDL_RenderDrawLineF(), SDL_RenderDrawLinesF(),
SDL_RenderDrawRectF(), SDL_RenderDrawRectsF(), SDL_RenderFillRectF(),
SDL_RenderFillRectsF(), SDL_RenderCopyF(), SDL_RenderCopyExF().

Of course SDL2 provides direct access to OpenGL if you need it (I rely
on that for 3D programs and for shader programs, and simply to achieve
the 'logical' GCOL plotting modes) so if float coordinates are vitally
important now you can bypass the SDL2 functions and call OpenGL
functions, but that's rather more work.

Steve Elliott

That's very interesting - thank you for investigating.  The last version I used was v2.0, which was integer based.
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Xerra

Tyoob working just fine on my system. Having space as a fire button means I can actually play it properly on the Mac now :-)
M2 Pro Mac mini - 16GB 512 SSD
ACER Nitro 5 15.6" Gaming Laptop - Intel® Core™ i7, RTX 3050, 1 TB SSD
Vic 20 - 3.5k 1mhz 6502

Latest game - https://xerra.itch.io/Gridrunner
Blog: http://xerra.co.uk
Itch.IO: https://xerra.itch.io/