Page 1 of 8

Game & Watch Core

Posted: Tue Jun 09, 2020 8:17 am
by MrSniffles
Looks like @pierco over on twitter has been working on a Game and Watch core!


Re: Game & Watch Core

Posted: Wed Jun 10, 2020 3:44 pm
by Moondandy
This is a nice preservation project, hopefully he pulls it off and is able to do the full library.

Re: Game & Watch Core

Posted: Wed Jun 10, 2020 4:19 pm
by LamerDeluxe
I saw that, that is really great. There are lots of LCD handhelds and VFD tabletops that are not going to work forever.

Re: Game & Watch Core

Posted: Thu Jun 11, 2020 12:57 am
by jumpbeatshoot
Excuse my ignorance, but how will it load games? Game & Watch doesn't have roms, right?

Re: Game & Watch Core

Posted: Thu Jun 11, 2020 11:29 am
by LamerDeluxe
I guess it would be a core per game, like the arcade games, it might need its own category.

Re: Game & Watch Core

Posted: Thu Jun 11, 2020 12:29 pm
by Sigismond0
MAME G&W ROMs of some sort, so they're out there. I'd expect the core to be similar. You'll likely have to supply the MAME ROM and background art for each game.

Re: Game & Watch Core

Posted: Thu Jun 11, 2020 5:27 pm
by wark91
in one of the creator twitter, it said it will propose a script to adapt games & watch datas from mame to use them of the core.

Re: Game & Watch Core

Posted: Mon Jun 15, 2020 2:49 pm
by Pierco
Yes this is correct, I made a script that merges the ROM, background image and the mask for LCD segments. I was fixing some bugs with the MCU last week and I will now start working on sounds. It should be a straightforward task as the piezo buzzer signals are also generated by the MCU.

Re: Game & Watch Core

Posted: Tue Jun 16, 2020 10:34 am
by Moondandy
That's great news! Do you plan to support all the G&W games, and do you think the core could be developed to support other non-G&W LCD games?

Re: Game & Watch Core

Posted: Tue Jun 16, 2020 4:32 pm
by Pierco
Only SM510 games are compatible so it should theoretically work with:

Turtle Bridge
Fire Attack
Snoopy Tennis
Oil Panic
Donkey Kong
Mickey & Donald
Green House
Donkey Kong II
Mario Bros
Rain Shower
Life Boat
... and other SM510 non-G&W games

I will try to implement the SM511 later.

BTW, audio is working now :)

My current problem is the joystick configuration. There's a layout of 3x4 possible keys so the only solution I've come up with is to encode the configuration into a few bytes in each game.

Re: Game & Watch Core

Posted: Wed Jun 17, 2020 9:41 am
by Moondandy
Nice one, good effort! Be nice to try the Zelda game down the line if that is possible in the future.

Seems people made some homebrew SM510 games
https://atariage.com/forums/topic/28257 ... ame-watch/

Re: Game & Watch Core

Posted: Thu Jul 16, 2020 5:10 pm
by MrSniffles
First release is up... https://github.com/pcornier/GnW_MiSTer

Thanks Pierco!

Re: Game & Watch Core

Posted: Thu Jul 16, 2020 8:37 pm
by rhester72
Erm...sorry for the newbie question, but where does one locate the necessary .bin files?

Re: Game & Watch Core

Posted: Thu Jul 16, 2020 8:51 pm
by jca
On Github if you go to tools instead of release you will find one sample bin file and a generator (without any explanation)

Re: Game & Watch Core

Posted: Fri Jul 17, 2020 4:44 am
by kathleen
This is an amazing news, thank you Pierco for your hard work, G&W is all my youth.

Re: Game & Watch Core

Posted: Sun Jul 19, 2020 8:37 am
by LamerDeluxe
Just tried it yesterday with the DKjr bin, which is my favorite G&W game. Really cool to be able to play these handheld games on MiSTer!

Is there a reason why the graphics have a low resolution? Can you get a higher resolution by creating your own bin?
The game seemed to respond sightly slowly and it sounded a bit different from a piezo speaker.

I'm really looking forward to be able to play the handheld games I like on MiSTer and try ones I've never played.

Re: Game & Watch Core

