#桌面 #预算 #规则 #引擎 #经济 #稳定 #incumbancy

app conaticusgrp/incumbency-desktop

Incumbancy Desktop

1个稳定版本

1.0.0 2023年3月20日

#331游戏

58 星级 & 2 关注者

(未指定)

130KB
3K SLoC

Incumbancy Desktop

Incumbency Screenshot

关于

Incumbancy是一个由YouTube红人conaticus和他的团队开发的经济模拟引擎。在这款游戏中,你可以调整税收、规则和预算以保持经济稳定。

下载

你可以按照README中的说明进行构建,或者从这里下载可执行文件。

荣誉提及

Lemon Foxmere

该应用程序的流畅UX设计完全由Lemon Foxmere创建。

Exedice

桌面UI的基本设计是在svelte中创建的,由Exedice完成。

Z88

Z88帮助设计了桌面UI的线框图,并为Incumbancy提出了一些游戏设计想法。

VS Code + Svelte + Tauri.

开发环境搭建

#  Make sure you have Tauri CLI installed
cargo install tauri-cli

# Install dependencies
npm i

# Run app for development
cargo tauri dev

# Build for production
cargo tauri build

调试器设置

VSCode

在根目录下

  • 创建一个 .vscode 文件夹

在文件夹内

  • 创建一个 launch.json
  • 创建一个 tasks.json

launch.json:

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "lldb",
      "request": "launch",
      "name": "Tauri Development Debug",
      "cargo": {
        "args": [
          "build",
          "--manifest-path=./src-tauri/Cargo.toml",
          "--no-default-features"
        ]
      },
      "preLaunchTask": "ui:dev",
      "cwd": "${workspaceFolder}/src-tauri"
    },
    {
      "type": "lldb",
      "request": "launch",
      "name": "Tauri Production Debug",
      "cargo": {
        "args": ["build", "--release", "--manifest-path=./src-tauri/Cargo.toml"]
      },
    }
  ]
}

tasks.json:

{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "ui:dev",
      "type": "shell",
      "problemMatcher": "$rustc",
      "isBackground": true,
      "command": "npm",
      "args": ["run", "dev"]
    },
    {
      "label": "ui:build",
      "type": "shell",
      "command": "npm run",
      "args": ["build"]
    }
  ]
}

依赖项

~21–60MB
~1M SLoC