Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Win32 on July 25, 2007, 01:12 PM

Title: Diablo II: Location Unit Conversion
Post by: Win32 on July 25, 2007, 01:12 PM
I've reached the daunting section of collision detection in my D2GS project. Now, I have the problem that object velocity (such as missiles/players) is measured in pixels / frame.

How am I to convert pixels to object x/y locations? Or simply, what x number pixels equals the distances between object x/y's?


Thanks :)
Title: Re: Diablo II: Location Unit Conversion
Post by: raylu on July 29, 2007, 07:51 PM
Stand on one side of the screen, cast on the other, time it, determine number of pixels, divide, round :P
Title: Re: Diablo II: Location Unit Conversion
Post by: ShadowDancer on July 30, 2007, 01:13 AM
each x/y location represents a tile, each tile haves a static amount of pixels, i dont remember well but it can be 16*16.