15 years ago
Highlights
class cTile { public: int x,y; int level,terrain,income; int own; cTile() { x=0;y=0;level=0;terrain=0; own=0;income=0; } void Check_Income() { if(terrain==GRASS) income=5*level;…
15 years ago
Hi I created object map.tile[MAPX][MAPY] where MAPX and MAPY are global const int. What i really need is MAPX to be normal int loaded from file. Something like Load_Map_Size(x,y…
14 years, 11 months ago
15 years, 3 months ago
I`m quite sure it won`t work this way but maybe you guys know how to the same thing but in proper way. Here`s an example what i want to do. class cFoo () { int x,y; //... }; cla…
15 years ago
Hi im writing tile-based game and i have problem with loading tile ID from file. Here`s the code. const int MAP_X=10, MAP_Y=10; main() { CTile map[MAP_X][MAP_Y]; // CTile is a c…
15 years, 3 months ago
Latest Activity
See all in DiscussionsHi I created object map.tile[MAPX][MAPY] where MAPX and MAPY are global const int. What i really need is MAPX to …
14 years, 11 months ago
class cTile { public: int x,y; int level,terrain,income; int own; cTile() { x=0;y=0;level=0;terrain=0; own=0;income=0; } void Check_Income() { if(terrain==GRASS) income=5*level; …
15 years ago
I`m quite sure it won`t work this way but maybe you guys know how to the same thing but in …
15 years ago