shadow of the beast ST (Mark mc cubbin here)

All about ST/STE games

Moderators: ICS, Moderator Team

User avatar
Cyprian
10 GOTO 10
10 GOTO 10
Posts: 3362
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: shadow of the beast ST (Mark mc cubbin here)

Post by Cyprian »

EvilFranky wrote: Sat May 01, 2021 1:53 pm
Cyprian wrote: Sat May 01, 2021 1:49 pm
EvilFranky wrote: Sat May 01, 2021 9:21 am Apologies it was Joefish who did the demo! Will amend my post...

https://www.youtube.com/watch?v=NRMOan38qRU
the impossible becomes possible. It runs at 50fps on a stock 520ST with 512kB ram.

well done @joefish


I've just submitted it to the Pouet: https://www.pouet.net/prod.php?which=88890
It's 25fps mate :)
25fps ? I'm a bit confused. I've just checked that under Steem Debugger and I see that the screen (trees, hills, grass, clouds) is changed every frame - 50fps not 25fps
ATW800/2 / V4sa / Lynx I / Mega ST 1 / 7800 / Portfolio / Lynx II / Jaguar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
DDD HDD / AT Speed C16 / TF536 / SDrive / PAK68/3 / Lynx Multi Card / LDW Super 2000 / XCA12 / SkunkBoard / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
http://260ste.atari.org
User avatar
Dbug
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 105
Joined: Tue Jan 28, 2003 8:42 pm
Location: Oslo (Norway)

Re: shadow of the beast ST (Mark mc cubbin here)

Post by Dbug »

It's clearly not running in 1vbl, and even the first comment on the videos says it:
It takes just over one frame to redraw the scenery, so runs at 25fps.
User avatar
Cyprian
10 GOTO 10
10 GOTO 10
Posts: 3362
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: shadow of the beast ST (Mark mc cubbin here)

Post by Cyprian »

Dbug, as I mentioned I'm confused. I've checked (under TOS 1.04 DE - 50Hz) more than hundred VBLs, and trees, hills, grass, clouds move on VBL basis.
Just for an example, below you can find eight (the forum limit) consecutive VBL screenshots taken under Steem Debuger.
On each of them the background is in a different position, and the sprites (the beast) differs on every second.
BEAST010_00001.png
BEAST010_00002.png
BEAST010_00003.png
BEAST010_00004.png
BEAST010_00005.png
BEAST010_00006.png
BEAST010_00007.png
BEAST010_00008.png
You do not have the required permissions to view the files attached to this post.
Last edited by Cyprian on Sat May 01, 2021 6:21 pm, edited 3 times in total.
ATW800/2 / V4sa / Lynx I / Mega ST 1 / 7800 / Portfolio / Lynx II / Jaguar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
DDD HDD / AT Speed C16 / TF536 / SDrive / PAK68/3 / Lynx Multi Card / LDW Super 2000 / XCA12 / SkunkBoard / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
http://260ste.atari.org
User avatar
Cyprian
10 GOTO 10
10 GOTO 10
Posts: 3362
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: shadow of the beast ST (Mark mc cubbin here)

Post by Cyprian »

ok, my fault,
previously I did some tests on 16Mhz and I just forgot to switch to 8Mhz :oops: :oops:

And that's true on 8Mhz it is 2VBLs
ATW800/2 / V4sa / Lynx I / Mega ST 1 / 7800 / Portfolio / Lynx II / Jaguar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
DDD HDD / AT Speed C16 / TF536 / SDrive / PAK68/3 / Lynx Multi Card / LDW Super 2000 / XCA12 / SkunkBoard / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
http://260ste.atari.org
User avatar
Dbug
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 105
Joined: Tue Jan 28, 2003 8:42 pm
Location: Oslo (Norway)

Re: shadow of the beast ST (Mark mc cubbin here)

Post by Dbug »

Lol, that explains.

Another thing to remember, the MegaSTe does not run at 16mhz: Only the CPU and the cache are, so ultimately for code that is doing intensive memory accesses, you don't have the double speed, you only get the double speed on the actual internal CPU operations, and eventually on the cached part of the code, but the loading of the bitmap data and the writing to screen memory would still be at 8mhz.
User avatar
Cyprian
10 GOTO 10
10 GOTO 10
Posts: 3362
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: shadow of the beast ST (Mark mc cubbin here)

Post by Cyprian »

