Amongst the samples included with Delphi, you can find a “Meteors” clone. With SmartMobileStudio approaching the next beta milestone, I gave it a run at compiling old Delphi code, VCL, TCanvas-based, that was never intended to run Web-side… but now does! Click here or the image below to test it!
The controls are the same as in Delphi: arrow keys to turn and accelerate, space bar to fire.
Since the original code is under Embarcadero copyright, I can’t post the source here, but like with the Old School Maze, the amount of adaptations required was minimal, and the old code is running in near-vanilla form (with all its quirks). You can find DMeteor source code in the Samples\Delphi\VCL\Meteor directory that came with Delphi or RAD Studio.
The old Delphi code was pegged at 20 FPS and 600×400, and this version is too. Maybe once the PGD Challenge is over, I’ll try to find time to upgrade it to a 60 FPS, HD version, fix the difficulty and add Playtomic global leader-boards, just to show how simple it can be to leverage Pascal in the HTML5 era 😉