What is an ideal file size?

Ideas and discussion about publishing and distributing your games

Post » Fri Dec 16, 2016 8:55 am

Hi,

I've looked around and can see lots of posts about how to keep the file size small, but I can't find anything on what is an 'good' size?

So far my first level is 26mb, the following levels will use a lot of the same graphics as the first, but I think the finished game will be around 50mb.

Any idea what a good size should be?

Many thanks
Mark
B
10
S
3
Posts: 55
Reputation: 802

Post » Fri Dec 16, 2016 12:24 pm

Generally, there isn't any "perfect size", since the size varies hugely from project to project.
It depends on the amount of images you use, how well you use them etc.

Some pieces of advice to keep your program's size small:
  • Whenever possible, use Tiled Backgrounds instead of big sprites
  • Whenever possible, use functions instead of repeating the same code multiple times (no huge impact on file size, but gets more important when your project get bigger)
  • Use Tilemaps when possible instead of multiple Sprites
  • Try to use many instances of one Sprite instead of using multiple different sprites
  • If your game works online, you can load images via AJAX from a server to keep the program size low
There is much, much more to it than just that.
Take a look at this tutorial:
Export time optimization

and at this post.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091


Return to Distribution and Publishing

Who is online

Users browsing this forum: No registered users and 0 guests