Just for the fun of it I adapted the "Meteors" Delphi sample to SmartMobileStudio, compiled to JavaScript, ran it in Chrome.
Code changes are quite limited:
- changed TCanvas methods to TW3Canvas
- dropped the FreeAndNils
- changed Point() to w3_Point()
- declared TSize record
- change Random() to RandomInt()
That was about it. Not playable just yet (bug with the keyboard events), but otherwise it's alive!
Anybody knows who originally wrote that game? I would like to know about licensing issues before posting anything online.
PS: 19 FPS is the fixed frame-rate for DMeteors, in Delphi it's enforced by a timer, and the game code doesn't have any provision for variable frame-rate
Bookmarks