- Timestamp:
- Dec 18, 2016, 12:49:59 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BigMetro.lpi
r36 r41 17 17 <StringTable ProductVersion=""/> 18 18 </VersionInfo> 19 <BuildModes Count=" 2">19 <BuildModes Count="4"> 20 20 <Item1 Name="Debug" Default="True"/> 21 21 <Item2 Name="Release"> … … 27 27 <SearchPaths> 28 28 <IncludeFiles Value="$(ProjOutDir)"/> 29 <OtherUnitFiles Value="Forms"/> 29 30 <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> 30 31 </SearchPaths> … … 55 56 </CompilerOptions> 56 57 </Item2> 58 <Item3 Name="Windows 32-bit"> 59 <CompilerOptions> 60 <Version Value="11"/> 61 <Target> 62 <Filename Value="lib/$(TargetCPU)-$(TargetOS)/BigMetro"/> 63 </Target> 64 <SearchPaths> 65 <IncludeFiles Value="$(ProjOutDir)"/> 66 <OtherUnitFiles Value="Forms"/> 67 <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> 68 </SearchPaths> 69 <Parsing> 70 <SyntaxOptions> 71 <SyntaxMode Value="Delphi"/> 72 <CStyleOperator Value="False"/> 73 <AllowLabel Value="False"/> 74 <CPPInline Value="False"/> 75 </SyntaxOptions> 76 </Parsing> 77 <CodeGeneration> 78 <SmartLinkUnit Value="True"/> 79 <TargetCPU Value="i386"/> 80 <TargetOS Value="win32"/> 81 <Optimizations> 82 <OptimizationLevel Value="3"/> 83 </Optimizations> 84 </CodeGeneration> 85 <Linking> 86 <Debugging> 87 <GenerateDebugInfo Value="False"/> 88 </Debugging> 89 <Options> 90 <Win32> 91 <GraphicApplication Value="True"/> 92 </Win32> 93 </Options> 94 </Linking> 95 </CompilerOptions> 96 </Item3> 97 <Item4 Name="Windows 64-bit"> 98 <CompilerOptions> 99 <Version Value="11"/> 100 <Target> 101 <Filename Value="lib/$(TargetCPU)-$(TargetOS)/BigMetro"/> 102 </Target> 103 <SearchPaths> 104 <IncludeFiles Value="$(ProjOutDir)"/> 105 <OtherUnitFiles Value="Forms"/> 106 <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> 107 </SearchPaths> 108 <Parsing> 109 <SyntaxOptions> 110 <SyntaxMode Value="Delphi"/> 111 <CStyleOperator Value="False"/> 112 <AllowLabel Value="False"/> 113 <CPPInline Value="False"/> 114 </SyntaxOptions> 115 </Parsing> 116 <CodeGeneration> 117 <SmartLinkUnit Value="True"/> 118 <TargetCPU Value="x86_64"/> 119 <TargetOS Value="win64"/> 120 <Optimizations> 121 <OptimizationLevel Value="3"/> 122 </Optimizations> 123 </CodeGeneration> 124 <Linking> 125 <Debugging> 126 <GenerateDebugInfo Value="False"/> 127 </Debugging> 128 <Options> 129 <Win32> 130 <GraphicApplication Value="True"/> 131 </Win32> 132 </Options> 133 </Linking> 134 </CompilerOptions> 135 </Item4> 57 136 </BuildModes> 58 137 <PublishOptions> … … 69 148 </Item1> 70 149 </RequiredPackages> 71 <Units Count=" 6">150 <Units Count="7"> 72 151 <Unit0> 73 152 <Filename Value="BigMetro.lpr"/> … … 97 176 <IsPartOfProject Value="True"/> 98 177 </Unit5> 178 <Unit6> 179 <Filename Value="Forms/UFormImages.pas"/> 180 <IsPartOfProject Value="True"/> 181 <ComponentName Value="FormImages"/> 182 <HasResources Value="True"/> 183 <ResourceBaseClass Value="Form"/> 184 </Unit6> 99 185 </Units> 100 186 </ProjectOptions> … … 106 192 <SearchPaths> 107 193 <IncludeFiles Value="$(ProjOutDir)"/> 194 <OtherUnitFiles Value="Forms"/> 108 195 <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/> 109 196 </SearchPaths> -
trunk/BigMetro.lpr
r39 r41 8 8 {$ENDIF} 9 9 Interfaces, // this includes the LCL widgetset 10 Forms, SysUtils, UFormMain, UEngine, UGeometric, UTrack, UMetaCanvas 11 { you can add units after this };10 Forms, SysUtils, UFormMain, UEngine, UGeometric, UTrack, UMetaCanvas, 11 UFormImages; 12 12 13 13 {$R *.res} … … 28 28 Application.Initialize; 29 29 Application.CreateForm(TFormMain, FormMain); 30 Application.CreateForm(TFormImages, FormImages); 30 31 Application.Run; 31 32 end. -
trunk/UEngine.pas
r37 r41 274 274 LastNewShapeTime: TDateTime; 275 275 LastTickTime: TDateTime; 276 ImagePassenger: TImage;277 ImageLocomotive: TImage;278 276 FTime: TDateTime; 279 277 FLastTime: TDateTime; … … 310 308 State: TGameState; 311 309 RedrawPending: Boolean; 310 ImagePassenger: TImage; 311 ImageLocomotive: TImage; 312 312 procedure MouseMove(Position: TPoint); 313 313 procedure MouseUp(Button: TMouseButton; Position: TPoint); … … 2218 2218 ImagePassenger := TImage.Create(nil); 2219 2219 ImageLocomotive := TImage.Create(nil); 2220 if FileExists(ImagePassengerName) then2221 ImagePassenger.Picture.LoadFromFile(ImagePassengerName);2222 if FileExists(ImageLocomotiveName) then2223 ImageLocomotive.Picture.LoadFromFile(ImageLocomotiveName);2220 //if FileExists(ImagePassengerName) then 2221 // ImagePassenger.Picture.LoadFromFile(ImagePassengerName); 2222 //if FileExists(ImageLocomotiveName) then 2223 // ImageLocomotive.Picture.LoadFromFile(ImageLocomotiveName); 2224 2224 MetaCanvas := TMetaCanvas.Create; 2225 2225 end; -
trunk/UFormMain.lfm
r30 r41 11 11 OnKeyPress = FormKeyPress 12 12 OnShow = FormShow 13 LCLVersion = '1. 5'13 LCLVersion = '1.6.2.0' 14 14 WindowState = wsMaximized 15 15 object PaintBox1: TPaintBox -
trunk/UFormMain.pas
r35 r41 46 46 {$R *.lfm} 47 47 48 uses 49 UFormImages; 50 48 51 { TFormMain } 49 52 … … 70 73 begin 71 74 Randomize; 75 Engine.ImagePassenger.Picture.Assign(FormImages.ImagePassenger.Picture); 76 Engine.ImageLocomotive.Picture.Assign(FormImages.ImageLocomotive.Picture); 72 77 Engine.Map.Size := Point(PaintBox1.Width, PaintBox1.Height); 73 78 Engine.View.DestRect := Rect(0, 0, PaintBox1.Width, PaintBox1.Height);
Note:
See TracChangeset
for help on using the changeset viewer.