[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] question about scrolling the world
- To: pygame-users@xxxxxxxx
- Subject: [pygame] question about scrolling the world
- From: Michael Fiano <michael.fiano@xxxxxxxxx>
- Date: Thu, 20 Mar 2008 13:29:03 -0400
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Thu, 20 Mar 2008 13:29:06 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:from:to:subject:message-id:x-mailer:mime-version:content-type:content-transfer-encoding; bh=L9v+QrlgpZ2HDZPV0dXFh30WNM9jY4htbL1KOqh3uhg=; b=lVlzgsrCEBzi47h6JJF0f43e2azsyk14ui0eDytnbPTxy4ejPgzKZGxtymkNQFdk2rtFZagAsgZXHXcZ6WWb0QklRuPleLc0DXqoe6bpdZoGJhWlLMQZtqVLbFuP/du9fhrVAcswr+GmgIT/C9Nb+zPfjqzptrBitpvF8uNq9cA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type:content-transfer-encoding; b=iFCM1YwppPO0KnHa6enBV6o9/pRN3YpCl6HmaiHNIuEPcm+WRUTv7Kb/r4HQqZ3ahy3fp7FyMpdpjd9caCOmE+j6dwG6WMzpybvbd6MsXSrhjmOJj8m6MlHkfFEt037lCuMDZ8d7i9O5ImDxxKIbdi/jQ+ksgBXgC3FEnvt7NS0=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Being new to game design, I'm wondering if it's a good idea to load the
whole map data and blit the huge surface to the screen so that a lot of
it is off-screen, then moving it with an offset value for the scrolling.
Is the cpu going be busy updating off-screen pixels? Is this
inefficient? I can't think of an easier way to do it for my existing
code. Thanks.