Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - GBDK-2020 gets support for SMS/GG targets

Reply to topic
Author Message
  • Joined: 09 Aug 2021
  • Posts: 30
Reply with quote
GBDK-2020 gets support for SMS/GG targets
Post Posted: Tue Aug 24, 2021 9:29 pm
Hi!

I'm working on adding support for SMS and GG targets to GBDK-2020.

Develop branch already contains crt, some minimal library (including console output) and toolchain, that supports compiling for SMS and GG, and also there are few cross-platform SMS/GG/GB examples.

We also have GBDK-2020 support discord server, here is the invite link.

I'm also looking forward for your suggestions and help.

https://discord.gg/pg7YhK36
  View user's profile Send private message
  • Joined: 09 Aug 2021
  • Posts: 30
Reply with quote
Post Posted: Mon Aug 30, 2021 11:34 am
i have some progress with the library and cross-platform examples.

unfortunately, i don't have real hardware, can anyone check these roms for me? looking forward for your help
sms.zip (5.57 KB)
master system GBDK-2020 examples
gg.zip (13.61 KB)
game gear GBDK-2020 examples

  View user's profile Send private message
  • Joined: 09 Aug 2021
  • Posts: 30
Reply with quote
Post Posted: Mon Aug 30, 2021 11:36 am
source code of those examples can be found in the public GBDK-2020 github repository. unfortunately, forum does not allow me to post links yet.

https://github.com/gbdk-2020/gbdk-2020/tree/develop/gbdk-lib/examples/cross-plat...
  View user's profile Send private message
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 8415
  • Location: Paris, France
Reply with quote
Post Posted: Mon Aug 30, 2021 1:52 pm
(edited in your link, from next post you should be able to post links)
  View user's profile Send private message Visit poster's website
  • Joined: 09 Aug 2021
  • Posts: 30
Reply with quote
Post Posted: Mon Aug 30, 2021 2:54 pm
thank you
  View user's profile Send private message
  • Joined: 09 Aug 2021
  • Posts: 30
Reply with quote
Post Posted: Thu Sep 02, 2021 3:30 pm
Most recent binary builds for Windows, Linux and MacOS can be found here: https://github.com/gbdk-2020/gbdk-2020/actions under "GBDK Build and Package"
  View user's profile Send private message
  • Joined: 29 Mar 2012
  • Posts: 714
  • Location: Spain
Reply with quote
Post Posted: Fri Sep 03, 2021 6:48 am
Thanks Toxa!
  View user's profile Send private message
  • Joined: 09 Aug 2021
  • Posts: 30
Reply with quote
Post Posted: Sat Sep 04, 2021 3:00 pm
funny multi-threaded "game" example: https://github.com/untoxa/a_kanoid
  View user's profile Send private message
Revo
  • Guest
Reply with quote
Post Posted: Sun Sep 05, 2021 11:08 am
Amazing project!

I tried metasprites.sms and scroller.sms (the version posted here) and a_kanoid.sms (the version posted on discord) on real hardware (SMS1 FR Hang On with everdrive).

metasprites.sms : perfect !

scroller.sms : scrolling text doesn't display at all, only text corner up left.

a_kanoid.sms: seems like you're not cleaning the VRAM correctly, so lot of garbage depending of what was displayed before booting the game. To see what I'm talking about, fix the header/checksum for SMS, use Emulicous with a real BIOS (I personally use Hang On one).
 
  • Joined: 09 Aug 2021
  • Posts: 30
Reply with quote
Post Posted: Sun Sep 05, 2021 7:42 pm
Revo wrote
a_kanoid.sms: seems like you're not cleaning the VRAM correctly, so lot of garbage depending of what was displayed before booting the game.

fixed: https://github.com/gbdk-2020/gbdk-2020/commit/bbfde1a7cd6eb70e978b9f7bb4f1f379a8...
  View user's profile Send private message
  • Joined: 09 Aug 2021
  • Posts: 30
Reply with quote
Post Posted: Sun Sep 05, 2021 7:49 pm
Revo wrote
fix the header/checksum for SMS

SMS header fix: https://github.com/gbdk-2020/gbdk-2020/commit/ed2f5698c12b8e61bf224db6284a5df54a...
  View user's profile Send private message
  • Joined: 09 Aug 2021
  • Posts: 30
Reply with quote
Post Posted: Mon Sep 06, 2021 3:37 pm
Last edited by toxa on Fri Sep 10, 2021 9:30 pm; edited 1 time in total
as a proof-of-concept, i ported my "color lines" game boy remake to the game gear.

