[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pygame] moving the ship
just use floats for all calculations. Then in your drawing routine cast them
to int's: int(x), int(y) That way your game internally works with the correct
value's and the screen is merely a slightly less precise view on the game
world.
Op dinsdag 8 oktober 2002 10:53, schreef azazel:
> On Tue, 08 Oct 2002 10:38:56 +0200
>
> Jeroen Vloothuis <j.vloothuis@quicknet.nl> wrote:
> > you can try to keep floats of the "real" position and then round them
> > when drawing but do all movement and stuff on the "real" ones
>
> oh, It's very tricking, can you make me an example please?
>
> thank you again
> ____________________________________
> pygame mailing list
> pygame-users@seul.org
> http://pygame.seul.org
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org