source: tags/1.3.0/Game2048.lpr

Last change on this file was 65, checked in by chronos, 4 years ago
  • Added: Separated TGame paint and state change events.
  • Modified: Animate tiles movements in background thread.
  • Modified: Initialize TCore as first application form.
File size: 785 bytes
Line 
1program Game2048;
2
3{$mode objfpc}{$H+}
4
5uses
6 {$IFDEF UNIX}
7 cthreads, clocale,
8 {$ENDIF}
9 Interfaces, SysUtils,// this includes the LCL widgetset
10 Forms, UGame, Common, UFormSettings, UFormMain, UCore, UFormHelp,
11 UFormComputer, UFormHistory
12 { you can add units after this };
13
14{$R *.res}
15
16{$if declared(UseHeapTrace)}
17const
18 HeapTraceLog = 'heaptrclog.trc';
19{$ENDIF}
20
21
22begin
23 {$if declared(UseHeapTrace)}
24 DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
25 SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
26 {$ENDIF}
27 RequireDerivedFormResource:=True;
28 Application.Title:='2048';
29 Application.Scaled := True;
30 Application.Initialize;
31 Application.CreateForm(TCore, Core);
32 Application.CreateForm(TFormMain, FormMain);
33 Application.Run;
34end.
35
Note: See TracBrowser for help on using the repository browser.