ps: original game boy version is here: https://untoxa.itch.io/color-lines
colorlines.png (9.17 KB)
screenshot
colorlines.png
colorlines-GG.zip (9.04 KB)
color lines GG
colorlines-SMS.zip (8.97 KB)
color lines SMS

  View user's profile Send private message
  • Joined: 09 Aug 2021
  • Posts: 30
Reply with quote
Post Posted: Thu Sep 09, 2021 10:07 pm
I ported "Black Castle", homebrew game by 0x7f. It works fine on GG, but even better on SMS because of scroll inhibit of the HUD.

Sources and rom can be found here: https://github.com/untoxa/BlackCastle

No sound and music yet. Also missing flipped sprites. Work in progress.
blackcastle.jpg (42.84 KB)
blackcastle.jpg

  View user's profile Send private message
  • Joined: 17 Feb 2020
  • Posts: 569
  • Location: United States
Reply with quote
Post Posted: Sat Sep 11, 2021 11:48 pm
toxa wrote
as a proof-of-concept, i ported my "color lines" game boy remake to the game gear.

ps: original game boy version is here: https://untoxa.itch.io/color-lines

Goddamn, the music in the Game Boy version is literally lit.
  View user's profile Send private message
  • Joined: 09 Aug 2021
  • Posts: 30
Reply with quote
Post Posted: Fri Sep 24, 2021 9:16 pm
GBDK-2020 v.4.0.5 with cross-platform support was released: https://github.com/gbdk-2020/gbdk-2020/releases/tag/4.0.5

Release notes:

gbdk-4.0.5
    - Support for Sega Master Sysyem/Sega Game Gear
        - z80 library which provide compatibility layer as well as platform-specific functions
        - support for the new targets on the toolchain side
        - cross-platform examples (gnu make is required)
    - Library fixes/improvements
        - low level register/constant definitions for all targets
        - DEVICE_* constants
        - BANK* macros
        - some headers were moved from gb/* into gbdk/*
            - bcd.h, console.h, far_ptr.h, font.h, gbdecompress.h, metasprites.h
        - new headers:
            - gbdk/platform.h: includes specific platform headers depending on the target
            - gbdk/incbin.h: INCBIN* macros for including of raw binary data
            - gbdk/rledecompress.h: RLE decompression functions
        - itoa()/uitoa()/ltoa()/ultoa() require radix parameter (GB target ignores it and assumes radix is 10)
        - fixed get_bkg_tile_xy()
        - other minor fixes/enhancements
    - Toolchain
        - lcc
            - ability to pass target port/platform
            - support for linker files
        - bankpack
            - support for linker files
            - support for SMS/GG specifics
        - png2mtspr was renamed to png2asset
            - tilemaps/tiledata export without metasprite descriptors
            - CGB support
        - support for RLE compression in gbcompress
    - New examples
        - cross-platform examples
        - INCBIN example
        - on-the-fly RLE data decompression example
    - Updated documentation   
[/code]
  View user's profile Send private message
  • Joined: 09 Aug 2021
  • Posts: 30
Reply with quote
Post Posted: Mon Sep 27, 2021 9:12 pm
Simple variable width font engine: https://github.com/untoxa/VWF
VWF.png (17.63 KB)
GG screenshot
VWF.png

  View user's profile Send private message
  • Joined: 09 Aug 2021
  • Posts: 30
Reply with quote
Post Posted: Fri Oct 15, 2021 2:13 pm
Petris: new GameGear game by @bbbbbr: https://bbbbbr.itch.io/petris
petris.png (8.8 KB)
petris.png

  View user's profile Send private message
  • Joined: 05 Jun 2010
  • Posts: 701
  • Location: Pennsylvania, USA
Reply with quote
Post Posted: Fri Oct 15, 2021 4:20 pm
Awesome work, thanks!
  View user's profile Send private message Visit poster's website
  • Joined: 09 Aug 2021
  • Posts: 30
Reply with quote
Post Posted: Thu Oct 28, 2021 9:56 am
cross-platform preemptive multi-tasking library: https://github.com/untoxa/gameboy_preemptive_multitasking
screenshot.png (8.72 KB)
screenshot.png

  View user's profile Send private message
  • Joined: 09 Aug 2021
  • Posts: 30
Reply with quote
Post Posted: Wed Nov 17, 2021 9:26 am
cross-platform "GBVM" virtual machine implementation which happens to be the base of the GBStudio core: https://github.com/untoxa/gbvm/
example.png (8.39 KB)
example.png
scheme.png (759.12 KB)
scheme.png

  View user's profile Send private message
Reply to topic



Back to the top of this page

Back to SMS Power!