[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Axelay-like background scroll getting operand error



i think what makes it hugelly slow is pygame.transform.scale (i were
hoping pygame could deal this a bit faster...)

On 7/21/09, Ian Mallett <geometrian@xxxxxxxxx> wrote:
> 2009/7/21 Henrique Nakashima <henrique.nakashima@xxxxxxxxx>
>
>> In Python, exponentiation can be done with the ** operand (2 ** 3 returns
>> 8). I don't know whether that is different in any way from pow(2, 3), but
>> help(pow) says it's the same.
>
> It's not really different, but it can have a modulus argument, which is
> faster than (x**y)%z
>