Hey how can my brother design/export levels in photoshop for XNA? Then also how could I program the level such as colliders for the ground and other mechanincs for the level?
1 reply to this topic
Ad:
#2 Members - Reputation: 513
Posted 22 October 2012 - 01:46 AM
One way could be to create a image with the size of your map. and each pixel corresponds to a tile.
and from there you in code chek each color and set a specific tile in the game. so that a green color could be grass, and red could be lava.
You can break this down in more stuff, like a colision image aswell, setting 0,0,0 (black) = no collision, and any thing else is collision.
this thread explains pretty good stuff :
http://www.dreamincode.net/forums/topic/138348-xna-tiles/
and from there you in code chek each color and set a specific tile in the game. so that a green color could be grass, and red could be lava.
You can break this down in more stuff, like a colision image aswell, setting 0,0,0 (black) = no collision, and any thing else is collision.
this thread explains pretty good stuff :
http://www.dreamincode.net/forums/topic/138348-xna-tiles/
"There will be major features. none to be thought of yet"






