Home > Software engineering >  MFC to make the game map
MFC to make the game map

Time:09-23

MFC novice, recently in the use of MFC in tank warfare,,
Without a map editor, how to make the map in the tank warfare,,
Or what's the MFC available map editor

CodePudding user response:

You mean which tank war

CodePudding user response:

W32, MFC overqualified, you just need to GDI since maps, encapsulates the most is the advantage of MFC controls to control better look, these are for you, and you need to understand the MFC to learn MFC six mechanisms, Win32 you as long as the mind is the Main function, Win32 study cost lower for you,

CodePudding user response:

refer to the second floor heshaai6843 response:
W32, MFC overqualified, you just need to GDI since maps, encapsulates the most is the advantage of MFC controls to control better look, these are for you, and you need to understand the MFC to learn MFC six mechanisms, Win32 you as long as the mind is the Main function, Win32 study cost lower for you,

this is a lesson, and to use MFC to do
to ask next MFC to do,,

CodePudding user response:

by the way, Tiledmap can be imported into the MFC,,

CodePudding user response:

If you are completely new, this is not a day or two, too much to learn,
Use GDI and GDI + and GDI + will be somewhat simpler,
My understanding is mainly inherited CStatic control and the control of the client area of painting NXN line according to the average square division of the client area, and then on the color in the area of the square, etc., note that want to use double buffer drawing method, this is a disadvantage not to please, not good-looking,
, of course, if not this way, the above map, this way is better than the above is much simple and effect is much better, but you have to have the artists do figure, or below,

CodePudding user response:

Tanks war map, notepad can do,
8 the TANK on the nintendo, are in fact number pictures, such as blank is 0, brick wall is 1, iron is 2, ray reward to 12 (C), base is 15 (F) in Atlanta, the map is

11111122000221112211
00000022000 c21002200
.
00110000111110111001
0011100011 f110011001

Then, tanks maps in the lattice of 0, therefore, at the time of display, as long as the number according to the map on the screen is OK, the background is a two-dimensional array,

CodePudding user response:

Remember there is a tank war version comes with a map editor,

CodePudding user response:

Tanks war map is image, and then with an array of map recognition
  • Related