A game’s assets are all the font, sound, data, and image files that it uses. In this chapter you’ll learn how to implement a clear strategy for loading and managing assets so that they’re easy to use in your game code. You’ll learn how to create an assets object that stores references to all your game assets, and also how to create a preloader that loads assets and initializes your game when everything is ready.
Games usually use a lot of images, and managing all those images can often be a big headache if you’re not smart about how you handle them. But fear not! Game designers ...