Satya's blog - Moving Cars
I'm trying to write a train game in python and SDL and pygame.
So far I can move a single car along a single track, in one direction. The nice thing about object-oriented programming (it's possible without objects, just more complicated) is that once this car class is done, it's done and the hardest part should be over. Yaright. I still need a track class, and then I can get the car object to follow the track object, and change to a different track object. Then I need a train class, which will just link several car objects together. Of course, it's not that simple. I've done about 7% of what's needed :) |
|