bevy_game_template icon indicating copy to clipboard operation
bevy_game_template copied to clipboard

[Feature Request] iOS & Android template

Open maxsophya opened this issue 3 years ago • 3 comments
trafficstars

Now iOS is supported, and Android is soon to be supported, can we please get template for how to get these platforms to work?

maxsophya avatar Jul 11 '22 15:07 maxsophya

I am unsure if this should be in the same template or separate. I think in most cases you would either target desktop + web, or mobile devices, so I am leaning towards a second template that combines iOS and Android. What do you think?

NiklasEi avatar Aug 09 '22 20:08 NiklasEi

@NiklasEi I'd rather have it all in one template, providing it was straightforward to remove stuff you don't want.

But this is your project, do it how you want! 😄

CleanCut avatar Aug 20 '22 19:08 CleanCut

That's good to know 🙂 I'll just start playing around with Bevy mobile and see if I can fit it nicely into this template.

NiklasEi avatar Aug 21 '22 08:08 NiklasEi

I got Android to work :partying_face: It needs a bit more cleanup, but should land shortly. For iOS I currently do not have a setup and would have to rely on a contribution.

NiklasEi avatar Jun 25 '23 12:06 NiklasEi

Nice!

I have iOS device(s). I'm happy to test if someone has something specific to test, but I don't have time to figure it out from scratch at the moment.

CleanCut avatar Jun 26 '23 17:06 CleanCut

I have an iOS device and would be willing to put in some effort to figuring it out, but only once I can free some time to do so. I am also looking forward to the Android setup.

@NiklasEi for what it's worth, I'm developing an application which is the same across desktop/mobile/tablet. The UI is responsive, and there are some platform-specific customizations, but it is a single codebase for all. Android and iOS support is currently aspirational, however.

maaku avatar Jun 26 '23 21:06 maaku

I have access to a mac for a short time and added an ios setup in #61 The app compiles fine and starts up on the simulator, but for some reason the "Play" button does not get rendered...

NiklasEi avatar Jul 17 '23 05:07 NiklasEi

#61 now runs fine for me in an iOS simulator.

It also includes release jobs for android and iOS now.

Things left:

  • [x] Fix touch positions for the sprite movement. When touching and holding, the sprite is supposed to move to the touch position, but that position is currently off on Android and iOS simulator.
  • [x] Verify that the release builds run on real devices for iOS and Android.
    • [ ] ~Do we need more Android targets?~ - not for now
  • [ ] ~See if there is a way to get app bundles for Android (the APKs cannot be released via the play store).~ Moved to #62
  • [ ] ~Maybe: switch to xbuild. This already works for android, but I can't figure out the configuration for iOS and there are no docs/examples...~ Maybe needed for #62, but iOS works OK without it for now

Some of these points could get moved out to another issue.

NiklasEi avatar Jul 24 '23 11:07 NiklasEi