Advertisement

about the book

Started by June 17, 2001 02:37 AM
5 comments, last by Luixx 23 years, 7 months ago
so i read 400 pages of the book and you are talking about a better method than arrys to create an iso map but what is the better method you are talking about a struct or a class but where i can find it in the book or somewhere else please tell me.
the "better" way, at least in my opinion, is to use a map class.

Get off my lawn!

Advertisement
For simple things like maps, I prefer a struct over a class. All it really is is a dynamic array of map tiles (which may be another struct or just an int), a width and height, and maybe a few other flags about it.
I don''t agree that there is such a thing as a ''simple'' entity in game programming. And if there was, a game map certainly isn''t it. I mean, in my engine (which has lain dormant for months now), my Map class has a load of functions, many of which wrap around MapSquare functions (which in turn delegate to TerrainType functions for several things). Maps can be any size, and can take on any kind of representation, and since the Map class handles everything through its own functions, the rest of the game doesn''t have to be altered at all in order to do this.
ok thx but can someone tell me where in the book i can find these map classes/structs?? Is that even in the book or where i can find it ??
they aren''t covered in the book.

Get off my lawn!

Advertisement
ok than please finally tell me where i can find a tutorial or somthing else about it.....

This topic is closed to new replies.

Advertisement