1. Instead of loading 20 (1 for each player) textures into memory, the player sprites now all share the same texture.
2. Instead of having the team colors in the image, thus requiring a whole new sprite sheet image for each different kit color, the sprite sheet is key coded and the colors are changed in-game via a palette system.
Next we need templates for different kit designs.
This will allow for changing/creating kits in game.
Implementation of the shared texture is rather trivial. We let the team own a shared texture object and simply point all player renderable textures to this.
offside! |
No comments:
Post a Comment