Another way would be to use special purpose components like IntraWeb http://www.atozed.com/intraweb/index.en.aspx
The main disadvantage of IntraWeb component suite is heavy dependancy with Indy component suite wich both have support only for Delphi but not for Free Pascal. Those who onws Delphi 7 or later are in luck, becouse IntraWeb components are shiped with Delphi as a bundeled third party components.
While older versions of IntraWeb have quite limited capability they could still be used for making of some simple browser games like Travian, Ikariam, and similar. New versions do have some more advanced fetures, but they still won't offer a game programer much more to use as theese components are oriented more to buisniess appliacations.
Another drawback is that web applications built with IntraWeb requres ISS server or atleast server with ISS support. And jet another drawback is so caled "Application mode" wich prevents of using a "Back button" like in normal web pages.