The X68000 games porting experiment

All 680x0 related coding posts in this section please.

Moderators: exxos, simonsunnyboy, Mug UK, Zorro 2, Moderator Team

Dal
Administrator
Administrator
Posts: 4090
Joined: Tue Jan 18, 2011 12:31 am
Location: Cheltenham, UK
Contact:

Re: The X68000 games porting experiment

Postby Dal » Mon Nov 19, 2012 10:32 pm

Er... Streetfighter 2?? Pleeeeeeease :D
TT030: 4MB/16MB + Crazy Dots, Mega"SST" 12, MegaSTE, STE: Desktopper case, IDE interface, UltraSatan (8GB + 512Mb) + HXC floppy emulator. Plus some STE's/STFM's

User avatar
CiH
Atari God
Atari God
Posts: 1098
Joined: Wed Feb 11, 2004 4:34 pm
Location: Middle Earth (Npton) UK
Contact:

Re: The X68000 games porting experiment

Postby CiH » Mon Nov 19, 2012 10:37 pm

wongck wrote::D Does that mean.... does that mean it will run on a CT6x?? :D


Yes. :wink:

Cheers
Sascha


Interesting, very interesting. What has been changed here to make it run on an 060 from when it (Pacmania) didn't before?
Last edited by CiH on Mon Nov 19, 2012 11:01 pm, edited 1 time in total.
"Where teh feck is teh Hash key on this Mac?!"

User avatar
nativ
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4087
Joined: Mon Jul 30, 2007 10:26 am
Location: South West, UK

Re: The X68000 games porting experiment

Postby nativ » Mon Nov 19, 2012 10:41 pm

Anima wrote:
EvilFranky wrote:So how are the sprites drawn at the moment? I assume the original X68000 code is drawing on the hardware sprites? So how have you replaced this? A basic software routine just to show the proof of concept? No Atari Blitter use?


Each X68000 sprite is 16 x 16 pixels in size (so in fact the Pacman and ghosts are composed of four native sprites). Each native sprite itself consists of four 8 x 8 pixels "character" ordered top-left, bottom-left, top-right, bottom-right. Each pixel in a row of these four characters is coded in one long word so that eight nibbles define the color index of each pixel in the referenced sprite palette. And this is what the Atari sprite routine is currently decoding in real time.

Cheers
Sascha



Would getting the peoples involved here ( Leonard/Oxygenes ) http://dhs.nu/video.php?spriterecord=yes be useful with the sprite routine? :D
Atari STFM 512 / STe 4MB / Mega ST+DSP / Falcon 4MB 16Mhz 68882 - DVD/CDRW/ZIP/DAT - FDI / Jaguar / Lynx 1&2 / 7800 / 2600 / XE 130+SD Card // Sega Dreamcast / Mega2+CD2 // Apple G4

http://soundcloud.com/nativ ~ http://soundcloud.com/nativ-1 ~ http://soundcloud.com/knot_music
http://soundcloud.com/push-sounds ~ http://soundcloud.com/push-records

User avatar
nativ
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4087
Joined: Mon Jul 30, 2007 10:26 am
Location: South West, UK

Re: The X68000 games porting experiment

Postby nativ » Mon Nov 19, 2012 10:47 pm

Dal wrote:Er... Streetfighter 2?? Pleeeeeeease :D



Final Fight I guess could also be another candidate? though that could also pool in the Mega CD version for 1GB Falcon game lol :D
Atari STFM 512 / STe 4MB / Mega ST+DSP / Falcon 4MB 16Mhz 68882 - DVD/CDRW/ZIP/DAT - FDI / Jaguar / Lynx 1&2 / 7800 / 2600 / XE 130+SD Card // Sega Dreamcast / Mega2+CD2 // Apple G4

http://soundcloud.com/nativ ~ http://soundcloud.com/nativ-1 ~ http://soundcloud.com/knot_music
http://soundcloud.com/push-sounds ~ http://soundcloud.com/push-records