Posted: Mon Jul 20, 2020 3:06 pm
by Pierco
Thank you, I'm glad to see you tested it!

About low res images, this is because of the LCD, which does not allow for a tile based approach for VRAM. Unfortunately, the limitation of block ram on MiSTer forced me to use low res images. Maybe a FPGA guru can jump in the discussion and help? Can I use the SDRAM to create a VRAM pixel based? Will it be fast enough? I'm not sure.

About sound, it has been quickly implemented. I compared with the original device and it's very different for now. I will try to fix it but the priority is the MCU, which still has bugs, for example in DKjr bats never appear.

Re: Game & Watch Core

Posted: Tue Jul 21, 2020 1:56 am
by mrtomato
I have Romset with roms with *.mgw format - how to convert this for BIN?

Re: Game & Watch Core

Posted: Tue Jul 21, 2020 7:43 am
by ZigZag
mrtomato wrote: Tue Jul 21, 2020 1:56 am I have Romset with roms with *.mgw format - how to convert this for BIN?
I haven't tested yet but it seems you can extract the mgw using 7z. The extracted file had no extension so would need renamed to *.bin I guess.

Re: Game & Watch Core

Posted: Tue Jul 21, 2020 10:29 am
by mrtomato
ZigZag wrote: Tue Jul 21, 2020 7:43 am
mrtomato wrote: Tue Jul 21, 2020 1:56 am I have Romset with roms with *.mgw format - how to convert this for BIN?
I haven't tested yet but it seems you can extract the mgw using 7z. The extracted file had no extension so would need renamed to *.bin I guess.
I only tested only game provided with core, but also found there some tutorial for conversion, but only for Windows. Since I am not using Windows right now I have no idea what enter format roms should have for conversion to BIN. But i will test if simple renaming my roms to BIN work.

Re: Game & Watch Core

Posted: Tue Jul 21, 2020 4:12 pm
by Moondandy
Hopefully a kind person will make a pack of the compatible rom files, I had a quick look and couldn't find any roms.

Re: Game & Watch Core

Posted: Tue Jul 21, 2020 5:22 pm
by mrtomato
Moondandy wrote: Tue Jul 21, 2020 4:12 pm Hopefully a kind person will make a pack of the compatible rom files, I had a quick look and couldn't find any roms.
I've donwloaded this romset https://drive.google.com/file/d/1ouABwh ... 86rko/view but games are in *.mgw format. I do not have any idea how to convert them to BIN.

Re: Game & Watch Core

Posted: Wed Jul 22, 2020 1:42 am
by Sigismond0
Once the core is complete and the conversion tool is documented, I'm sure someone will make that happen.

Re: Game & Watch Core

Posted: Thu Jul 23, 2020 1:03 am
by eightbit
This is awesome news! I am really looking forward to this core for sure!

Re: Game & Watch Core

Posted: Thu Jul 23, 2020 9:46 pm
by Moondandy
Thanks for the files Mr Tomato, what guide were you looking at?

Re: Game & Watch Core

Posted: Fri Jul 24, 2020 9:38 am
by mrtomato
Moondandy wrote: Thu Jul 23, 2020 9:46 pm Thanks for the files Mr Tomato, what guide were you looking at?
I found that on GitHub page there is some html file to "port" games but, I am looking for clean way to convert roms from that pack that I posted to BIN files.

https://github.com/pcornier/GnW_MiSTer/ ... ster/tools

Also read me isn't completed yet for now how to use this, so core author posted one game that for now is playable by this core

Re: Game & Watch Core

Posted: Sun Aug 02, 2020 3:22 pm
by Moondandy
Haven't seen any mention of this but Pierco released this core of Scramble

https://www.youtube.com/watch?v=nFq4X3c_DAc

https://github.com/pcornier/TomyScramble_MiSTer

Hopefully will be added to Main soon, would be the first real update in awhile.

Re: Game & Watch Core

Posted: Tue Aug 18, 2020 4:05 pm
by Moondandy

Re: Game & Watch Core

Posted: Tue Aug 18, 2020 4:33 pm
by rhester72
I assume there's no way to get it to display vertically on a horizontal HDMI display?

Re: Game & Watch Core

Posted: Tue Aug 18, 2020 8:11 pm
by Moondandy
That sounds like a good feature request.