Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Setting Subrects or separating a spritesheet  (Read 1534 times)

0 Members and 1 Guest are viewing this topic.

Makuto

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
    • Au 79 Games
    • Email
Setting Subrects or separating a spritesheet
« on: May 26, 2012, 11:34:08 pm »
Hi, I have a quick question.  I have a tile map system which takes a tile sheet and a map file in order to display tlle-based maps. Should I split the tile sheet into separate images of each tile or just use Subrects?
Macoy Madson-Au 79 Games
Check out my work at http://augames.f11.us/
Most of my SFML-related code is here: https://github.com/makuto/personal/tree/master/gameDev/resources/base2.0
I try to KIS(S), do you?

blueeyedlion

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: Setting Subrects or separating a spritesheet
« Reply #1 on: May 27, 2012, 08:07:32 am »
Use subrects.  Loading many images is much slower.

Makuto

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
    • Au 79 Games
    • Email
Re: Setting Subrects or separating a spritesheet
« Reply #2 on: May 28, 2012, 03:09:29 pm »
Thanks
Macoy Madson-Au 79 Games
Check out my work at http://augames.f11.us/
Most of my SFML-related code is here: https://github.com/makuto/personal/tree/master/gameDev/resources/base2.0
I try to KIS(S), do you?

 

anything