Jump to content

  • Log In with Google      Sign In   
  • Create Account

shawk08033

Member Since 16 Jul 2012
Offline Last Active May 28 2014 05:39 PM

#5125197 Read text as a map in c++

Posted by shawk08033 on 20 January 2014 - 06:04 PM

MapSprite[x] = UsedSprite[n] will always be setting MapSprite[x] to point to UsedSprite[0] or UsedSprite[1]. UsedSprite[0]'s last update was 192,320. UsedSprite[1]'s last update was 256, 384.

You can see step-by-step what is happening by changing "spritelog << n << "Loading into " << x << " at " << i*64 << "," << y*64 << std::endl;" to

"for (int t = 0; t < x; t++) spritelog << n << "Currently in " << t << " is " << MapSprite[t]->X << "," << MapSprite[t]->Y << std::endl;"

 

Minor quibble: You probably shouldn't call Load() from a ctor, but should use an Init() or such. Very bad practice to do disk I/O in a constructor.

So the output it gives me when I do that is:

Sprites are loaded
1Currently in 0 is 0,0
0Currently in 0 is 128,0
0Currently in 1 is 64,0
0Currently in 0 is 192,0
0Currently in 1 is 64,0
0Currently in 2 is 192,0
1Currently in 0 is 192,0
1Currently in 1 is 256,0
1Currently in 2 is 192,0
1Currently in 3 is 192,0
1Currently in 0 is 192,0
1Currently in 1 is 0,64
1Currently in 2 is 192,0
1Currently in 3 is 192,0
1Currently in 4 is 0,64
0Currently in 0 is 64,64
0Currently in 1 is 0,64
0Currently in 2 is 64,64
0Currently in 3 is 64,64
0Currently in 4 is 0,64
0Currently in 5 is 0,64
0Currently in 0 is 128,64
0Currently in 1 is 0,64
0Currently in 2 is 128,64
0Currently in 3 is 128,64
0Currently in 4 is 0,64
0Currently in 5 is 0,64
0Currently in 6 is 128,64
0Currently in 0 is 192,64
0Currently in 1 is 0,64
0Currently in 2 is 192,64
0Currently in 3 is 192,64
0Currently in 4 is 0,64
0Currently in 5 is 0,64
0Currently in 6 is 192,64
0Currently in 7 is 192,64
1Currently in 0 is 192,64
1Currently in 1 is 256,64
1Currently in 2 is 192,64
1Currently in 3 is 192,64
1Currently in 4 is 256,64
1Currently in 5 is 256,64
1Currently in 6 is 192,64
1Currently in 7 is 192,64
1Currently in 8 is 192,64
1Currently in 0 is 192,64
1Currently in 1 is 0,128
1Currently in 2 is 192,64
1Currently in 3 is 192,64
1Currently in 4 is 0,128
1Currently in 5 is 0,128
1Currently in 6 is 192,64
1Currently in 7 is 192,64
1Currently in 8 is 192,64
1Currently in 9 is 0,128
1Currently in 0 is 192,64
1Currently in 1 is 64,128
1Currently in 2 is 192,64
1Currently in 3 is 192,64
1Currently in 4 is 64,128
1Currently in 5 is 64,128
1Currently in 6 is 192,64
1Currently in 7 is 192,64
1Currently in 8 is 192,64
1Currently in 9 is 64,128
1Currently in 10 is 64,128
1Currently in 0 is 192,64
1Currently in 1 is 128,128
1Currently in 2 is 192,64
1Currently in 3 is 192,64
1Currently in 4 is 128,128
1Currently in 5 is 128,128
1Currently in 6 is 192,64
1Currently in 7 is 192,64
1Currently in 8 is 192,64
1Currently in 9 is 128,128
1Currently in 10 is 128,128
1Currently in 11 is 128,128
1Currently in 0 is 192,64
1Currently in 1 is 192,128
1Currently in 2 is 192,64
1Currently in 3 is 192,64
1Currently in 4 is 192,128
1Currently in 5 is 192,128
1Currently in 6 is 192,64
1Currently in 7 is 192,64
1Currently in 8 is 192,64
1Currently in 9 is 192,128
1Currently in 10 is 192,128
1Currently in 11 is 192,128
1Currently in 12 is 192,128
1Currently in 0 is 192,64
1Currently in 1 is 256,128
1Currently in 2 is 192,64
1Currently in 3 is 192,64
1Currently in 4 is 256,128
1Currently in 5 is 256,128
1Currently in 6 is 192,64
1Currently in 7 is 192,64
1Currently in 8 is 192,64
1Currently in 9 is 256,128
1Currently in 10 is 256,128
1Currently in 11 is 256,128
1Currently in 12 is 256,128
1Currently in 13 is 256,128
0Currently in 0 is 0,192
0Currently in 1 is 256,128
0Currently in 2 is 0,192
0Currently in 3 is 0,192
0Currently in 4 is 256,128
0Currently in 5 is 256,128
0Currently in 6 is 0,192
0Currently in 7 is 0,192
0Currently in 8 is 0,192
0Currently in 9 is 256,128
0Currently in 10 is 256,128
0Currently in 11 is 256,128
0Currently in 12 is 256,128
0Currently in 13 is 256,128
0Currently in 14 is 256,128
0Currently in 0 is 64,192
0Currently in 1 is 256,128
0Currently in 2 is 64,192
0Currently in 3 is 64,192
0Currently in 4 is 256,128
0Currently in 5 is 256,128
0Currently in 6 is 64,192
0Currently in 7 is 64,192
0Currently in 8 is 64,192
0Currently in 9 is 256,128
0Currently in 10 is 256,128
0Currently in 11 is 256,128
0Currently in 12 is 256,128
0Currently in 13 is 256,128
0Currently in 14 is 256,128
0Currently in 15 is 64,192
0Currently in 0 is 128,192
0Currently in 1 is 256,128
0Currently in 2 is 128,192
0Currently in 3 is 128,192
0Currently in 4 is 256,128
0Currently in 5 is 256,128
0Currently in 6 is 128,192
0Currently in 7 is 128,192
0Currently in 8 is 128,192
0Currently in 9 is 256,128
0Currently in 10 is 256,128
0Currently in 11 is 256,128
0Currently in 12 is 256,128
0Currently in 13 is 256,128
0Currently in 14 is 256,128
0Currently in 15 is 128,192
0Currently in 16 is 128,192
0Currently in 0 is 192,192
0Currently in 1 is 256,128
0Currently in 2 is 192,192
0Currently in 3 is 192,192
0Currently in 4 is 256,128
0Currently in 5 is 256,128
0Currently in 6 is 192,192
0Currently in 7 is 192,192
0Currently in 8 is 192,192
0Currently in 9 is 256,128
0Currently in 10 is 256,128
0Currently in 11 is 256,128
0Currently in 12 is 256,128
0Currently in 13 is 256,128
0Currently in 14 is 256,128
0Currently in 15 is 192,192
0Currently in 16 is 192,192
0Currently in 17 is 192,192
0Currently in 0 is 256,192
0Currently in 1 is 256,128
0Currently in 2 is 256,192
0Currently in 3 is 256,192
0Currently in 4 is 256,128
0Currently in 5 is 256,128
0Currently in 6 is 256,192
0Currently in 7 is 256,192
0Currently in 8 is 256,192
0Currently in 9 is 256,128
0Currently in 10 is 256,128
0Currently in 11 is 256,128
0Currently in 12 is 256,128
0Currently in 13 is 256,128
0Currently in 14 is 256,128
0Currently in 15 is 256,192
0Currently in 16 is 256,192
0Currently in 17 is 256,192
0Currently in 18 is 256,192
what does this mean?



#4982474 Representing player classes in c++

Posted by shawk08033 on 21 September 2012 - 01:57 PM

What is the best way to represent player classes for an rpg game in c++


#4961955 Rendering Engine For QT

Posted by shawk08033 on 22 July 2012 - 10:48 AM

Is there any open source cross platform rendering/graphics engine for qt


#4960000 Qt C++ MMORPG

Posted by shawk08033 on 17 July 2012 - 07:48 AM

I want to use qt because of it network classes and its portability.


#4959768 Qt C++ MMORPG

Posted by shawk08033 on 16 July 2012 - 03:45 PM

I'm a very good programmer and have programmed many other games including android and xna game so I'm not worried that my project to big i just need to how to get started.


#4959748 Qt C++ MMORPG

Posted by shawk08033 on 16 July 2012 - 03:17 PM

I am starting making a mmorpg game using qt and c++ does if anyone can point my in the right direction such as books, tutorials, website anything to help me get started.


PARTNERS