yep,
ATW800/2 / V4sa / Lynx I / Mega ST 1 / 7800 / Portfolio / Lynx II / Jaguar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
DDD HDD / AT Speed C16 / TF536 / SDrive / PAK68/3 / Lynx Multi Card / LDW Super 2000 / XCA12 / SkunkBoard / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
http://260ste.atari.org
chicane
Captain Atari
Captain Atari
Posts: 269
Joined: Mon Jul 02, 2012 11:25 am
Location: Leeds, UK

Re: shadow of the beast ST (Mark mc cubbin here)

Post by chicane »

I've put together a quick video that shows in slow motion the drawing of a single frame in SOTB, and posted it on Twitter. Thought it might be of interest to folks here:

https://twitter.com/RetroRacing/status/ ... 0924097537
User avatar
Cyprian
10 GOTO 10
10 GOTO 10
Posts: 3362
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: shadow of the beast ST (Mark mc cubbin here)

Post by Cyprian »

nice one,
it looks that clouds and mountains are drawn in one go. is it correct?
ATW800/2 / V4sa / Lynx I / Mega ST 1 / 7800 / Portfolio / Lynx II / Jaguar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
DDD HDD / AT Speed C16 / TF536 / SDrive / PAK68/3 / Lynx Multi Card / LDW Super 2000 / XCA12 / SkunkBoard / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
http://260ste.atari.org
chicane
Captain Atari
Captain Atari
Posts: 269
Joined: Mon Jul 02, 2012 11:25 am
Location: Leeds, UK

Re: shadow of the beast ST (Mark mc cubbin here)

Post by chicane »

Yes - that video reflects exactly what's going on in the back buffer, so it looks like the background layer is drawn in one pass from top to bottom.
GagHalfrunt
Atarian
Atarian
Posts: 4
Joined: Sat Feb 20, 2021 3:32 pm

Re: shadow of the beast ST (Mark mc cubbin here)

Post by GagHalfrunt »

Really interesting thread, especially given how disappointed I was with the ST port. My brother got a second-hand C64 with it on cartridge and I think I enjoyed it more on there!

If we are talking STe, I still get surprised when people talk about 512KB. Back in the day I was a poor kid with my 520STe and even I had 1MB due to Atari's wise decision to use SIMMs. The price of them plummeted, mine were salvaged from a PC user and purchased second-hand. I would love to see a 1MB STe version just to prove it could be done although granted the gameplay wasn't the best.
MegaSTEarian
Atari Super Hero
Atari Super Hero
Posts: 550
Joined: Tue Aug 18, 2020 5:23 pm

Re: shadow of the beast ST (Mark mc cubbin here)

Post by MegaSTEarian »

A Falcon version (like the AGA conversions in the Amiga scene) would also be really good as well.
ragnar76
Atari Super Hero
Atari Super Hero
Posts: 513
Joined: Thu Apr 07, 2011 3:01 pm

Re: shadow of the beast ST (Mark mc cubbin here)

Post by ragnar76 »

Thanks for this very interesting thread. I've never played it on a st(e) but I was literally blown away when Ive played it on the lynx.
• FireBee • Falcon030/040/060 • MiSTer • TT • (Mega)STe • Suska III-B • Suska III-C • (Mega)ST •
User avatar
metalages
Captain Atari
Captain Atari
Posts: 484
Joined: Thu Jun 06, 2013 5:14 pm
Location: France

Re: shadow of the beast ST (Mark mc cubbin here)

Post by metalages »

GagHalfrunt wrote: Wed May 19, 2021 4:34 pm . I would love to see a 1MB STe version just to prove it could be done although granted the gameplay wasn't the best.
You have phaleon demo menu at least.
User avatar
Dbug
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 105
Joined: Tue Jan 28, 2003 8:42 pm
Location: Oslo (Norway)

Re: shadow of the beast ST (Mark mc cubbin here)

Post by Dbug »

metalages wrote: Thu May 20, 2021 9:34 pm
GagHalfrunt wrote: Wed May 19, 2021 4:34 pm . I would love to see a 1MB STe version just to prove it could be done although granted the gameplay wasn't the best.
You have phaleon demo menu at least.
The phaleon demo is running fine on STf as well, nothing STe specific in it other than the better color gradients :)

Also there are no ennemies, that makes things quite easier
User avatar
metalages
Captain Atari
Captain Atari
Posts: 484
Joined: Thu Jun 06, 2013 5:14 pm
Location: France

Re: shadow of the beast ST (Mark mc cubbin here)

Post by metalages »

In fullscreen if I well remember ?
User avatar
Dbug
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 105
Joined: Tue Jan 28, 2003 8:42 pm
Location: Oslo (Norway)

