Jump to content

Managing classes and loading of assets in a large scale game project


mariamdh
 Share

Recommended Posts

Hi,

I'm developing an educational game which has multiple mini-games (around 30 mini games). I have some questions regarding building such a large scale project.

1. Loading Assets

Every mini game has different graphics and backgrounds. So I'm creating a sprite sheet for each mini game (characters, UI etc), and keeping the background as a separate asset from the sprite sheets.

I am then loading all the assets together at the start of the game, and then referring to it when I load each mini game.

Is this method of loading the best approach to developing a large scale game?

2. Managing Loading and Unloading of each mini game

Each mini game is a separate class of a container type. When I load a mini game for the first time, I create the scene with the textures and logic. When I exit the mini game, I only set the visibility of that class to false and reset some variables.

A player can play Game1, exit it and play Game2, and then come back and play Game1 again.

I'm not sure if using visibility is the best approach or should I use addChild/removeChild everytime I load/unload the game. 

 

So far, I've not had any issues with memory, because I haven't developed that many mini games. But as I am going deeper into building this, I worried about the best approaches to use in building this game.

Looking forward to knowing some thoughts on this.

Thanks.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...