+2 votes

Hello everyone, I’m looking for some advice on how to handle graphics. The game I’m working on is a 2D top-down shooter for mobile, with minimalistic and geometric style similar to 140 (http://www.carlsengames.com/games/140/).

Here are some doubts I have:
- Many sprites will need to be spawned together: is it better to use the draw() function instead of sprite nodes? Using sprites seems much easier, but I’m concerned for possibile lags.
- Is there a recommended size for character sprites in mobile games?

in Engine by (17 points)
edited by

for using many sprites vs _draw, it's no difference in my test.

1 Answer

+1 vote
Best answer

I could suggest you to try to do it first, if you do a good scene structure, should be easy to replace the problematic parts.

On mobile, the first problem you can get may be related to overlap/collision detection but that can be reduced by visibility enablers or techniques like the shower of bullets demo.

Look, this is the platformer demo on my horrible smartphone, still playable on this state (remember all these are animated rigid bodies):
enter image description here

Of course texture size can affect the performance but that is easilly solved by scaling down, you won't need 4k textures for a 32x32 sprite zoomed 0.5x on a small screen.


And better open another post for the rest of the questions not related to the title.

by (7,868 points)
selected by

Thank you for your answer! I created another post for the other questions as you suggested.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.