|
Last change
on this file was 108, checked in by chronos, 17 months ago |
- Added: Tools - Score menu action to show history of previously played games with score information.
|
|
File size:
766 bytes
|
| Line | |
|---|
| 1 | program Game2048;
|
|---|
| 2 |
|
|---|
| 3 | {$mode objfpc}{$H+}
|
|---|
| 4 |
|
|---|
| 5 | uses
|
|---|
| 6 | {$IFDEF UNIX}
|
|---|
| 7 | cthreads, clocale,
|
|---|
| 8 | {$ENDIF}
|
|---|
| 9 | Interfaces, SysUtils,// this includes the LCL widgetset
|
|---|
| 10 | Forms, Game, Common, FormMain, Core, Tile, Board, History, Score
|
|---|
| 11 | { you can add units after this };
|
|---|
| 12 |
|
|---|
| 13 | {$R *.res}
|
|---|
| 14 |
|
|---|
| 15 | {$if declared(UseHeapTrace)}
|
|---|
| 16 | const
|
|---|
| 17 | HeapTraceLog = 'heaptrclog.trc';
|
|---|
| 18 | {$ENDIF}
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 | begin
|
|---|
| 22 | {$if declared(UseHeapTrace)}
|
|---|
| 23 | DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
|
|---|
| 24 | SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
|
|---|
| 25 | {$ENDIF}
|
|---|
| 26 | RequireDerivedFormResource:=True;
|
|---|
| 27 | Application.Title:='2048';
|
|---|
| 28 | Application.Scaled:=True;
|
|---|
| 29 | Application.Initialize;
|
|---|
| 30 | Application.CreateForm(TCore, Core.Core);
|
|---|
| 31 | Application.CreateForm(TFormMain, FormMain.FormMain);
|
|---|
| 32 | Application.Run;
|
|---|
| 33 | end.
|
|---|
| 34 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.