Game interface stylesheet: yourgamename.css.Do not make any CSS image sprite with dimensions that exceed 4096x4096 pixels or it will not work on mobile devices (Android max texture size is 4096 pixels, test your own browser at WebGL Report). you must gather several images in a single one. To limit the number of images load and make the game load faster, you must use CSS sprites, i.e. In order to allow for players to use the browser zoom without your images becoming pixelated, it's recommended to use higher resolution images than needed for the normal display of your interface, and to use the css property background-size to fit the image to the size you need for your interface. Svg images can be really efficient for icons or abstract images This is not recommended to use gif animated images as they can upset players, but for some specific interface element this could be useful. Should be used for images with transparency, such as non-square tokens, meeples, etc (combined into sprite).Ĭan be used for animated images. You don't need transparency for rounded card corners, it can be done using css. Jpg are usually lighter than Pngs, so please choose Jpg for big pictures (ex: game board, cards) when you don't need transparency to accelerate game load. Should be used for non-transparent images. You can use these image formats while building your game interface: player board of specific color or set of cards) it is better to separate them and "don't pre-load" since in any given game only some of them will be used. However if there is heavy game resources specific to a player (i.e. General recommendation it to have no more than dozen of image files, 2Mb max each. Note that you can tune the way images are loaded with Javascript method "dontPreloadImage" (see Game Interface Logic). For this reason, don't let in your img directory images that are not useful, otherwise it's going to slowdown the game load. To be correctly deployed your images file names should not contain spaces or parentheses.īe careful: by default, ALL images of your img directory are loaded on a player's browser when he loads the game. You must upload in img directory all images of your game interface. After you go there select the link to the game you want to upload images for. Metadata images are managed through the Game Metadata Manager. These images are no longer stored in project directory. Game metadata images are images of game box, banner, title, etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |