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
Oct 23, 2016

Oct 22, 2016

Oct 17, 2016

Oct 11, 2016

Oct 10, 2016

Oct 3, 2016

Oct 1, 2016

Sep 19, 2016

Sep 17, 2016

Aug 30, 2016

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