Check this and help me
Greeting..
i got a problem with my small iso engine that i developed for my project... and i can''t figure out what went wrong with the code.
so, i open my code that written in MSVC++6 and DX6 (with workspace), exe and text file(isoku.txt describing the problems) for all of you to help me figure out the problem/s (plzzzz... help me)
you can download the zip file at:
http://www.msnusers.com/putra4/files/isoku/isoku.zip (84KB)
Thanks
Putra
putra4@hotmail.com
There is a slight problem with your link - I can not access the file, MSN is acking for my username and password.
When I find my code in tons of trouble,Friends and colleages come to me,Speaking words of wisdom:"Write in C."My Web Site
Im not going to make MSN password.
*/Once man compiled kernel without ELF binaries ,modules were working fine.Were they?*/
*/Once man compiled kernel without ELF binaries ,modules were working fine.Were they?*/
ok... sorry for that. actually it''s kind of hurry to upload the file. so, i''ll try to subscribe other web space to keep my file..
anyway, i send the file to your e-mail. hope you checked it.
thanks.
anyway, i send the file to your e-mail. hope you checked it.
thanks.
or you can download the file at this new link :
http://www.geocities.com/isogames
Thanks again.
http://www.geocities.com/isogames
Thanks again.
from looking at your code i take it you are srawing the tiles from top left to bottom right ala TANSTAAFL''s tutorials, but his tuts are designed for square maps, i.e. like in CIV.
Since you are tring to draw a diamond shape the drawing rules chage a bit.
the new way to draw the tiles is:
I have already posted some pseudo code here but I''ll re-post the main code again:
The above pseudo code should help you to optimise your drawing code a bit. OBTW xoffset and yoffset could be the center of the screen or the virtual position of the center of the map, i.e. your x and y locations i think.
Also try not to define a global variable that you then re-define later on as a local variable (mapx, mapy are used as global and then re-defined locally in DrawMap() ).
Since you are tring to draw a diamond shape the drawing rules chage a bit.
the new way to draw the tiles is:
1 5 2 9 6 3 13 10 7 4 14 11 8 15 12 16
I have already posted some pseudo code here but I''ll re-post the main code again:
init map[MapWidth][MapHeight]for y = 0 to MapHeight for x = 0 to MapWidth xpos = ( x * ( TileWidth / 2 ) ) - ( y * ( TileWidth / 2 ) ) ypos = ( y * ( TileHeight / 2 ) ) + ( x * ( TileHeight / 2 ) ) Blit tile map[x][y] at xpos + xoffset, ypos + yoffset nextnext
The above pseudo code should help you to optimise your drawing code a bit. OBTW xoffset and yoffset could be the center of the screen or the virtual position of the center of the map, i.e. your x and y locations i think.
Also try not to define a global variable that you then re-define later on as a local variable (mapx, mapy are used as global and then re-defined locally in DrawMap() ).
When I find my code in tons of trouble,Friends and colleages come to me,Speaking words of wisdom:"Write in C."My Web Site
ok, i''ll try first with your suggestion... anyway it is good if you post your main code too
I''ve been looking for my code, but I can not find it, the only thing I''ve got is the pseudo that I posted. It should not be that hard to convert it to c++ (it''s nearly there now!)
When I find my code in tons of trouble,Friends and colleages come to me,Speaking words of wisdom:"Write in C."My Web Site
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement