pitaman Posted June 17, 2015 Share Posted June 17, 2015 Hi everyone. I have a few questions that I would like some assistance with. As I'm getting into HTML5 game development as a technical designer/artist...I know that with an online game (especially html5), having your game assets require too many server calls is undesirable. What is a comfortable/safe number of server calls? When your dealing with multiple sprite sheets, is there a way to wrap multiple sprite sheets into one file? Not one big sprite sheet. What would be best practices for this?I am concerned because of mobile and/or other countries where bandwidth is an issue. I have the image asset file size part covered with Texturepacker, TinyPNG Re-using certain assets in smart ways, but I know that server calls can be a problem. Any help would be appreciated. Sincerely, Carlos Quote Link to comment Share on other sites More sharing options...
Account Deleted Posted June 28, 2015 Share Posted June 28, 2015 Well depending on your game, it varies. With server calls, you mean the game is pinging server code yah? With javascript development there IS NOT a lot of server code unless you use some PHP, NodeJS or other server language on top of it. The user downloads everything at the beginning and this is called your "client". Very little server interaction typically, aside from the initial connection to your webserver. Assuming you are using server code then . 1.) There is no safe number because there are a ton of factors you have to consider. Ping, Server specs, etc.2.) Caching is what you mean, and yes, but no? Combining sprite sheets will make one big sprite sheet, so I am confused by your desire.3.) Best practice are to code your game as best you can and if performance becomes a problem either upgrade your server or look into intensive methods (typically any loop or large filesizes can be bottlenecks). Kind Regards, ~Outrider Quote Link to comment Share on other sites More sharing options...
pitaman Posted August 17, 2015 Author Share Posted August 17, 2015 I apologize for the late response. Was swamped and forgot to go back and check for a reply. Thank you so much Outrider. You're awesome. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.