Changeset 90


Ignore:
Timestamp:
Jun 7, 2024, 7:32:09 PM (5 months ago)
Author:
chronos
Message:
  • Modified: Snap package updated to core22.
  • Modified: Calculate different win tile value for different board sizes.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Game.pas

    r89 r90  
    614614  I: Integer;
    615615  Tile: TTile;
     616const
     617  Difficulty = 0.7;
    616618begin
    617619  FCanUndo := False;
    618620  Board.Clear;
     621  WinTileValue := Round((Board.Size.X * Board.Size.Y) * Difficulty);
    619622  Score := 0;
    620623  Running := True;
  • trunk/Install/snap/local/build.sh

    r84 r90  
    44
    55pushd ../../..
    6 snapcraft --debug --use-lxd
     6snapcraft --debug --use-lxd -v $@
    77popd
    88
  • trunk/Install/snap/snapcraft.yaml

    r84 r90  
    1515  * Selectable tile skins (linear, exponential, alpha, binary, Roman)
    1616confinement: strict
    17 base: core20
     17base: core22
    1818grade: stable
    1919icon: "Images/Logo 64x64.png"
     
    4343    source: .
    4444    source-type: local
    45     build-packages: 
     45    build-packages:
    4646    - fpc
    4747    - lazarus
     
    5151      snapcraftctl build
    5252      lazbuild --build-mode=Release Game2048.lpi
    53       ROOT=/root/parts/2048x/install
    54       install -d -m 755 $ROOT/usr/bin
    55       install -s -m 755 Game2048 $ROOT/usr/bin/Game2048
    56       install -d -m 755 $ROOT/usr/share/Game2048/languages
    57       install -m 755 Languages/Game2048.po $ROOT/usr/share/Game2048/languages
    58       install -m 755 Languages/Game2048.cs.po $ROOT/usr/share/Game2048/languages
    59       install -d -m 755 $ROOT/usr/share/applications
    60       install -m 755 Install/snap/local/2048.desktop $ROOT/usr/share/applications
    61       install -d -m 755 $ROOT/usr/share/pixmaps
    62       install -m 755 Images/2048.png $ROOT/usr/share/pixmaps
     53      install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/bin
     54      install -s -m 755 Game2048 $SNAPCRAFT_PART_INSTALL/usr/bin/Game2048
     55      install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/Game2048/languages
     56      install -m 755 Languages/*.po $SNAPCRAFT_PART_INSTALL/usr/share/Game2048/languages
     57      install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/applications
     58      install -m 755 Install/snap/local/2048.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications
     59      install -d -m 755 $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
     60      install -m 755 Images/2048.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
    6361    stage:
    6462      - etc
     
    104102  2048x:
    105103    command: usr/bin/Game2048
    106     desktop: usr/share/applications/2048.desktop   
     104    desktop: usr/share/applications/2048.desktop
    107105    plugs:
    108106      - desktop
  • trunk/Packages/Common/Forms/FormAbout.lfm

    r85 r90  
    11object FormAbout: TFormAbout
    2   Left = 624
     2  Left = 929
    33  Height = 402
    4   Top = 622
     4  Top = 519
    55  Width = 702
    66  Caption = 'About'
     
    1010  OnShow = FormShow
    1111  Position = poScreenCenter
    12   LCLVersion = '2.2.6.0'
     12  LCLVersion = '3.4.0.0'
    1313  object LabelDescription: TLabel
    1414    Left = 30
     
    8888      Anchors = [akLeft, akBottom]
    8989      Caption = 'Home page'
    90       OnClick = ButtonHomePageClick
    9190      ParentFont = False
    9291      TabOrder = 0
     92      OnClick = ButtonHomePageClick
    9393    end
    9494    object ButtonClose: TButton
Note: See TracChangeset for help on using the changeset viewer.