Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

method tile_to_screen(self, pos) form isovid #30

Open
GoogleCodeExporter opened this issue Mar 28, 2015 · 0 comments
Open

method tile_to_screen(self, pos) form isovid #30

GoogleCodeExporter opened this issue Mar 28, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant