Donkyhotay / pgu

Automatically exported from code.google.com/p/pgu
GNU Lesser General Public License v2.1
0 stars 0 forks source link

method tile_to_screen(self, pos) form isovid #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

def load_image(g,pos):
    x,y=g.tile_to_screen(pos)
    s = isovid.Sprite(g.images['tank'],(x,y))
    g.sprites.append(s)

What is the expected output? What do you see instead?

I think that it should draw a sprite at the tile specified by pos. example 
(10,0)

But the sprite is printed far away, using (10,0) for example prints the sprite 
at tile (5,2)

What version of the product are you using? On what operating system?

pgu-0.18 on Linux

Please provide any additional information below.

The sprite is draw far from the position of the tile set by pos.

Maybe I am understanding the method bad, some help will be appreciated. 

Original issue reported on code.google.com by roger.jo...@gmail.com on 12 Mar 2012 at 2:45