Changeset 3 for trunk/UMainForm.pas
- Timestamp:
- Mar 6, 2011, 12:13:35 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UMainForm.pas
r2 r3 47 47 try 48 48 Timer1.Enabled := False; 49 Engine. Paint;49 Engine.Tick; 50 50 StatusBar1.Panels[1].Text := IntToStr(TPlayer(Engine.Players[0]).Position.X) + ', ' + 51 IntToStr(TPlayer(Engine.Players[0]).Position.Y); 51 IntToStr(TPlayer(Engine.Players[0]).Position.Y) + ' ' + 52 IntToStr(TPlayer(Engine.Players[0]).Direction); 52 53 finally 53 54 Timer1.Enabled := True; … … 62 63 PlayerCount := 2; 63 64 with TPlayer(Players[0]) do begin 64 Position := Point(25 + Random(World.Surface.Count.X - 50),65 25 + Random(World.Surface.Count.Y - 50));66 Color := TColor($00f805);67 65 Keys.Left := 65; 68 66 Keys.Down := 87; … … 72 70 end; 73 71 with TPlayer(Players[1]) do begin 74 Position := Point(25 + Random(World.Surface.Count.X - 50),75 25 + Random(World.Surface.Count.Y - 50));76 Color := TColor($00f805);77 72 Keys.Left := 37; 78 73 Keys.Down := 38; … … 82 77 end; 83 78 end; 79 Engine.NewGame; 84 80 end; 85 81 … … 111 107 procedure TMainForm.MenuItem3Click(Sender: TObject); 112 108 begin 113 109 Engine.NewGame; 114 110 end; 115 111
Note:
See TracChangeset
for help on using the changeset viewer.