Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

How to package a Unity game with lots of graphics

A topic by Louis Dubois created Jun 13, 2024 Views: 289 Replies: 4
Viewing posts 1 to 2

Hi,

I'm developing a roguelike game, that will have lots of 2D graphics. They are pngs that are not too heavy, but as there's 111 monsters and 40 levels, each one with a quantity of graphics (probably about 25), it may become heavy about 1 gb or so.

I've been already several months making the monsters and it may take me more to make the scenes, and the protagonist pics. But I also have to think on how to put it all in the game.

I am looking at info of marketplaces like Play Store, reading that the main apk can reach 200 mb, and it's already 187 for me. But they allow to have big asset packs.

On other places without those limitations, like here in Itch.io, it may be good anyway to have the main apk small, and load resources from other files.

So my questions:

  • Are Unity's asset bundles for packaging graphics and load/unload them ? So I could load the assets for the current level on runtime, then release them and load the next level ones?
  • If not, how do you handle situations like this for publishing your game on Play Store, or similar places?
  • And are these assets hosted on Play Store or do I have to own a server to host them?

Thank you! :)

(1 edit) (+1)

Unity's addressable system lets you load and unload assets as you need it. But you need your own server, Unity's cloud server or similar to accomplish that.

You should also consider the size and resolution of the images you're putting in. If your monster is larger than is needed to display on a 10" tablet - reduce its size and reimport it into Unity. 

You could also consider importing the monsters in components and putting them together in Unity - see sprite sheets.

Thank you for your reply and links :)
I saw this: https://support.google.com/googleplay/android-developer/answer/9859372?hl=en&utm...

It says Play Store hosts 1.5 Gb of resources? Or am I understanding it wrong?

(1 edit) (+1)

Yes, you can use that https://android-developers.googleblog.com/2020/06/introducing-google-play-asset-... They have a Unity plugin. I don't know if it still works (Amazon's plugin for Unity doesn't work).

But then you're limited to Google Play and wouldn't be able to publish your game anywhere else. With addressables, you can publish your game anywhere.

Thank you so much for your help!