Changeset 62 for trunk/UEngine.pas


Ignore:
Timestamp:
Jan 5, 2023, 10:14:31 PM (23 months ago)
Author:
chronos
Message:
  • Modified: Hide main menu in full screen mode.
  • Modified: Use colors as player names.
  • Modified: Use black background around player frames.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UEngine.pas

    r61 r62  
    276276  SShotsFired = 'Shot fired';
    277277  SWinnerIs = 'The winner is';
     278  SGreen = 'Green';
     279  SBlue = 'Blue';
     280  SRed = 'Red';
     281  SPink = 'Pink';
     282  SCyan = 'Cyan';
     283  SYellow = 'Yellow';
     284  SOrange = 'Orange';
     285  SGray = 'Gray';
    278286
    279287{ TTanks }
     
    12091217        Text := Name + ': ' + IntToStr(Score);
    12101218        TextOut((Bitmap.Width - TextWidth(Text)) div 2, Bitmap.Height div 5 * 2 + Y, Text);
    1211         Inc(Y, 50);
     1219        Inc(Y, 60);
    12121220      end;
    12131221    end;
     
    13391347  PlayerPool.Clear;
    13401348  with PlayerPool.AddNew do begin
     1349    Name := SGreen;
    13411350    Keys.Left := 65;
    13421351    Keys.Down := 83;
     
    13491358  end;
    13501359  with PlayerPool.AddNew do begin
     1360    Name := SBlue;
    13511361    Keys.Left := 37;
    13521362    Keys.Down := 40;
     
    13591369  end;
    13601370  with PlayerPool.AddNew do begin
     1371    Name := SRed;
    13611372    Keys.Left := 76;
    13621373    Keys.Down := 147;
     
    13681379  end;
    13691380  with PlayerPool.AddNew do begin
     1381    Name := SPink;
    13701382    Keys.Left := 100;
    13711383    Keys.Down := 98;
     
    13771389  end;
    13781390  with PlayerPool.AddNew do begin
     1391    Name := SCyan;
    13791392    Keys.Left := 0;
    13801393    Keys.Down := 0;
     
    13861399  end;
    13871400  with PlayerPool.AddNew do begin
     1401    Name := SYellow;
    13881402    Keys.Left := 0;
    13891403    Keys.Down := 0;
     
    13951409  end;
    13961410  with PlayerPool.AddNew do begin
     1411    Name := SOrange;
    13971412    Keys.Left := 0;
    13981413    Keys.Down := 0;
     
    14041419  end;
    14051420  with PlayerPool.AddNew do begin
     1421    Name := SGray;
    14061422    Keys.Left := 0;
    14071423    Keys.Down := 0;
     
    14171433    Id := I;
    14181434    InitTanks;
    1419     Name := SPlayer + ' ' + IntToStr(I + 1);
    14201435    if I < 2 then Enabled := True;
    14211436  end;
     
    15591574    FBitmapLower.Count := OldCount;
    15601575
    1561     if FClearBackground then FBitmapLower.FillAll(clNavy);
     1576    if FClearBackground then FBitmapLower.FillAll(World.Matters[Integer(miBorder)].Color);
    15621577    for I := 0 to Players.Count - 1 do
    15631578    if Players[I].Enabled then begin
Note: See TracChangeset for help on using the changeset viewer.