Author Topic: Displaying variable images  (Read 718 times)

Offline pixlepix

  • Level 12
  • *
  • Posts: 90
  • Reputation: +0/-0
    • View Profile
Displaying variable images
« on: June 07, 2011, 07:27:40 PM »
So, on the map in my game, I want to have icons to represent the different map tiles, troops on the map, etc. So, I would have 1-5 icons on each map tile. Is there any way to do this besides hundred of different pictures?

Offline Harkins

  • Level 28
  • **
  • Posts: 424
  • Reputation: +11/-2
  • Coder, blogger, entrepreneur.
    • View Profile
    • Push CX - Blog
Re: Displaying variable images
« Reply #1 on: June 07, 2011, 11:20:11 PM »
Yep, with a sprite sheet. Look up 'css sprites' and you'll find tons of tools and tutorials.

Visit #bbg on irc.freenode.net to talk browser games anytime.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal