source: tags/1.2.0/BigMetro.lpr

Last change on this file was 64, checked in by chronos, 3 years ago
  • Added: Support for dark mode.
  • Added: Top left back button to exit from game to game menu. Allow to restart game and continue with playing.
  • Added: Support for Escape key for exiting game and menu.
File size: 710 bytes
Line 
1program BigMetro;
2
3{$mode objfpc}{$H+}
4
5uses
6 {$IFDEF UNIX}
7 cthreads, clocale,
8 {$ENDIF}
9 Interfaces, // this includes the LCL widgetset
10 Forms, SysUtils, UFormMain, UFormImages, Common, UMenu, UControls;
11
12{$R *.res}
13
14{$if declared(UseHeapTrace)}
15const
16 HeapTraceLog = 'heaptrclog.trc';
17{$ENDIF}
18
19begin
20 {$if declared(UseHeapTrace)}
21 // Heap trace
22 DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
23 SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
24 {$ENDIF}
25
26 RequireDerivedFormResource := True;
27 Application.Scaled:=True;
28 Application.Initialize;
29 Application.CreateForm(TFormMain, FormMain);
30 Application.CreateForm(TFormImages, FormImages);
31 Application.Run;
32end.
33
Note: See TracBrowser for help on using the repository browser.