Re: shadow of the beast ST (Mark mc cubbin here)

Post by Dbug »

Left and right overscan, gave this "cinemascope" effect :)
joefish
Atari maniac
Atari maniac
Posts: 87
Joined: Thu Dec 05, 2013 4:15 pm

Re: shadow of the beast ST (Mark mc cubbin here)

Post by joefish »

Thanks for the interest again! Yes, my demo is updating at 25fps. It redraws about 80% of the screen in one frame. To finish off the fence at the bottom and add the software sprites tips it into the next frame, but then it's just sitting idle for about half a frame until the next vertical interrupt. As I say in the video notes, the main trick is to repaint the trees in just 2 shades of poo and a greenie so they only need 2 bitplanes.

The trick with that Phaleon demo is the parallax only really takes place above the main sprites' head. There's a different palette setup in that section so it only uses 8 colours leaving one whole bitplane for the background. But the character can never jump up as its colours don't exist in that upper palette. Side border removal is neat and I assume there's hardware scrolling going on there rather than repainting the entire screen from software.

Mind you, that's quite like the trick SotB3 does on the Amiga. The player is always in the bottom 1/3 of the screen. The parallax iceberg background is done with repeating sprites across the middle of the screen, but they're always kept above the player's head so that the same sprites can be multiplexed to display the actual player, and your lives, health, etc. on other rows of the screen.

I guess on an STE what you'd do is hardware scroll the whole screen in one direction, then software repaint one of the parallax layers to counter-scroll it so it looks like a different speed. I don't know if the blitter can single-out specific bitplanes to help. Unfortunately I know from software that updating two bitplanes isn't a huge amount faster than updating the whole screen, since you have to keep skipping over every 4 out of every 8 bytes as you go, when you could just be copying to all 8 bytes, but at least it could be done at 50fps.

The problem with 50fps software scrolling on a regular ST is you get a finer scroll, so need twice as much pre-shifted data to do it!
User avatar
Cyprian
10 GOTO 10
10 GOTO 10
Posts: 3362
Joined: Fri Oct 04, 2002 11:23 am
Location: Warsaw, Poland

Re: shadow of the beast ST (Mark mc cubbin here)

Post by Cyprian »

what about shrinking the screen area to Amiga size - 288 x 192? Would be possible to fit in one frame?
ATW800/2 / V4sa / Lynx I / Mega ST 1 / 7800 / Portfolio / Lynx II / Jaguar / TT030 / Mega STe / 800 XL / 1040 STe / Falcon030 / 65 XE / 520 STm / SM124 / SC1435
DDD HDD / AT Speed C16 / TF536 / SDrive / PAK68/3 / Lynx Multi Card / LDW Super 2000 / XCA12 / SkunkBoard / CosmosEx / SatanDisk / UltraSatan / USB Floppy Drive Emulator / Eiffel / SIO2PC / Crazy Dots / PAM Net
http://260ste.atari.org
User avatar
DarkLord
Ultimate Atarian
Ultimate Atarian
Posts: 5790
Joined: Mon Aug 16, 2004 12:06 pm
Location: Prestonsburg, KY - USA

Re: shadow of the beast ST (Mark mc cubbin here)

Post by DarkLord »

I'd like to see Shadow of the Beast (and a lot of other titles) be
re-made using Doug Little's game engine tools:

[A]tari [G]ame [T]ools - 2D prototyping engine for STE

I know a lot of work would be involved and it will probably
never happen...but one can dream. :)
Welcome To DarkForce! http://www.darkforce.org "The Fuji Lives.!"
Atari SW/HW based BBS - Telnet:darkforce-bbs.dyndns.org 1040
joefish
Atari maniac
Atari maniac
Posts: 87
Joined: Thu Dec 05, 2013 4:15 pm

Re: shadow of the beast ST (Mark mc cubbin here)

Post by joefish »

Cyprian wrote: Fri Jun 25, 2021 1:06 pmwhat about shrinking the screen area to Amiga size - 288 x 192? Would be possible to fit in one frame?
That wouldn't be saving a huge amount of time, but it'd help. I expect that if a better programmer went over my code with instruction-specific optimisations in mind, and shrinking the screen a little, and maybe had 1Meg on hand both for pre-shifted imagery, and hundreds of slightly different 'copy-one-line' functions prepared (rather than re-writing the copy function every time you scroll), you could just about get the scrolling done in one frame and thus get to 50fps.

But then it'd be a real stretch to mask in a large sprite like the player character as well. You'd probably have to cut away yet more of the screen to do that.

Return to “Games - General”