Changeset 59 for trunk/Forms/UFormMain.pas
- Timestamp:
- Dec 25, 2022, 2:30:52 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r57 r59 219 219 Shift: TShiftState); 220 220 begin 221 Engine.Key Board.KeyState[Key] := True;221 Engine.KeyDown(Key); 222 222 StatusBar1.Panels[0].Text := IntToStr(Key); 223 223 end; … … 225 225 procedure TFormMain.FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState 226 226 ); 227 const 228 KeyF11 = 112; 229 var 230 I: Integer; 231 begin 232 Engine.KeyBoard.KeyState[Key] := False; 233 {$IFDEF DEBUG} 234 if Key = KeyF11 then begin 235 // Destroy first alive player 236 for I := 0 to Engine.Players.Count - 1 do 237 with Engine.Players[I] do begin 238 if not Exploded then begin 239 Energy := -100; 240 Break; 241 end; 242 end; 243 end; 244 {$ENDIF} 227 begin 228 Engine.KeyUp(Key); 245 229 end; 246 230 … … 250 234 PersistentForm.Load(Self, False, True); 251 235 FullScreenEnabled := PersistentForm.FormFullScreen; 236 {$IFDEF DEBUG} 237 StatusBar1.Visible := True; 238 {$ENDIF} 252 239 end; 253 240
Note:
See TracChangeset
for help on using the changeset viewer.