pygame is
Simple DirectMedia Layer is
Site Swing
pyTile - Bezier railway track demo

pyTile - Bezier railway track demo - 0.1.0

Timothy Baldock (entropy)



See here for more details of pyTile:


Right-click + drag: move the world
Left-click: select a red dot, first click selects the start point, second click selects the end point
A - Select track building mode
D - Select track deletion mode

You can only draw tracks within one tile, I've yet to implement the final UI for track construction (this will likely use A* pathfinding to draw tracks over multiple tiles).

The system is based on the concept of square tiles with 8 entry/exit points (edges and vertices). Each entry/exit point has three paths through it, and the tracks join up these entry/exit points. Constraints are placed on the configuration of the tracks inside each tile. This gives a nice balance of flexibility vs. simplicity.

This uses the 2D vector class from the cookbook, and a modified version of the bezier curve demo from the same. My thanks go to the author of both of these since they saved me some time :)


Home Page:
Source: svn://


click to view original size


pyTile - Bezier railway track demo - 0.1.0 - Jun 17, 2009 account Comments

If you wish to leave a comment with your account, please sign in first.

June 17, 2009 3:10pm - Joey Marshall - nickname: (joey101)
June 17, 2009 2:26pm - Ian Mallett - nickname: (geometrian)
UI a bit clunky and buggy at times (I managed to crash it with D) but otherwise most excellent.

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Feb 21, 2017

Jan 31, 2017

Jan 24, 2017

Jan 18, 2017

Jan 7, 2017

Dec 30, 2016

Dec 8, 2016

Nov 28, 2016

Nov 27, 2016

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)