User avatar
Anima
Atari Super Hero
Atari Super Hero
Posts: 655
Joined: Fri Mar 06, 2009 9:43 am
Contact:

Re: The X68000 games porting experiment

Postby Anima » Tue Nov 20, 2012 8:21 am

CiH wrote:Interesting, very interesting. What has been changed here to make it run on an 060 from when it (Pacmania) didn't before?


Not much. The game core itself runs on almost every system what is able to run M68000 binaries it should also run completely in "Fast RAM". However, the Atari specific code (sprites, graphics display) needs to be more compatible to the other systems but unfortunately I don't have any accelerated Atari to play with.

The advantage is that source code is available and you can make any changes you need to get it working. So even a native Firebee version is possible. :twisted: Probably the conversion of unsupported opcodes can be made in the disassembler. ;)

Cheers
Sascha

User avatar
Anima
Atari Super Hero
Atari Super Hero
Posts: 655
Joined: Fri Mar 06, 2009 9:43 am
Contact:

Re: The X68000 games porting experiment

Postby Anima » Tue Nov 20, 2012 8:26 am

nativ wrote:Would getting the peoples involved here ( Leonard/Oxygenes ) http://dhs.nu/video.php?spriterecord=yes be useful with the sprite routine? :D


Well, help is always appreciated. ;)

Cheers
Sascha

User avatar
Anima
Atari Super Hero
Atari Super Hero
Posts: 655
Joined: Fri Mar 06, 2009 9:43 am
Contact:

Re: The X68000 games porting experiment

Postby Anima » Tue Nov 20, 2012 8:34 am

Dal wrote:Er... Streetfighter 2?? Pleeeeeeease :D

nativ wrote:Final Fight I guess could also be another candidate? though that could also pool in the Mega CD


It depends on the binaries. For now the disassembler can only work with relocatable programs which are not self modifying. So we'll see... ;)

Cheers
Sascha

User avatar
nativ
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 4087
Joined: Mon Jul 30, 2007 10:26 am
Location: South West, UK

Re: The X68000 games porting experiment

Postby nativ » Wed Nov 21, 2012 9:11 pm

just another possible ;)

http://www.system16.com/hardware.php?id=571

http://en.wikipedia.org/wiki/Xexex

http://youtu.be/EkUTBkDyQQI

A 68000 Arcade Title 8) Heavily inspired by R-type and looking quite similar to Sturmwind
Atari STFM 512 / STe 4MB / Mega ST+DSP / Falcon 4MB 16Mhz 68882 - DVD/CDRW/ZIP/DAT - FDI / Jaguar / Lynx 1&2 / 7800 / 2600 / XE 130+SD Card // Sega Dreamcast / Mega2+CD2 // Apple G4

http://soundcloud.com/nativ ~ http://soundcloud.com/nativ-1 ~ http://soundcloud.com/knot_music
http://soundcloud.com/push-sounds ~ http://soundcloud.com/push-records

User avatar
wongck
Ultimate Atarian
Ultimate Atarian
Posts: 12002
Joined: Sat May 03, 2008 2:09 pm
Location: Far East
Contact:

Re: The X68000 games porting experiment

Postby wongck » Sun Nov 25, 2012 2:34 am

Tried to run Pacmania VGA on my CT63. It just goes blank and ESC does not comes out. Hardware reset.
I booted up with no AUTO programs and no ACC.

What resolution must I be on to see the screen?

I cannot try on 030 mode because my hd are on the CTPCI. Once in 030 mode, it does not see any hd.
My Stuff: FB/Falcon CT63+CTPCI_ATI_RTL8139 14+512MB 30GB HDD CF HxC_SD/ TT030 68882 4+32MB 520MB Nova/ 520STFM 4MB Tos206 SCSI
Shared SCSI Bus:ScsiLink ethernet, 9GB HDD,SD-reader @ http://phsw.atari.org
My Atari stuff for sale - click here for list

User avatar
Anima
Atari Super Hero
Atari Super Hero
Posts: 655
Joined: Fri Mar 06, 2009 9:43 am
Contact:

