Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Welcome to the Browser-Base Game Zone forums!
Home
Forum
Help
Login
Register
BBGameZone.net
»
Webmasters
»
Coding Discussion
»
Code Help
»
Displaying variable images
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Displaying variable images (Read 718 times)
pixlepix
Level 12
Posts: 90
Reputation: +0/-0
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?
Logged
Harkins
Level 28
Posts: 424
Reputation: +11/-2
Coder, blogger, entrepreneur.
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.
Logged
Visit
#bbg on irc.freenode.net
to talk browser games anytime.
Print
Pages: [
1
]
Go Up
« previous
next »
BBGameZone.net
»
Webmasters
»
Coding Discussion
»
Code Help
»
Displaying variable images
SimplePortal 2.3.3 © 2008-2010, SimplePortal