Re: Four Color Deck of Cards Sprite
Posted: 27 June 2020, 23:39
I changed to a lighter blue to be more distinct from the black spades.
dontPreloadImage( image_file_name )
Using dontPreloadImage, you tell the interface to not preload a specific image in your img directory.
Example of use:
this.dontPreloadImage( 'cards.png' );
This is particularly useful if for example you have 2 different themes for a game. To accelerate the loading of the game, you can specify to not preload images corresponding to the other theme.
Another example of use: in "Gosu" game with Kamakor extension, you play with 5 sets of cards among 10 available. Cards images are organized by sets, and we only preload the images corresponding to the 5 current sets with ensureSpecificGameImageLoading( image_file_names_array ).