program Game2048; {$mode objfpc}{$H+} uses {$IFDEF UNIX} cthreads, clocale, {$ENDIF} Interfaces, SysUtils,// this includes the LCL widgetset Forms, Game, Common, FormMain, Core { 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.Core); Application.CreateForm(TFormMain, FormMain.FormMain); Application.Run; end.