/train_ops

A train game for Android

Primary LanguageRustMIT LicenseMIT

Train Ops

A train game for Android.

Made with Tauri and Yew.

Installation

  • Tauri CLI : cargo install tauri-cli --version "^2.0.0-rc"
  • Trunk : cargo install trunk
  • Others prerequisites : tauri-prerequisites

VSCode extensions :

Android config : tauri-android

Run

cargo tauri dev

Android

  • Init : cargo tauri android init
  • Run : cargo tauri android dev
  • Build : cargo tauri android build

Sign the APK

  • Generate the JKS file : generate-key
  • Copy the key.jks file in the folder src-tauri/gen/android/app
  • Create the file key.properties in the folder src-tauri/gen/android/app
storePassword=
keyPassword=
keyAlias=key
storeFile=key.jks

Generate icons

cargo tauri icon <path>

Color Palette

UI

brown
grey
dark-grey
dark-orange
orange
beige
dark-green
green
light-green

Map

dirt
dark-dirt
sea
dark-sea

Sprites

SimCity-2000