Skip to content

LicheePi4A_KingdomRush

  1. 配置 locales

    sudo apt install locales
    sudo dpkg-reconfigure locales
  2. 安装 box64,参考 COMPILE.md

    bash
    git clone https://github.com/ptitSeb/box64.git
    cd box64
    mkdir build
    cd build
    cmake .. -D RV64=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo
    make -j$(nproc)
    sudo make install
  3. 安装 gl4es

    git clone https://github.com/ptitSeb/gl4es
    cd gl4es
    mkdir build
    cd build 
    cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
    make -j$(nproc)
  4. 购买Kingdom Rush,下载 Linux 版 https://www.kingdomrush.com/

  5. chmod +x 游戏包中的start.sh

  6. 运行游戏

    # 运行 Kingdom Rush
    box64 ./start.sh
    # 运行 Kingdom Rush加上帧数显示
    GALLIUM_HUD=fps box64 ./start.sh
    # 运行 Kingdom Rush终端打印帧数
    LIBGL_FPS=1 box64 ./start.sh
  7. 运行现象:偶有闪退,运行流畅。运行期间若是全屏模式,闪退几率会较低。