Create spritesheet
Spritesheets are registered on the client side.Basic setup
Add your first spritesheet inconfig/config.client.ts:
File location
Place the image where the client can load it, for example:Use the spritesheet
Once registered, you can assign it from the server:Recommended flow
- Create the image file
- Register it in
config.client.ts - Use
player.setGraphic("hero") - Test it in your first map