Tweetsie Railroad Games
This Flash-based children's game for a regional amusement park required a path-finding algorithm.
Home / Projects / Tweetsie Railroad Games
One of my very first projects at NewCity was the implementation of a couple of Flash-based games for Tweetsie Railroad. These flash files are thirteen years old, but – for the moment – they still work if you have Flash installed.
Be The Locomotive Engineer
This is a simple whack-a-mole game. You choose from one of two Tweetsie characters and hit buttons as they pop up. (Just to be clear, this is not how real trains work.) Difficulty gradually increases. For the most part, this is simple event-driven ActionScript code. It was built in AS3 in the Flash editor.
Connect the Tracks Game
Here, you are fed a series of tracks and you have to drag them onto a grid to make a path from the start to the finish. This same mechanic was used as the “hacking” mini-game in Bioshock (also released in 2007), but I do not know if that’s where Jeff got the inspiration.
This was also coded in AS3 in the Flash editor, but I had to implement an A* Search algorithm with a binary heap to tell whether or not the train actually had a clear path to the exit. Not bad for a computer science drop-out who failed data structures.
Sound up, by the way.