[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Collisions + tiledtmxloader?
- To: pygame-users <pygame-users@xxxxxxxx>
- Subject: [pygame] Collisions + tiledtmxloader?
- From: Alex Nordlund <deep.alexander@xxxxxxxxx>
- Date: Fri, 1 Jan 2010 17:49:27 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Fri, 01 Jan 2010 11:49:31 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=G99mC7wIO8YDxtZGe0g+1ZT9WWGrPEwS3eSULvriHpE=; b=j3f7uMhWoVbx44cwE2LaC+xXD24g+OgPxoGbOfzTtWCza5E4BlME1/0CskGVx78/aW EaFQrmpPnoF28F+OwxGC0t8pZDdsHIFvVf7qkQ8ENz0hjr2HspdjPPjcHQU9CrUR4hbz rw76M8G2/pf6yRxiOHajb1tumocBKpotrIqFo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=bDx9dY1L2PNInBDQ0qNrC25nEd0mehbINbTE6dlbgT1DMxp8O8SxWbelqF8yDPUmr7 ABzYyXkiGGl94nQbBK4lpAPJ4gJEFv0VzuHOIFrlGPFHuzZo44Uqmi37rDfEl+bUUTR7 F/jJGNOsQU5HSOVfAUdEoiItovv4Wv6iD4YrE=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hello,
I'm part of team working on a small project using DR0ID's excellent
tiledtmxloader.
The tiledtmxloader is completly awesome and is the godsend we prayed
for, unfortunately due to our (current) incompetence we cannot
currently utilize this holy grail fully.
But enough of being a suckup; we're having some slight problems with
character-world co-ordination, especially the part about collisions.
Currently we have a way of moving the background (the tiles on a
surface) around and we got the character on top of that, moved by the
same logic (although independently).
Does anyone know how we can make the character tell if it's stepping
on a tile or not?
svn co http://tdist.svn.sourceforge.net/svnroot/tdist/ for the code
tiledtmxloader.py has the loader, rest is in game.py
---
//Alex