chrismaltby / gb-studio

A quick and easy to use drag and drop retro game creator for your favourite handheld video game system
https://www.gbstudio.dev
MIT License
8.52k stars 469 forks source link

Gb studio for android? #1039

Open flow1986 opened 2 years ago

flow1986 commented 2 years ago

Hi, as told in the Headline.

Will it be possible to have GB studio for android (phone)?

It would be nice to develop gameboygames on the go.

Greetings Flo

kenyonbowers commented 2 years ago

It could "technically" be possible. But the problem is that if they focus on that then the engine will not be worked on as much. So you could bring a laptop maybe?

animasodo commented 2 years ago

Also, and this was said multiple times in the server, it would be very impractical.

patrickmollohan commented 2 years ago

I ported GB Studio to the PinePhone (a non-Android, non-Apple, open sourced Linux-based phone) and the Raspberry Pi. It works, and works well in my experience, but that is because of the convergence feature of the PinePhone (where I can hook the phone up to a TV, keyboard, and mouse and use it as a desktop environment). On a phone (without convergence), it would be very impractical indeed, as mentioned above, even with rewrites to the UI, due to how much of the screen even a single scene would take up, let alone the rest of the UI and the virtual keyboard and such (imagine trying to place an actor in a very precise location in a scene on a screen as small as the average phone screen). A tablet may give you more room to work with, but would still be really small and would not make for an ideal environment to develop games on. If your phone has some convergence feature (I think some do, but never looked into what that means for Android), it might work like it does for my PinePhone, but you would still need the TV/monitor, keyboard, and mouse. Additionally, I think last time I checked on bringing GB Studio to Android/iOS, there were various issues getting Electron to play nicely with the touch screen, or with the operating systems in general. Don't remember what issues there were specifically, but it's not as trivial as what it was for the PinePhone/Raspberry Pi.

Spz2022 commented 1 year ago

Test in Termux?

essayharper commented 1 year ago

GB Studio is an open source electron application, with modification it could be built with Apache Cordova which does support android as an export method, and electron as a platform, I'll give it a go and let you know if I can accomplish anything.

essayharper commented 1 year ago

so yeah, as someone previously stated in this thread, electron does not work well with the touch screen, The application would need to have an entire UI built from the ground up for it.

MesaBlack commented 1 year ago

In my honest opinion, it's kinda like iMovie for iOS in some respects.

essayharper commented 8 months ago

For more information, I managed to build it not for stock android, but for wear os, in a virtual machine, I don't know why that worked but I still need to troubleshoot stock android.

essayharper commented 8 months ago

I might end up releasing the wear os version as a joke 👀

maxoakland commented 8 months ago

In my honest opinion, it's kinda like iMovie for iOS in some respects.

What do you mean by that? iMovie for iOS is very, very stripped down compared to iMovie for Mac so that's how I'm interpreting it and I think that would probably be an issue with GBStudio for mobile

TheRektafire commented 8 months ago

Test in Termux?

Yeah right now the best option just seems to be to build a c/c++ based GB assembler in termux and use that, not sure how easy that would be though since afaik the only proper GB assembler is rgbasm and thats part of rgbds so youd probably either have to try and build the entire rgbds toolchain or modify the build scripts to only build rgbasm, though building all of rgbds might not necessarily be an issue since I think most of the tools are command line tools so in theory they should all work on termux if you build them directly on the phone with termux clang, but once again i havent actually tried it myself yet so im not sure if it would work, other than that though it should be fairly easy to make games for 8 bit platforms in general on android since its not like they require particularly complex tools or file formats, worse comes to worse you could just write your music, maps, etc directly into assembly files and compile them at the same time as the game code, or you could make them in godot and export them with an editor plugin, thats one of the nice things about having a full game engine editor on android these days :)