mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-06 08:17:46 +02:00
32 lines
489 B
ObjectPascal
32 lines
489 B
ObjectPascal
program pacman;
|
|
|
|
{$mode objfpc}
|
|
|
|
uses
|
|
browserapp, JS, Classes, SysUtils, Web, upacman;
|
|
|
|
type
|
|
TMyApplication = class(TBrowserApplication)
|
|
FPacMan : TPacMan;
|
|
procedure doRun; override;
|
|
end;
|
|
|
|
procedure TMyApplication.doRun;
|
|
|
|
begin
|
|
FPacMan:=TPacMan.Create(Self);
|
|
FPacMan.Start;
|
|
// Your code here
|
|
Terminate;
|
|
end;
|
|
|
|
var
|
|
Application : TMyApplication;
|
|
|
|
begin
|
|
Application:=TMyApplication.Create(nil);
|
|
Application.Initialize;
|
|
Application.Run;
|
|
// Application.Free;
|
|
end.
|