Forum Thread
  Posts  
Tileset? (Forums : 2D Graphics : Tileset?) Locked
Thread Options
Nov 22 2010 Anchor

I feel like a complete n00b :o

Ok, so I made a mockup of the layout of the sprites for a game. Then I realized that all the sprites (Almost all) are either 64x64, or 32x32. With almost all of them fitting perfectly within the gird I setup in GIMP. Is it possible to use this mockup (with a transparent alpha channel) as a tileset in XNA Game Studio 3.1?
It'll be easier than loading each sprite individually right? I never worked with it before so I'm unsure, but I heard of tilesets/sprite sheets being better in 2D games.
This is what the mockup looks like, The size of the whole sheet is 896x720 I wish there was a way for the grid to be saved too so I could show a better view :\
I had to sort of 'mimic' the grid. It overlaps better than this in GIMP.
User Posted Image

Nov 25 2010 Anchor

A tileset definitely looks like a good way to go. Plus you can use a program like FLAN to do the layout instead of having to hard-code it.

Implementing a tileset system into XNA is a bit of an intermediate affair. I actually have a small 2D library I wrote for XNA 3.1 which I can open source if people are interested.

Alternatively I can release the tile handling source. It reads from a CSV textfile and handles the drawing. There is also a camera class you can use if the tilemap is bigger than the screen.

Nov 25 2010 Anchor

One small 2D library made open-source - one library more for everyone. :-) Definitely a nice idea. (Voted for your indie to encourage a little bit. ;-))

Nov 25 2010 Anchor

I feel lost.

I would really like for you to release the tileset library :), but I'm tossing back and forth to whether I should do the 2D method and coding from scratch in XNA, or making 3D objects and representing them in a 2D view with Unity :( All of this is just confusing me. I don't feel comfortable enough to use XNA so that's why I was thinking Unity but...

This isn't making sense. I just don't know what to do.

Nov 26 2010 Anchor

Ok just finishing up school right now and I need a bit of time to go over my code and make sure there's nothing totally dirty and embarassing.

I'll take a look at it this weekend and have it up next weekend at the latest.

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.