1
Graphics / Re: Tilebased map
« on: October 14, 2013, 10:13:01 pm »
I saw a tutorial of enums but I don't understand this:
I couldnt find a good tutorial on enums and I really don't know what to do
Can someone explain me enums and then I'll try to make tiles.If I fail I'll ask someone for help.
enum Terrain
{
water,
lava,
grass,
};
I did this but now I don't understand how to assign i.e a water texture to Terrain::water.{
water,
lava,
grass,
};
I couldnt find a good tutorial on enums and I really don't know what to do
Can someone explain me enums and then I'll try to make tiles.If I fail I'll ask someone for help.