program Game2048; {$mode objfpc}{$H+} uses {$IFDEF UNIX} cthreads, clocale, {$ENDIF} Interfaces, SysUtils,// this includes the LCL widgetset Forms, UGame, Common, UFormMain, UCore { you can add units after this }; {$R *.res} {$if declared(UseHeapTrace)} const HeapTraceLog = 'heaptrclog.trc'; {$ENDIF} begin {$if declared(UseHeapTrace)} DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog); SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog); {$ENDIF} RequireDerivedFormResource:=True; Application.Title:='2048'; Application.Scaled := True; Application.Initialize; Application.CreateForm(TCore, Core); Application.CreateForm(TFormMain, FormMain); Application.Run; end.