Re: The X68000 games porting experiment

Postby Anima » Sun Nov 25, 2012 7:30 pm

wongck wrote:Tried to run Pacmania VGA on my CT63. It just goes blank and ESC does not comes out. Hardware reset.
I booted up with no AUTO programs and no ACC.

What resolution must I be on to see the screen?

I cannot try on 030 mode because my hd are on the CTPCI. Once in 030 mode, it does not see any hd.


Well, thanks for trying, but I think that it needs some changes to run properly on accelerators yet. Recently I have improved the sprite routine and monitor detection for the Galaga 88 port from which PacMania will benefit as well.

A short Galaga 88 update:

I have found two nice cheats so that I can go through all the stages to test all stages of the game. This, however, has shown that on later stages the sprite count is really too high for the current sprite optimization for the stock Falcon to keep up. :(

Cheers
Sascha

EvilFranky
Atari Super Hero
Atari Super Hero
Posts: 846
Joined: Thu Sep 11, 2003 10:49 pm
Location: UK
Contact:

Re: The X68000 games porting experiment

Postby EvilFranky » Sun Nov 25, 2012 7:41 pm

Maybe there are some additional optimizations that can be applied? You are obviously a talented coder, but might be worth posting your routine so other experienced Falcon coders can look and make suggestions?

Just a thought! Great work though :grin:

Sent from my GT-I9100 using Tapatalk 2

User avatar
CiH
Atari God
Atari God
Posts: 1098
Joined: Wed Feb 11, 2004 4:34 pm
Location: Middle Earth (Npton) UK
Contact:

Re: The X68000 games porting experiment

Postby CiH » Sun Nov 25, 2012 8:38 pm

have found two nice cheats so that I can go through all the stages to test all stages of the game. This, however, has shown that on later stages the sprite count is really too high for the current sprite optimization for the stock Falcon to keep up. :(


Hmm, wonder how badly it slows down, and speculating how much difference the following accelerators would make?

1. Nemesis/Phantom overclockers - from 16MHz to 24/25MHZ so 50% faster than the stock machine.
2. Centurbo 2 (without Fastram) - from 16MHz to 50MHZ so better than 300% CPU than a stock Falcon and bus to 25MHz. :mrgreen:
"Where teh feck is teh Hash key on this Mac?!"

User avatar
Anima
Atari Super Hero
Atari Super Hero
Posts: 655
Joined: Fri Mar 06, 2009 9:43 am
Contact:

Re: The X68000 games porting experiment

Postby Anima » Sun Nov 25, 2012 8:58 pm

EvilFranky wrote:Maybe there are some additional optimizations that can be applied? You are obviously a talented coder, but might be worth posting your routine so other experienced Falcon coders can look and make suggestions?


Sure. I would like to know if someone is generally interested in helping to develop (and optimize) routines for the newer and faster Atari systems. Be warned: currently I am using the m68k-atari-mint toolchain assembler and the code itself is a mess. Not only because I have only one source file due to my lazyness. ;)

So who wants to help seriously? :megaphone:

Cheers
Sascha

P.S.: many thanks to Doug for his help and suggestions!
Last edited by Anima on Sun Nov 25, 2012 9:30 pm, edited 1 time in total.

User avatar
Anima
Atari Super Hero
Atari Super Hero
Posts: 655
Joined: Fri Mar 06, 2009 9:43 am
Contact:

Re: The X68000 games porting experiment

Postby Anima » Sun Nov 25, 2012 9:29 pm

CiH wrote:Hmm, wonder how badly it slows down, and speculating how much difference the following accelerators would make?

1. Nemesis/Phantom overclockers - from 16MHz to 24/25MHZ so 50% faster than the stock machine.
2. Centurbo 2 (without Fastram) - from 16MHz to 50MHZ so better than 300% CPU than a stock Falcon and bus to 25MHz. :mrgreen:


IMHO both accelerators are sufficient for an original gameplay experience. Just take a look at the current video.

Galaga 88 attract mode running on a stock Falcon:

http://www.youtube.com/watch?v=xe3LHDUOBUs

Cheers
Sascha

EvilFranky
Atari Super Hero
Atari Super Hero
Posts: 846
Joined: Thu Sep 11, 2003 10:49 pm
Location: UK
Contact:

Re: The X68000 games porting experiment

Postby EvilFranky » Sun Nov 25, 2012 9:39 pm

Major improvement from the previous version! I see some slow down on that later level, but seriously great work!!

Sent from my GT-I9100 using Tapatalk 2

User avatar
Anima
Atari Super Hero
Atari Super Hero
Posts: 655
Joined: Fri Mar 06, 2009 9:43 am
Contact:

Re: The X68000 games porting experiment

Postby Anima » Sun Nov 25, 2012 10:15 pm

EvilFranky wrote:Major improvement from the previous version! I see some slow down on that later level, but seriously great work!!


Thanks.

Unfortunately there are stages with even more sprites. :( I will upload another video showing that stage later on.

Also adding the text layer (player score, highscore, etc.) will be though as well. Since there are scrolling stages I consider converting them to sprites. Let's see how this works out. :D

Please note that these optimizations are beneficial for other X68000 ports as well. So the PacMania port will be almost equally playable when Galaga 88 port is being "complete".

I'll release a first version when the text layer is added. ;)

Cheers
Sascha

P.S.: the sound emulation is a different story but at least playing samples in PacMania is relatively easy (does anyone know a good ADPCM converter routine). ;)

EvilFranky
Atari Super Hero
Atari Super Hero
Posts: 846
Joined: Thu Sep 11, 2003 10:49 pm
Location: UK
Contact:

Re: The X68000 games porting experiment

Postby EvilFranky » Sun Nov 25, 2012 10:25 pm

Hmm, I'm not 100% sure but I think ADPCM was used in the TBL demos which were converted to the Falcon by Mikro??

EvilFranky
Atari Super Hero
Atari Super Hero
Posts: 846
Joined: Thu Sep 11, 2003 10:49 pm
Location: UK
Contact:

Re: The X68000 games porting experiment

Postby EvilFranky » Sun Nov 25, 2012 10:34 pm

Anima wrote:
EvilFranky wrote:Major improvement from the previous version! I see some slow down on that later level, but seriously great work!!


Thanks.

Unfortunately there are stages with even more sprites. :( I will upload another video showing that stage later on.

Also adding the text layer (player score, highscore, etc.) will be though as well. Since there are scrolling stages I consider converting them to sprites. Let's see how this works out. :D

Please note that these optimizations are beneficial for other X68000 ports as well. So the PacMania port will be almost equally playable when Galaga 88 port is being "complete".

I'll release a first version when the text layer is added. ;)

Cheers
Sascha

P.S.: the sound emulation is a different story but at least playing samples in PacMania is relatively easy (does anyone know a good ADPCM converter routine). ;)


Yeah I don't think many people are under the illusion that the Falcon was a 2D gaming power house, but it's great to see someone pushing it for all its worth. IMHO I think so far it's looked great and I have been pleasantly surprised by how well a standard Falcon has coped...with room for possible further optimization! If Doug Little has been providing advice then you are in good hands :wink:

This is a 65k colour screen, throwing loads of sprites around, remaining playable, with arcade quality visuals and the routines haven't been finished yet and the DSP is still there to be exploited for audio. Truly epic Sascha, thanks for doing something different for the Falcon :cheers:

P.S I have to agree with Dal...please consider Street Fighter 2!!! Even a tech demo would be amazing :twisted:

User avatar
CiH
Atari God
Atari God
Posts: 1098
Joined: Wed Feb 11, 2004 4:34 pm
Location: Middle Earth (Npton) UK
Contact:

Re: The X68000 games porting experiment

Postby CiH » Sun Nov 25, 2012 10:58 pm

IMHO both accelerators are sufficient for an original gameplay experience. Just take a look at the current video.

Galaga 88 attract mode running on a stock Falcon:


Yeah, loads better, just a little slowdown. A miracle on a stock Falcon, for which I take my non-existent hat off to you sir! - I'm not a coder, so unfortunately can't add value to this project, but I sure hope someone can.

I'll release a first version when the text layer is added. ;)


Greatly looking forward to it :cheers:
Last edited by CiH on Sun Nov 25, 2012 11:15 pm, edited 1 time in total.
"Where teh feck is teh Hash key on this Mac?!"

User avatar
dml
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 3472
Joined: Sat Jun 30, 2012 9:33 am

Re: The X68000 games porting experiment

Postby dml » Sun Nov 25, 2012 11:13 pm

Anima wrote:P.S.: many thanks to Doug for his help and suggestions!


From our conversations about sprites, the code already seem to be quite extensively optimised IMO. Can't think of much useful advice to give! :wink:

(I'll be interested to see what difference TT/FastRAM makes on an otherwise stock 16MHz 030 Falcon, just out of curiosity)

EvilFranky
Atari Super Hero
Atari Super Hero
Posts: 846
Joined: Thu Sep 11, 2003 10:49 pm
Location: UK
Contact:

Re: The X68000 games porting experiment

Postby EvilFranky » Sun Nov 25, 2012 11:16 pm

Is the blitter being used in the routines? I'm guessing it wouldn't be as fast as the 030 for these 'small' sprites?

User avatar
Anima
Atari Super Hero
Atari Super Hero
Posts: 655
Joined: Fri Mar 06, 2009 9:43 am
Contact:

Re: The X68000 games porting experiment

Postby Anima » Sun Nov 25, 2012 11:56 pm

EvilFranky wrote:Yeah I don't think many people are under the illusion that the Falcon was a 2D gaming power house, but it's great to see someone pushing it for all its worth.


To be honest: I was surprised how much potential a Falcon has. Especially if you are aware of the unfortunate Falcon system design. It's really astounding to see how good a conversion of an arcade quality game could be and there's still room for optimization. I.e. they are using a sprite caching mechanism on the X68000 because it has a limited sprite graphics buffer so this code could be eliminated on the Atari port for a good measure. Yes, unbelievable but true: the Atari Falcon has indeed an advantage over the X68000. :D

I am not sure about Street Fighter but I have taken a first look on Final Fight and it looks promising. However, the sprite count in this game is... well... fearsome. ;)

Cheers
Sascha

User avatar
Anima
Atari Super Hero
Atari Super Hero
Posts: 655
Joined: Fri Mar 06, 2009 9:43 am
Contact:

Re: The X68000 games porting experiment

Postby Anima » Mon Nov 26, 2012 12:03 am

dml wrote:From our conversations about sprites, the code already seem to be quite extensively optimised IMO. Can't think of much useful advice to give! :wink:

(I'll be interested to see what difference TT/FastRAM makes on an otherwise stock 16MHz 030 Falcon, just out of curiosity)


But... but I need another 50% speedup! :roll:

No, just kidding. Your help is really appreciated and most probably I'll come back to you with another issue. ;)

Cheers
Sascha

EvilFranky
Atari Super Hero
Atari Super Hero
Posts: 846
Joined: Thu Sep 11, 2003 10:49 pm
Location: UK
Contact:

Re: The X68000 games porting experiment

Postby EvilFranky » Mon Nov 26, 2012 12:04 am

Yeah lots of big sprites on screen at once in Final Fight, a step too far for a normal Falcon I would suspect. That's why I thought SFII would have been good because at least it is only 2 big sprites :angel:

User avatar
christos
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2314
Joined: Tue Apr 13, 2004 8:24 pm
Location: Greece
Contact:

Re: The X68000 games porting experiment

Postby christos » Mon Nov 26, 2012 12:07 am

Also sf2 has been proven to work.
Felix qui potuit rerum cognoscere causas.
My Atari blog

STOT Email address: stot(NoSPAM)atari(DOT)org


Social Media

     

Return to “680x0”

Who is online

Users browsing this forum: No registered users and 3 guests