Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 30 Sep 2011
Offline Last Active Nov 22 2012 07:08 AM

Posts I've Made

In Topic: Isometric Tile Map - Drawing

19 June 2012 - 10:43 AM

Top: x + w/2, y
Right: x + w, y+h/2
Bottom: x+w/2, y+ h
Left: x, y+h/2

as you have written,i dont know what the point (x,y) does mean,and the also as the w and h.if w for width ,h for height,then the point(x,y) would not be the center point of the title.if in this case ,what about the point of the title( 2 X 3)?

So,i cant say something ,but if you just display it just as the image as you have provided,you can set the (x,y) as the left point and have a try.It will be easier or you can provide more details ^_^

In Topic: A couple of basic 2d tile questions

19 June 2012 - 07:47 AM

I am new here too as you,but I have something in my mind.What I think,maybe not good,is that you can have a array to store the data or information of the title,for example, 1 for sand and 2 for water.Then when your guy stand on the title which value is 1,it floats on the sand and in the other hand ,it pushes into the water.

Then,besides that,we also have another data that stands for depth(we can use the high four bits of a byte for it and the low onse for sand or water).The depth of the titles that are more far away from screen is greater,And also your guy constains the depth information too.Well,When we render the screen,we draw the background first,then we draw the titles by the order(if you can understand ,my english is not natural language^_^).In my mind,you can treast your guy as a title,and store these titles within a container,it will be easier.I belive it should not be a best way and I will think again.Extually,what i am most intreasted in is you generated map.I want to you can give some help as you said to learning code,and my appreciates will come after your reply.

In Topic: a question about d3d display ,for help

08 November 2011 - 08:10 AM

StretchRect() does a simple texture copy and ignores the alpha channel. You probably want to use ID3DXSprite to draw your image.

Thank you very much!I have considered it but not for sure.I just want to use a simple method and i think DirectDraw was in my mind.