Compare commits

...

85 commits

Author SHA1 Message Date
yuni c59f8242c9 lower illuminance from the sun 2024-05-01 00:44:47 +02:00
yuni b614f723c8 use hexadecimal color values for hud_color* settings 2024-04-30 23:47:26 +02:00
yuni 2d97ed1416 move Preferences struct under Settings struct 2024-04-30 23:42:48 +02:00
yuni 3a0b3dc1c3 actually apply the preferences from the .toml file 2024-04-30 23:41:37 +02:00
yuni c56ae18f5a move outfly.toml to src/data/ 2024-04-30 23:24:38 +02:00
yuni 00ce509935 track the source of the preferences 2024-04-30 23:15:55 +02:00
yuni f9e3046799 enable toml_edit's display feature so we can use doc.to_string() 2024-04-30 23:15:38 +02:00
yuni 4b5aba86d1 Revert "switch from toml to ini as config file for simplicity"
This reverts commit 8da20abff8.
2024-04-30 22:55:12 +02:00
yuni 8da20abff8 switch from toml to ini as config file for simplicity 2024-04-30 22:41:14 +02:00
yuni d65d3b2aec read preferences from outfly.toml 2024-04-30 22:38:54 +02:00
yuni 4ea2f2d1e4 add toml_edit dependency 2024-04-30 17:25:43 +02:00
yuni b947fc4918 document dependencies 2024-04-30 16:27:57 +02:00
yuni 7493b71019 work on roadmap 2024-04-30 13:42:13 +02:00
yuni 03563ad955 shrink humans down to actual size 2024-04-30 01:26:59 +02:00
yuni 115b9d4538 move thebe closer to player 2024-04-30 01:12:26 +02:00
yuni 55d9822bf3 fix thebe position regardless of real time clock 2024-04-30 01:08:26 +02:00
yuni cb59b8fc7f make moons orbit prograde instead of retrograde 2024-04-30 01:03:45 +02:00
yuni 15bd02f6f8 implement "orbit_phase_offset" command 2024-04-30 00:56:41 +02:00
yuni 7f5894f9f7 set moon orbit phases according to real time clock 2024-04-30 00:37:19 +02:00
yuni 2eb2915f62 add rotation and orbit direction to map 2024-04-29 23:33:09 +02:00
yuni 5a58503332 add design document 2024-04-29 23:21:57 +02:00
yuni 8a6b1e6357 add HACKING.md 2024-04-29 16:31:58 +02:00
yuni ca63fb5e03 bundle CHANGELOG.md with release zips 2024-04-29 15:57:37 +02:00
yuni 217e02afb1 add CHANGELOG.md 2024-04-29 15:55:52 +02:00
yuni ae9d77afda add GPL/SIL/CC0 license texts to LICENSE.md 2024-04-29 15:50:42 +02:00
yuni 8a86514e31 add LICENSE.md 2024-04-29 15:44:02 +02:00
yuni acf50e7dfd bundle the GPL3 badge with the repository to avoid an external link 2024-04-29 15:02:36 +02:00
yuni 478d6081ba update .gitignore 2024-04-29 14:59:26 +02:00
yuni 419d38c616 add README.md to src/build/nix/ 2024-04-29 14:55:34 +02:00
yuni 8a617cc844 bikeshed directory locations 2024-04-29 14:50:15 +02:00
yuni 5aafdb95b1 move /blender/ to /media/blender/ 2024-04-29 12:43:39 +02:00
yuni 9b402df46f bump version to v0.8.2 2024-04-28 23:23:40 +02:00
yuni 82fd1313b2 hide speedometer text when speed is 0 2024-04-28 06:40:11 +02:00
yuni 133fa9122f add speedometer text 2024-04-28 06:29:01 +02:00
yuni 95b1c87194 update speedometer.png 2024-04-28 06:28:49 +02:00
yuni 21df9da95c add second speedometer for very high speeds 2024-04-28 05:42:00 +02:00
yuni 54da276091 add speedometer 2024-04-28 03:15:45 +02:00
yuni 310be85e05 add better reticule, properly toggle visibility 2024-04-28 03:15:20 +02:00
yuni fc4cc8cdad add sprite reticule 2024-04-28 01:33:27 +02:00
yuni 53ada82a02 move moonlet so you don't start the game in the shadows 2024-04-27 18:59:01 +02:00
hut 80087d9815 Merge pull request 'build/nix: Make wayland a build dependency' (#2) from axeman/outfly:fix-nix-wayland into main
Reviewed-on: https://codeberg.org/hut/outfly/pulls/2
2024-04-27 15:16:13 +00:00
Akshay Mankar 8b6e2a4d92
build/nix: Make wayland a build dependency 2024-04-27 16:51:20 +02:00
yuni ef53da1580 change feature set for nix build to "release_linux" 2024-04-27 15:59:30 +02:00
hut e5e0b13ce1 Merge pull request 'build/nix: Put runtime deps in rpath' (#1) from axeman/outfly:fix-nix into main
Reviewed-on: https://codeberg.org/hut/outfly/pulls/1
2024-04-27 13:57:20 +00:00
Akshay Mankar 30ab2d3e6e
build/nix: Put runtime deps in rpath 2024-04-27 15:11:42 +02:00
yuni e900eae57f shorter intro 2024-04-27 15:02:31 +02:00
yuni e6a048c01f add liberapay badge 2024-04-27 14:58:23 +02:00
yuni 19b3e57d98 rearrange paragraphs 2024-04-27 14:41:44 +02:00
yuni 9717e494d8 move /src/blender to /blender 2024-04-27 14:40:06 +02:00
yuni c4f08d82c9 move build.rs to root directory to avoid surprises 2024-04-27 13:50:58 +02:00
yuni abd65ec04e document the "release_*" features 2024-04-27 03:50:05 +02:00
yuni 77bc8ee8e1 add release_windows/release_linux features to streamline building 2024-04-27 00:32:38 +02:00
yuni bdf49e2985 add nix result directory to gitignore 2024-04-26 23:53:36 +02:00
yuni 32b4a7a895 remove unused component structs 2024-04-26 23:17:08 +02:00
yuni 9058e4a588 add nixos package (WIP) 2024-04-26 23:16:03 +02:00
yuni 61c41c9369 bump version to 0.8.1 2024-04-26 22:56:21 +02:00
yuni c0e17ed249 Revert "add black border to bevy badge"
This reverts commit ac4b7713f8.
2024-04-26 18:52:33 +02:00
yuni ac4b7713f8 add black border to bevy badge 2024-04-26 18:50:21 +02:00
yuni db972626ad reordered badges 2024-04-26 18:49:12 +02:00
yuni 9ae8f27f83 vectorized "Powered by" text 2024-04-26 18:48:53 +02:00
yuni d430d7b813 change padding in bevy badge 2024-04-26 18:47:26 +02:00
yuni 4826ce0571 smaller text in bevy badge 2024-04-26 18:46:19 +02:00
yuni b1425a43fe add gradient to bevy badge 2024-04-26 18:42:33 +02:00
yuni 9fa8c2a33b add "Powered by Bevy" badge 2024-04-26 18:40:40 +02:00
yuni f6c5f631db more doc for "dev_mode" feature 2024-04-26 14:42:44 +02:00
yuni e2822fb64c clarification 2024-04-26 14:28:26 +02:00
yuni e50e345d48 toggle dev mode with feature flags, document --features dev 2024-04-26 14:24:37 +02:00
yuni 77cdbba7db describe solutions for missing asset problem 2024-04-26 14:23:51 +02:00
yuni 8d17186474 Add badges 2024-04-25 16:37:58 +02:00
yuni ddeada8dea embed assets by default to avoid missing asset errors 2024-04-25 05:29:18 +02:00
yuni e67aa16a93 make asteroids targetable 2024-04-25 05:22:44 +02:00
yuni 36cad88e77 cleanup 2024-04-25 04:17:26 +02:00
yuni 89cd374d9e add zoom sound effect when zooming map 2024-04-25 04:16:39 +02:00
yuni 1f3f0eec7a add various sound effects to key presses 2024-04-25 03:52:32 +02:00
yuni d70e22678e add "woosh" sound effect when opening map 2024-04-25 03:47:10 +02:00
yuni a112b70143 write changelog 2024-04-25 03:29:36 +02:00
yuni 6c95736a24 typo 2024-04-25 03:26:11 +02:00
yuni 04b40ea65a clarification 2024-04-25 03:25:35 +02:00
yuni 4661bec5c7 more troubleshooting info 2024-04-25 03:23:56 +02:00
yuni 729e6be59d add command line options for help, and for setting window mode 2024-04-25 03:23:43 +02:00
yuni e7600d1060 document --gl option, adding a Troubleshooting section 2024-04-25 02:44:05 +02:00
yuni 178f6f5d45 add "--gl" option to set WGPU_BACKEND=gl 2024-04-25 02:37:45 +02:00
yuni 8e27525b35 restore real size of moons. add setting "large_moons" 2024-04-25 02:22:58 +02:00
yuni 569a88df19 typo 2024-04-25 02:06:06 +02:00
yuni 591100a817 add blender/modeling documentation 2024-04-25 01:56:05 +02:00
46 changed files with 4145 additions and 313 deletions

2
.gitignore vendored
View file

@ -1,4 +1,6 @@
target
*.blend1
extra
additional
outfly_v*
src/build/nix/result

121
CHANGELOG.md Normal file
View file

@ -0,0 +1,121 @@
# v0.8.2
- Add speedometer and bigger reticule
- Move asteroid, so the game doesn't start in the dark
# v0.8.1
- Add command line options to set window/fullscreen mode
# v0.8.0
- Implement animations
- Implement shadows
- Implement markers for points of interest in the map
- Add new animated high-poly player mesh
- Add new secret character
# v0.7.3
- Implement map. You can now zoom out ALL THE WAY
# v0.7.2
- Implement colliders based on object shape
- Add "The Whale" vehicle around bus station Metis Prime
# v0.7.1
- Much nicer HUD
# v0.7.0
- Overhaul conversation system, now defined in YAML files
- Implement conversation variables and if-branches
- Improve dialogues
- Improve HUD
- Add teleport-to-target cheat
# v0.6.1
- Implement free public transport with 3 bus stations
- Implement Clippy™ Convenience Companion drone
- Implement augmented reality overlays on top of NPC appearances
# v0.6.0
- Implement zooming with right click (AR only)
- Implement targeting objects with left click (AR only)
- Implement matching velocity to targeted objects with space
- Implement damage from g-forces
- Implement god mode
- Fix crash by avoiding legacy fullscreen mode
# v0.5.3
- Implement death & respawning
- Add wholesome conversation with Icarus
- Add satellite
- NPCs will now slow back down if they're pushed
# v0.5.2
- Change BGM to Cinematic Cello by Aleksey Chistilin
- Fix vehicle exiting
# v0.5.1
- Fix asteroid despawning
- Add cheat codes
- Add moon Thebe
# v0.5.0
- Implement dynamically spawning asteroids all over the ring
- Changed from 32-bit to 64-bit precision physics
- Center rendering coordinate system on player to fix visual glitches
# v0.4.1
- Add visible ring around Jupiter
# v0.4.0
- Implement physics, collisions
- Implement 3rd person view
- Implement realistic camera control with pitch/yaw/rotation
- Add Galilean moons (Io, Europa, Ganymede, Callisto)
- Add light sources, better illumination of pizzeria
- Add mysterious monoliths
# v0.3.0
- Implement vehicles
- Add MeteorAceGT racing vehicle
- Add background music "Dead Space Style Ambient Music"
- Add custom font Yupiter based on ZCOOL QingKe HuangYou
# v0.2.0
- Add Jupiter
- Add new pizzeria model with neon sign
- Add astronaut suit model OutFly™ SecondSkyn
- Add more conversations
- Implement parser for "defs.txt" to spawn world objects and chats
# v0.1.3
- Add pizzeria
# v0.1.2
- Replace skybox with accurate star chart
- Implement conversation system
# v0.1.1
- Better sky box and HUD
# v0.1.0
- First release with basic controls, HUD, sounds, skybox, sun

107
Cargo.lock generated
View file

@ -72,6 +72,12 @@ dependencies = [
"winit",
]
[[package]]
name = "adler"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
[[package]]
name = "ahash"
version = "0.8.11"
@ -685,7 +691,7 @@ dependencies = [
"quote",
"rustc-hash",
"syn 2.0.52",
"toml_edit",
"toml_edit 0.21.1",
]
[[package]]
@ -1503,6 +1509,15 @@ dependencies = [
"windows 0.54.0",
]
[[package]]
name = "crc32fast"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b3855a8a784b474f333699ef2bbca9db2c4a1f6d9088a90a2d25b1eb53111eaa"
dependencies = [
"cfg-if",
]
[[package]]
name = "crossbeam-channel"
version = "0.5.12"
@ -1739,6 +1754,15 @@ version = "2.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "658bd65b1cf4c852a3cc96f18a8ce7b5640f6b703f905c7d74532294c2a63984"
[[package]]
name = "fdeflate"
version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4f9bfee30e4dedf0ab8b422f03af778d9612b63f502710fc500a334ebe2de645"
dependencies = [
"simd-adler32",
]
[[package]]
name = "file-id"
version = "0.2.1"
@ -1766,6 +1790,16 @@ version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80"
[[package]]
name = "flate2"
version = "1.0.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "46303f565772937ffe1d394a4fac6f411c6013172fadde9dcdb1e147a086940e"
dependencies = [
"crc32fast",
"miniz_oxide",
]
[[package]]
name = "foreign-types"
version = "0.5.0"
@ -2086,6 +2120,7 @@ dependencies = [
"color_quant",
"jpeg-decoder",
"num-traits",
"png",
]
[[package]]
@ -2392,6 +2427,16 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
[[package]]
name = "miniz_oxide"
version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9d811f3e15f28568be3407c8e7fdb6514c1cda3cb30683f15b6a1a1dc4ea14a7"
dependencies = [
"adler",
"simd-adler32",
]
[[package]]
name = "mio"
version = "0.8.11"
@ -2758,7 +2803,7 @@ dependencies = [
[[package]]
name = "outfly"
version = "0.8.0"
version = "0.8.2"
dependencies = [
"bevy",
"bevy_embedded_assets",
@ -2768,6 +2813,7 @@ dependencies = [
"regex",
"serde",
"serde_yaml",
"toml_edit 0.22.12",
]
[[package]]
@ -2903,6 +2949,19 @@ version = "0.3.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d231b230927b5e4ad203db57bbcbee2802f6bce620b1e4a9024a07d94e2907ec"
[[package]]
name = "png"
version = "0.17.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "06e4b0d3d1312775e782c86c91a111aa1f910cbb65e1337f9975b5f9a554b5e1"
dependencies = [
"bitflags 1.3.2",
"crc32fast",
"fdeflate",
"flate2",
"miniz_oxide",
]
[[package]]
name = "polling"
version = "3.5.0"
@ -2938,7 +2997,7 @@ version = "3.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d37c51ca738a55da99dc0c4a34860fd675453b8b36209178c2249bb13651284"
dependencies = [
"toml_edit",
"toml_edit 0.21.1",
]
[[package]]
@ -3245,6 +3304,15 @@ dependencies = [
"serde",
]
[[package]]
name = "serde_spanned"
version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eb3622f419d1296904700073ea6cc23ad690adbd66f13ea683df73298736f0c1"
dependencies = [
"serde",
]
[[package]]
name = "serde_yaml"
version = "0.9.34+deprecated"
@ -3286,6 +3354,12 @@ dependencies = [
"wide",
]
[[package]]
name = "simd-adler32"
version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe"
[[package]]
name = "slab"
version = "0.4.9"
@ -3527,6 +3601,9 @@ name = "toml_datetime"
version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1"
dependencies = [
"serde",
]
[[package]]
name = "toml_edit"
@ -3536,7 +3613,20 @@ checksum = "6a8534fd7f78b5405e860340ad6575217ce99f38d4d5c8f2442cb5ecb50090e1"
dependencies = [
"indexmap",
"toml_datetime",
"winnow",
"winnow 0.5.40",
]
[[package]]
name = "toml_edit"
version = "0.22.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3328d4f68a705b2a4498da1d580585d39a6510f98318a2cec3018a7ec61ddef"
dependencies = [
"indexmap",
"serde",
"serde_spanned",
"toml_datetime",
"winnow 0.6.7",
]
[[package]]
@ -4416,6 +4506,15 @@ dependencies = [
"memchr",
]
[[package]]
name = "winnow"
version = "0.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "14b9415ee827af173ebb3f15f9083df5a122eb93572ec28741fb153356ea2578"
dependencies = [
"memchr",
]
[[package]]
name = "winreg"
version = "0.10.1"

View file

@ -10,7 +10,7 @@
[package]
name = "outfly"
version = "0.8.0"
version = "0.8.2"
edition = "2021"
homepage = "https://codeberg.org/hut/outfly"
repository = "https://codeberg.org/hut/outfly"
@ -18,23 +18,40 @@ categories = ["game", "aerospace", "simulation"]
keywords = ["game", "space", "3d"]
license = "GPL-3.0-only"
rust-version = "1.76.0"
build = "src/build/build.rs"
[dependencies]
# For parsing the game definition file, src/data/defs.txt
regex = "1"
bevy = { version = "0.13.2", default-features = false, features = ["animation", "bevy_asset", "bevy_audio", "bevy_scene", "bevy_winit", "bevy_core_pipeline", "bevy_pbr", "bevy_gltf", "bevy_render", "bevy_text", "bevy_ui", "jpeg", "multi-threaded", "tonemapping_luts", "vorbis"]}
# The bevy game engine, the basis for this game
bevy = { version = "0.13.2", default-features = false, features = ["animation", "bevy_asset", "bevy_audio", "bevy_scene", "bevy_winit", "bevy_core_pipeline", "bevy_pbr", "bevy_gltf", "bevy_render", "bevy_text", "bevy_ui", "jpeg", "multi-threaded", "png", "tonemapping_luts", "vorbis"]}
# For physics and collision handling
bevy_xpbd_3d = { version = "0.4.2", default-features = false, features = ["3d", "f64", "parry-f64", "parallel", "async-collider"] }
# For embedding assets into the binary, creating a self-sufficient executable
bevy_embedded_assets = { version = "0.10.2", optional = true }
# For seeded pseudo-random procedural generation of asteroids
fastrand = "2.0"
serde = "1.0"
# For conversation specification files, which are in YAML
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.9"
# For reading/writing the player's configuration file.
toml_edit = { version = "0.22", features = ["serde"] }
[build-dependencies]
embed-resource = "1.6.3" # embedding of .exe metadata
[features]
default = ["x11"]
dev = ["bevy/dynamic_linking", "bevy/file_watcher"]
default = ["x11", "embed_assets"]
mute_music = []
dev_mode = []
dev = ["dev_mode", "mute_music", "bevy/dynamic_linking", "bevy/file_watcher"]
release_linux = ["x11", "wayland", "embed_assets"]
release_windows = ["embed_assets"]
wasm = ["bevy/webgl2"]
x11 = ["bevy/x11"]
wayland = ["bevy/wayland"]

95
HACKING.md Normal file
View file

@ -0,0 +1,95 @@
# Dev Features
For development, it's recommended to use `--features dev`:
```
cargo [run|build] --features dev
```
This enables the following:
- Mutes music by default (you can still unmute it)
- Enables "dev mode", which changes the game slightly:
- Enables additional cheats (see source code)
- Speeds up dialogs
- Adds additional debugging features
- Enables dynamic linking for faster compile times. Note that this makes it harder to run the game directly with `./outfly`, please use `cargo run` instead.
- Enables bevy's "file watcher" feature that auto-reloads changed assets while the game is running. This obviously works only if the assets are not embedded directly into the binary with the `embed_assets` feature. Since `embed_assets` is enabled by default, you must customize your compile features in order to use the file watcher feature, e.g. like: `--no-default-features --features "dev x11"`
# pack.sh
The [pack.sh](src/build/pack.sh) script is used by the developer team to compile and pack release binaries into official packages.
It could serve as a starting point for package maintainers or tinkerers.
# Building OutFly
If there is no package for the version or operating system that you need, or if you wish to tinker on the game, you can also build outfly yourself.
## On Linux
Install the build dependencies. On ArchLinux, it's the following, though you can replace `rust` with `rustup`:
```
pacman -S rust libx11 pkgconf alsa-lib
```
Then run the following commands, replacing `[URL]` with the clone URL of the git repository:
```
git clone [URL]
cd outfly
cargo run --release
```
## Building for Windows on Linux
```
rustup target add x86_64-pc-windows-gnu
pacman -S mingw-w64-toolchain # on ArchLinux. other distros have their equivalent package
cargo build --target=x86_64-pc-windows-gnu --release
```
More information here: https://bevy-cheatbook.github.io/setup/cross/linux-windows.html
## Building on Mac OS
Install homebrew, and then get the following dependencies:
```
brew install pkg-config molten-vk rustup
rustup-init
```
Download, compile and run the game:
```
git clone [URL]
cd outfly
cargo run --release
```
## Building for WASM/Browser
This is a work in progress, for now these are just some general hints:
```
git clone [URL]
cd outfly
rustup target install wasm32-unknown-unknown
pacman -S wasm-bindgen binaryen
mkdir outfly_wasm
cargo build --release --target wasm32-unknown-unknown
wasm-bindgen --out-name outfly --out-dir outfly_wasm --target web target/wasm32-unknown-unknown/release/outfly.wasm
wasm-opt -Oz --output wasm/outfly_bg.wasm wasm/outfly_bg.wasm
echo '<script type="module">import init from "./outfly.js"; init()</script>' > wasm/index.html
python -m http.server -d wasm
```
## Building release versions optimized for packaging
To build release versions optimized for final deployment, build with the following features: (see also [pack.sh](https://codeberg.org/hut/outfly/src/branch/main/src/build/pack.sh))
```
cargo build --release --no-default-features --features release_[linux|windows] [--target=$YOUR_TARGET]
```

924
LICENSE.md Normal file
View file

@ -0,0 +1,924 @@
# Licenses of OutFly files
- Source code: GPL Version 3.0
- https://codeberg.org/hut/outfly
- 3D models: Original art, placed under the Creative Commons CC0 License
- Photographs of celestial bodies: By NASA, public domain
- Icon: Creative Commons CC0 License
- Original sound files:
- wakeup.ogg: Creative Commons CC0 License
- Other sound files: [Pixabay Content License](https://pixabay.com/service/license-summary)
- https://pixabay.com/sound-effects/typosonic-typing-192811
- https://pixabay.com/sound-effects/click-button-140881
- https://pixabay.com/sound-effects/data-transmission-sound-from-14664-72309
- https://pixabay.com/sound-effects/thrusters-loopwav-14699
- https://pixabay.com/sound-effects/rocket-loop-99748
- https://pixabay.com/sound-effects/350cc-bike-firing-32391
- https://pixabay.com/sound-effects/electricity-6353
- https://pixabay.com/sound-effects/ducati-696-monster-33217
- https://pixabay.com/sound-effects/high-energy-humming-195612
- https://pixabay.com/sound-effects/box-crash-106687
- https://pixabay.com/sound-effects/electric-fan-motor-blades-removed-13169
- https://pixabay.com/sound-effects/whoosh-blow-flutter-shortwav-14678/
- https://pixabay.com/sound-effects/dslr-camera-sounds-26117/
- Music: [Cinematic Cello](https://pixabay.com/music/build-up-scenes-cinematic-cello-115667) by [Aleksey Chistilin](https://pixabay.com/users/lexin_music-28841948/), [Pixabay Content License](https://pixabay.com/service/license-summary)
- Star chart based on the [HYG Stellar database](https://github.com/astronexus/HYG-Database)
- Font Yupiter-Regular.ttf is placed under the SIL OPEN FONT LICENSE Version 1.1 and is based on:
- Noto Sans Symbols 2, Copyright 2022 The Noto Project Authors (https://github.com/notofonts/symbols)
- ZCOOL QingKe HuangYou, Copyright 2018 The ZCOOL QingKe HuangYou Project Authors (https://www.github.com/googlefonts/zcool-qingke-huangyou)
- Noto Sans SC, Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'.
# CC0 License Text
Creative Commons Legal Code
CC0 1.0 Universal
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
HEREUNDER.
Statement of Purpose
The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator
and subsequent owner(s) (each and all, an "owner") of an original work of
authorship and/or a database (each, a "Work").
Certain owners wish to permanently relinquish those rights to a Work for
the purpose of contributing to a commons of creative, cultural and
scientific works ("Commons") that the public can reliably and without fear
of later claims of infringement build upon, modify, incorporate in other
works, reuse and redistribute as freely as possible in any form whatsoever
and for any purposes, including without limitation commercial purposes.
These owners may contribute to the Commons to promote the ideal of a free
culture and the further production of creative, cultural and scientific
works, or to gain reputation or greater distribution for their Work in
part through the use and efforts of others.
For these and/or other purposes and motivations, and without any
expectation of additional consideration or compensation, the person
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
is an owner of Copyright and Related Rights in the Work, voluntarily
elects to apply CC0 to the Work and publicly distribute the Work under its
terms, with knowledge of his or her Copyright and Related Rights in the
Work and the meaning and intended legal effect of CC0 on those rights.
1. Copyright and Related Rights. A Work made available under CC0 may be
protected by copyright and related or neighboring rights ("Copyright and
Related Rights"). Copyright and Related Rights include, but are not
limited to, the following:
i. the right to reproduce, adapt, distribute, perform, display,
communicate, and translate a Work;
ii. moral rights retained by the original author(s) and/or performer(s);
iii. publicity and privacy rights pertaining to a person's image or
likeness depicted in a Work;
iv. rights protecting against unfair competition in regards to a Work,
subject to the limitations in paragraph 4(a), below;
v. rights protecting the extraction, dissemination, use and reuse of data
in a Work;
vi. database rights (such as those arising under Directive 96/9/EC of the
European Parliament and of the Council of 11 March 1996 on the legal
protection of databases, and under any national implementation
thereof, including any amended or successor version of such
directive); and
vii. other similar, equivalent or corresponding rights throughout the
world based on applicable law or treaty, and any national
implementations thereof.
2. Waiver. To the greatest extent permitted by, but not in contravention
of, applicable law, Affirmer hereby overtly, fully, permanently,
irrevocably and unconditionally waives, abandons, and surrenders all of
Affirmer's Copyright and Related Rights and associated claims and causes
of action, whether now known or unknown (including existing as well as
future claims and causes of action), in the Work (i) in all territories
worldwide, (ii) for the maximum duration provided by applicable law or
treaty (including future time extensions), (iii) in any current or future
medium and for any number of copies, and (iv) for any purpose whatsoever,
including without limitation commercial, advertising or promotional
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
member of the public at large and to the detriment of Affirmer's heirs and
successors, fully intending that such Waiver shall not be subject to
revocation, rescission, cancellation, termination, or any other legal or
equitable action to disrupt the quiet enjoyment of the Work by the public
as contemplated by Affirmer's express Statement of Purpose.
3. Public License Fallback. Should any part of the Waiver for any reason
be judged legally invalid or ineffective under applicable law, then the
Waiver shall be preserved to the maximum extent permitted taking into
account Affirmer's express Statement of Purpose. In addition, to the
extent the Waiver is so judged Affirmer hereby grants to each affected
person a royalty-free, non transferable, non sublicensable, non exclusive,
irrevocable and unconditional license to exercise Affirmer's Copyright and
Related Rights in the Work (i) in all territories worldwide, (ii) for the
maximum duration provided by applicable law or treaty (including future
time extensions), (iii) in any current or future medium and for any number
of copies, and (iv) for any purpose whatsoever, including without
limitation commercial, advertising or promotional purposes (the
"License"). The License shall be deemed effective as of the date CC0 was
applied by Affirmer to the Work. Should any part of the License for any
reason be judged legally invalid or ineffective under applicable law, such
partial invalidity or ineffectiveness shall not invalidate the remainder
of the License, and in such case Affirmer hereby affirms that he or she
will not (i) exercise any of his or her remaining Copyright and Related
Rights in the Work or (ii) assert any associated claims and causes of
action with respect to the Work, in either case contrary to Affirmer's
express Statement of Purpose.
4. Limitations and Disclaimers.
a. No trademark or patent rights held by Affirmer are waived, abandoned,
surrendered, licensed or otherwise affected by this document.
b. Affirmer offers the Work as-is and makes no representations or
warranties of any kind concerning the Work, express, implied,
statutory or otherwise, including without limitation warranties of
title, merchantability, fitness for a particular purpose, non
infringement, or the absence of latent or other defects, accuracy, or
the present or absence of errors, whether or not discoverable, all to
the greatest extent permissible under applicable law.
c. Affirmer disclaims responsibility for clearing rights of other persons
that may apply to the Work or any use thereof, including without
limitation any person's Copyright and Related Rights in the Work.
Further, Affirmer disclaims responsibility for obtaining any necessary
consents, permissions or other rights required for any use of the
Work.
d. Affirmer understands and acknowledges that Creative Commons is not a
party to this document and has no duty or obligation with respect to
this CC0 or use of the Work.
# GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
<https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
## Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom
to share and change all versions of a program--to make sure it remains
free software for all its users. We, the Free Software Foundation, use
the GNU General Public License for most of our software; it applies
also to any other work released this way by its authors. You can apply
it to your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you
have certain responsibilities if you distribute copies of the
software, or if you modify it: responsibilities to respect the freedom
of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the
manufacturer can do so. This is fundamentally incompatible with the
aim of protecting users' freedom to change the software. The
systematic pattern of such abuse occurs in the area of products for
individuals to use, which is precisely where it is most unacceptable.
Therefore, we have designed this version of the GPL to prohibit the
practice for those products. If such problems arise substantially in
other domains, we stand ready to extend this provision to those
domains in future versions of the GPL, as needed to protect the
freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish
to avoid the special danger that patents applied to a free program
could make it effectively proprietary. To prevent this, the GPL
assures that patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
## TERMS AND CONDITIONS
### 0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds
of works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of
an exact copy. The resulting work is called a "modified version" of
the earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user
through a computer network, with no transfer of a copy, is not
conveying.
An interactive user interface displays "Appropriate Legal Notices" to
the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
### 1. Source Code.
The "source code" for a work means the preferred form of the work for
making modifications to it. "Object code" means any non-source form of
a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users can
regenerate automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same
work.
### 2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not convey,
without conditions so long as your license otherwise remains in force.
You may convey covered works to others for the sole purpose of having
them make modifications exclusively for you, or provide you with
facilities for running those works, provided that you comply with the
terms of this License in conveying all material for which you do not
control copyright. Those thus making or running the covered works for
you must do so exclusively on your behalf, under your direction and
control, on terms that prohibit them from making any copies of your
copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under the
conditions stated below. Sublicensing is not allowed; section 10 makes
it unnecessary.
### 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such
circumvention is effected by exercising rights under this License with
respect to the covered work, and you disclaim any intention to limit
operation or modification of the work as a means of enforcing, against
the work's users, your or third parties' legal rights to forbid
circumvention of technological measures.
### 4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
### 5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these
conditions:
- a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
- b) The work must carry prominent notices stating that it is
released under this License and any conditions added under
section 7. This requirement modifies the requirement in section 4
to "keep intact all notices".
- c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
- d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
### 6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of
sections 4 and 5, provided that you also convey the machine-readable
Corresponding Source under the terms of this License, in one of these
ways:
- a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
- b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the Corresponding
Source from a network server at no charge.
- c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
- d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
- e) Convey the object code using peer-to-peer transmission,
provided you inform other peers where the object code and
Corresponding Source of the work are being offered to the general
public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal,
family, or household purposes, or (2) anything designed or sold for
incorporation into a dwelling. In determining whether a product is a
consumer product, doubtful cases shall be resolved in favor of
coverage. For a particular product received by a particular user,
"normally used" refers to a typical or common use of that class of
product, regardless of the status of the particular user or of the way
in which the particular user actually uses, or expects or is expected
to use, the product. A product is a consumer product regardless of
whether the product has substantial commercial, industrial or
non-consumer uses, unless such uses represent the only significant
mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to
install and execute modified versions of a covered work in that User
Product from a modified version of its Corresponding Source. The
information must suffice to ensure that the continued functioning of
the modified object code is in no case prevented or interfered with
solely because modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or
updates for a work that has been modified or installed by the
recipient, or for the User Product in which it has been modified or
installed. Access to a network may be denied when the modification
itself materially and adversely affects the operation of the network
or violates the rules and protocols for communication across the
network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
### 7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders
of that material) supplement the terms of this License with terms:
- a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
- b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
- c) Prohibiting misrepresentation of the origin of that material,
or requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
- d) Limiting the use for publicity purposes of names of licensors
or authors of the material; or
- e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
- f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions
of it) with contractual assumptions of liability to the recipient,
for any liability that these contractual assumptions directly
impose on those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions; the
above requirements apply either way.
### 8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your license
from a particular copyright holder is reinstated (a) provisionally,
unless and until the copyright holder explicitly and finally
terminates your license, and (b) permanently, if the copyright holder
fails to notify you of the violation by some reasonable means prior to
60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
### 9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or run
a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
### 10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
### 11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims owned
or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within the
scope of its coverage, prohibits the exercise of, or is conditioned on
the non-exercise of one or more of the rights that are specifically
granted under this License. You may not convey a covered work if you
are a party to an arrangement with a third party that is in the
business of distributing software, under which you make payment to the
third party based on the extent of your activity of conveying the
work, and under which the third party grants, to any of the parties
who would receive the covered work from you, a discriminatory patent
license (a) in connection with copies of the covered work conveyed by
you (or copies made from those copies), or (b) primarily for and in
connection with specific products or compilations that contain the
covered work, unless you entered into that arrangement, or that patent
license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
### 12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under
this License and any other pertinent obligations, then as a
consequence you may not convey it at all. For example, if you agree to
terms that obligate you to collect a royalty for further conveying
from those to whom you convey the Program, the only way you could
satisfy both those terms and this License would be to refrain entirely
from conveying the Program.
### 13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
### 14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions
of the GNU General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in
detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies that a certain numbered version of the GNU General Public
License "or any later version" applies to it, you have the option of
following the terms and conditions either of that numbered version or
of any later version published by the Free Software Foundation. If the
Program does not specify a version number of the GNU General Public
License, you may choose any version ever published by the Free
Software Foundation.
If the Program specifies that a proxy can decide which future versions
of the GNU General Public License can be used, that proxy's public
statement of acceptance of a version permanently authorizes you to
choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
### 15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND
PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE
DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
CORRECTION.
### 16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR
CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT
NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR
LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM
TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER
PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
### 17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
## How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these
terms.
To do so, attach the following notices to the program. It is safest to
attach them to the start of each source file to most effectively state
the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper
mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands \`show w' and \`show c' should show the
appropriate parts of the General Public License. Of course, your
program's commands might be different; for a GUI interface, you would
use an "about box".
You should also get your employer (if you work as a programmer) or
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. For more information on this, and how to apply and follow
the GNU GPL, see <https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your
program into proprietary programs. If your program is a subroutine
library, you may consider it more useful to permit linking proprietary
applications with the library. If this is what you want to do, use the
GNU Lesser General Public License instead of this License. But first,
please read <https://www.gnu.org/licenses/why-not-lgpl.html>.
# SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
PREAMBLE
-----------
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
-----------
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
-----------
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
-----------
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
-----------
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

196
README.md
View file

@ -10,18 +10,24 @@
+ ▀████████████████████████████████████████████████████▀
```
Chapters: [Features](#features) • [Controls](#controls) • [Running OutFly](#running-outfly) • [Building](#building) • [Changelog](#changelog) • [Credits](#credits)
Links: [Code](https://codeberg.org/hut/outfly) • [itch.io](https://yunicode.itch.io/outfly) • [Mastodon](https://mastodon.social/@outfly) • [Chat](https://matrix.to/#/#outfly:pub.solar)
[Features](#features) • [Controls](#controls) • [Running OutFly](#running-outfly) • [Troubleshooting](#troubleshooting)
# OutFly
[![License: GPL 3.0](doc/images/badge-gpl3.svg)](https://www.gnu.org/licenses/gpl-3.0.html)
[![Powered by Bevy](doc/images/badge-bevy.svg)](https://bevyengine.org)
[![Available on itch.io](doc/images/badge-itch.svg)](https://yunicode.itch.io/outfly)
[![Donate on Liberapay](https://img.shields.io/liberapay/patrons/outfly?logo=liberapay&logoColor=%23ffffff)](https://liberapay.com/outfly)
[![Follow on Mastodon](https://img.shields.io/mastodon/follow/112327969307230863)](https://mastodon.social/@outfly)
OutFly is an atmospheric, open world, realistic 3D space game that throws you into the [Rings of Jupiter](https://en.wikipedia.org/wiki/Rings_of_Jupiter) with a self-sufficient sportswear space suit that will take you anywhere.
Imagine a blend of [Fallout](https://en.wikipedia.org/wiki/Fallout_%28series%29) and [Outer Wilds](https://en.wikipedia.org/wiki/Outer_Wilds) with a splash of [Firefly](https://en.wikipedia.org/wiki/Firefly_%28TV_series%29), where you are free to explore the breathtaking expanse of the Jupiter system and discover what life could be like after hundreds of years of space colonization.
Imagine a blend of [Fallout](https://en.wikipedia.org/wiki/Fallout_%28series%29) and [Outer Wilds](https://en.wikipedia.org/wiki/Outer_Wilds), where you are free to explore the breathtaking expanse of the Jupiter system and discover what life could be like after hundreds of years of space colonization.
This game aims to respect the player as much as possible. It doesn't waste your time: Despite the vastness of space, nothing takes too long. Speed cheats are active by default, allowing you to visit places you normally couldn't, without passing out from the g-forces. There are no anxiety-causing features (apart of, maybe, space itself), no loading screens, nothing to micromanage, not even save games. You can plunge into the game any time you feel like it, and it's up to you whether you just want to soak in the beautiful scenery, engage with the survival mechanics [still in development], or dive into the game story [still in development]. And finally, it's not just DRM-free but completely open source, allowing you to tinker on any part of the game to your liking.
Source code: https://codeberg.org/hut/outfly
![screenshot](doc/images/screenshot3.jpg)
# Features
@ -29,7 +35,7 @@ This game aims to respect the player as much as possible. It doesn't waste your
- A beautiful, serene atmosphere with gorgeous views
- Racing vehicles, unique NPCs, cozy places, deadly environment
- Accurate, clickable star chart. Can you spot the constellations?
- Cross platform, free & open source forever!
- Cross platform, [free & open source](https://codeberg.org/hut/outfly) forever!
- Written in [Rust](https://www.rust-lang.org) with the [Bevy game engine](https://bevyengine.org)
- Status: Early access, not much content
@ -80,12 +86,6 @@ pacman -S glibc libcap gcc-libs alsa-lib systemd-libs
./outfly
```
If your graphics card does not support vulkan, try setting the environment variable `WGPU_BACKEND=gl`: (will result in poor performance)
```
WGPU_BACKEND=gl ./outfly
```
Alternatively, you can also install OutFly as a package, if your distribution has one. This will place OutFly in your "start menu". As of writing, only an ArchLinux AUR package exists, which you can install with this command:
```
@ -99,175 +99,41 @@ yay -S outfly-git
## Running on MacOS / Android / iOS
No releases for these operating systems exist yet. For MacOS, you can build OutFly yourself using the instructions below. Support for Android/iOS is planned for the future.
No releases for these operating systems exist yet. For MacOS, you can build OutFly yourself using the instructions in [HACKING.md](https://codeberg.org/hut/outfly/src/branch/main/HACKING.md). Support for Android/iOS is planned for the future.
# Building
# Troubleshooting
## My GPU doesn't support Vulkan!
If there is no package for the version or operating system that you need, or if you wish to tinker on the game, you can also build outfly yourself.
For development, it's recommended to use `--features dev` to enable dynamic linking for faster compile times, e.g. like this:
Try running outfly with the command-line option "--gl", with one of these commands:
```
cargo [run|build] --features dev
./outfly --gl
cargo run -- --gl
```
## On Linux
This will result in some visual glitches, reduced performance, as well as a lot of error messages about CubeArrays which you can safely ignore. You can alternatively achieve this by setting the environment variable `WGPU_BACKEND` to `gl`: `WPU_BACKEND=gl ./outfly`.
Install the build dependencies. On ArchLinux, it's the following, though you can replace `rust` with `rustup`:
## The game instantly crashes!
Try changing the full screen mode with the command line option "--fs-legacy":
```
pacman -S rust libx11 pkgconf alsa-lib
./outfly --fs-legacy
cargo run -- --fs-legacy
```
Then run the following commands, replacing `[URL]` with the clone URL of the git repository:
If this doesn't work, please open an issue on https://codeberg.org/hut/outfly and provide as many details as you can, including the crash log.
```
git clone [URL]
cd outfly
cargo run --release
```
## Crash with "error while loading shared libraries"
NOTE: Audio is muted by default when run through `cargo run`, unless you add `--release`
If you build with `--features dev`, then you must not run the game `./outfly`. Use `cargo run` instead.
## Building for Windows on Linux
## The assets can't be found
```
rustup target add x86_64-pc-windows-gnu
pacman -S mingw-w64-toolchain # on ArchLinux. other distros have their equivalent package
cargo build --target=x86_64-pc-windows-gnu --release
```
If you build without the "`embed_assets`" feature, the asset folder must be in the same path as the outfly binary. Possible solutions are to symlink the `assets` directory into the `target/$yourtarget/` folder, to instead run with `cargo run`, or to compile with "`--features embed_assets`" (which is enabled by default).
More information here: https://bevy-cheatbook.github.io/setup/cross/linux-windows.html
## I'm on Windows. How do I use command line options?
## Building on Mac OS
Create a shortcut, change the target from `[...]outfly.exe` to e.g. `[...]outfly.exe --gl`.
Install homebrew, and then get the following dependencies:
```
brew install pkg-config molten-vk rustup
rustup-init
```
Download, compile and run the game:
```
git clone [URL]
cd outfly
cargo run --release
```
## Building for WASM/Browser
This is a work in progress, for now these are just some general hints:
```
git clone [URL]
cd outfly
rustup target install wasm32-unknown-unknown
pacman -S wasm-bindgen binaryen
mkdir outfly_wasm
cargo build --release --target wasm32-unknown-unknown
wasm-bindgen --out-name outfly --out-dir outfly_wasm --target web target/wasm32-unknown-unknown/release/outfly.wasm
wasm-opt -Oz --output wasm/outfly_bg.wasm wasm/outfly_bg.wasm
echo '<script type="module">import init from "./outfly.js"; init()</script>' > wasm/index.html
python -m http.server -d wasm
```
# Changelog
- v0.8.0:
- Implement animations
- Implement shadows
- Implement markers for points of interest in the map
- Add new animated high-poly player mesh
- Add new secret character
- v0.7.3: Implement map. You can now zoom out ALL THE WAY
- v0.7.2:
- Implement colliders based on object shape
- Add "The Whale" vehicle around bus station Metis Prime
- v0.7.1: Much nicer HUD
- v0.7.0:
- Overhaul conversation system, now defined in YAML files
- Implement conversation variables and if-branches
- Improve dialogues
- Improve HUD
- Add teleport-to-target cheat
- v0.6.1:
- Implement free public transport with 3 bus stations
- Implement Clippy™ Convenience Companion drone
- Implement augmented reality overlays on top of NPC appearances
- v0.6.0:
- Implement zooming with right click (AR only)
- Implement targeting objects with left click (AR only)
- Implement matching velocity to targeted objects with space
- Implement damage from g-forces
- Implement god mode
- Fix crash by avoiding legacy fullscreen mode
- v0.5.3:
- Implement death & respawning
- Add wholesome conversation with Icarus
- Add satellite
- NPCs will now slow back down if they're pushed
- v0.5.2:
- Change BGM to Cinematic Cello by Aleksey Chistilin
- Fix vehicle exiting
- v0.5.1:
- Fix asteroid despawning
- Add cheat codes
- Add moon Thebe
- v0.5.0:
- Implement dynamically spawning asteroids all over the ring
- Changed from 32-bit to 64-bit precision physics
- Center rendering coordinate system on player to fix visual glitches
- v0.4.1: Add visible ring around Jupiter
- v0.4.0:
- Implement physics, collisions
- Implement 3rd person view
- Implement realistic camera control with pitch/yaw/rotation
- Add Galilean moons (Io, Europa, Ganymede, Callisto)
- Add light sources, better illumination of pizzeria
- Add mysterious monoliths
- v0.3.0:
- Implement vehicles
- Add MeteorAceGT racing vehicle
- Add background music "Dead Space Style Ambient Music"
- Add custom font Yupiter based on ZCOOL QingKe HuangYou
- v0.2.0:
- Add Jupiter
- Add new pizzeria model with neon sign
- Add astronaut suit model OutFly™ SecondSkyn
- Add more conversations
- Implement parser for "defs.txt" to spawn world objects and chats
- v0.1.3: Add pizzeria
- v0.1.2:
- Replace skybox with accurate star chart
- Implement conversation system
- v0.1.1: Better sky box and HUD
- v0.1.0: First release with basic controls, HUD, sounds, skybox, sun
# Credits
- Source code: GPL Version 3.0
- 3D models: Original art, placed under the Creative Commons CC0 License
- Photographs of celestial bodies: By NASA, public domain
- Icon: Creative Commons CC0 License
- Original sound files:
- wakeup.ogg: Creative Commons CC0 License
- Other sound files: [Pixabay Content License](https://pixabay.com/service/license-summary)
- https://pixabay.com/sound-effects/typosonic-typing-192811
- https://pixabay.com/sound-effects/click-button-140881
- https://pixabay.com/sound-effects/data-transmission-sound-from-14664-72309
- https://pixabay.com/sound-effects/thrusters-loopwav-14699
- https://pixabay.com/sound-effects/rocket-loop-99748
- https://pixabay.com/sound-effects/350cc-bike-firing-32391
- https://pixabay.com/sound-effects/electricity-6353
- https://pixabay.com/sound-effects/ducati-696-monster-33217
- https://pixabay.com/sound-effects/high-energy-humming-195612
- https://pixabay.com/sound-effects/box-crash-106687
- https://pixabay.com/sound-effects/electric-fan-motor-blades-removed-13169
- Music: [Cinematic Cello](https://pixabay.com/music/build-up-scenes-cinematic-cello-115667) by [Aleksey Chistilin](https://pixabay.com/users/lexin_music-28841948/), [Pixabay Content License](https://pixabay.com/service/license-summary)
- Star chart based on the [HYG Stellar database](https://github.com/astronexus/HYG-Database)
- Font Yupiter-Regular.ttf is placed under the SIL OPEN FONT LICENSE Version 1.1 and is based on:
- Noto Sans Symbols 2, Copyright 2022 The Noto Project Authors (https://github.com/notofonts/symbols)
- ZCOOL QingKe HuangYou, Copyright 2018 The ZCOOL QingKe HuangYou Project Authors (https://www.github.com/googlefonts/zcool-qingke-huangyou)
- Noto Sans SC, Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'.
See https://superuser.com/questions/1202989/how-to-you-add-a-parameter-to-an-executable-in-windows-10

218
ROADMAP.md Normal file
View file

@ -0,0 +1,218 @@
```
▄████████▄ + ███ + ▄█████████ ███ +
███▀ ▀███ + + ███ ███▀ + ███ + +
███ + ███ ███ ███ █████████ ███ ███ ███ ███
███ +███ ███ ███ ███ ███▐██████ ███ ███ ███
███ + ███ ███+ ███ +███ ███ + ███ ███ + ███
███▄ ▄███ ███▄ ███ ███ + ███ + ███ ███▄ ███
▀████████▀ + ▀███████ ███▄ ███▄ ▀████ ▀███████
+ + + ███
+ ▀████████████████████████████████████████████████████▀
```
# OutFly Roadmap
This file is a place for planning and documenting the game design.
# Why I made this game
As a long-time fan of space sci-fi, I had this space itch that none of the existing games/media could scratch so far. I wanted the sense that I'm really out there in space myself, in a non-sugarcoated way. I wanted to feel the harsh reality of the vacuum. The mind-boggling scales. The emptiness, darkness, danger, loneliness. The beauty of outer space. The coziness of the self-sufficient space vehicle that provides me with all of life's necessities. The pleasure of meeting other friendly faces in the void, extending hospitality to each other. The freedom to wander the open world wherever I please (and where my vehicles are able to take me). The exploration of a frontier. Being able to carve out a little space for myself that I could call home. And sometimes simply a place where I could just chill after a long day of work, stare at the stars, and drift through nothingness. All of this in a way that respects the player: no addictive game mechanics, no microtransactions, no DRM, no excessive strains on the hardware, no time-wasting mechanics, and ideally, being free open source software, so I can truly own the game, and customize the parts I don't like.
There are many games out there that provided me with some of this: FTL, Outer Wilds, Mass Effect, Space Haven, Δv, Elite: Dangerous, ... but invariably they fail in some way to scratch my itch, and so I set out to give it a try of my own.
# Design Goals
We are not quite there yet, but this is what I'm aiming for:
- Utopia
- A depiction of the future where contemporary problems have been solved
- Depth
- Deep conversations with NPCs
- Beautiful scenery
- Detailed environment
- Detailed survival mechanics
- Curiosity-driven game progression
- A story that serves mostly as the vehicle for describing the environment, similar to Disco Elysium
- Realism
- Very few deviations from a real simulation of space
- Conserve the vast scale of space (unlike Outer Wilds)
- The rings change over time, as different parts orbit at different speeds.
- You are nobody special, no hero that saves the world, just a normal, flawed, boring person exploring space
- Freedom
- Ability to choose which aspects of the game one wants to engage with
- Ability to go anywhere (within the limits of realism)
- Cheats that are easy to enable
- Wholesomeness
- No wasting of the player's time
- No player-hostile features
- No anxiety-causing features
- No DRM
- No paid features
- Non-addictiveness
- No features that manipulate the player into neglecting their life responsibilities in favor of the game
- No artificially long game progression
- No loot boxes
- No randomness
- Effortlessness, ADHD-friendliness, Accessibility
- No requirement for Steam or any other environment
- No loading screens
- No save games
- No need to remember anything
- Simple inventory system
- Packaged for major Linux distributions and gaming environments
- Key-bound actions should be accessible via menu items, with their keybinding visible in the menu item description
- As easy to get in to as `Solitaire.exe`
- Aspects of Roguelike games
- Permadeath, with so many ways to die
- Non-modality (e.g. conversations don't "pause" the game and don't lock you into a "conversation mode")
- Emergent gameplay from a variety of interacting game systems
- Resource management for survival [though this can be disabled with cheats]
- Nethack-like "record" that tracks how players died and what they accomplished
- Still pondering if procedural generation is a good idea. I'd rather want the player to get acquainted with a hand-crafted, unchanging environment. Though one way to spice things up could be to let the planets/moons orbit in real time, and starting the game at different times (or playing for a long time) will produce a different environment according to real orbital movements.
- Minimalism
- Small game binary size
- Small git repository size
- Minimal resource usage
- Minimal dependencies
- Simple game systems, but many of these, to give rise to emergent gameplay
- Simple code
- Customizability
- Easy modding
- Any state/config files should be editable with a simple text editor
- Short-term viability
- At any point in the game development process, the game should be polished enough to provide a smooth, enjoyable gaming experience for the target audience.
- Branching off the main branch to add more complex features is fine of course.
- If game development would end right now, it should be plausible to claim that the game is finished and the planned features were simply out of scope.
- Open Source
- The author got into programming through modifying existing open source games, and wishes to help others to be able to do the same.
- The game should only use components that don't restrict the player's ability to run the game, change it to their needs, and learn from its design.
# Intentional deviations from reality
- The player can survive higher g-forces than a contemporary human, though this can be explained through better equipment, drugs, and/or genetic engineering.
- The position of the planets/moons is the one of the present real time of the player, even though the game takes place hundreds of years in the future. I could simulate the future positions, but I think it's an extra layer of awesomeness if the positions of the celestial objects in the game mirroring the ones of reality. And nobody would ever notice the discrepancy.
# Game systems
A variety of relatively simple game systems should interact with each other to create emergent gameplay and interesting game mechanics.
- Free movement in space
- Collision with other actors
- Augmented Reality overlay
- Targeting objects
- Conversations with NPCs (short- and long-distance)
- Vehicle riding
- Map mode
- can we make it non-modal? Interweave it into regular gameplay?
- G-forces and equipment/organ damage
- Death, and survival
# Challenges
- How to tell a deep story with permadeath without getting repetitive?
- To be solved...
- How to travel to far places without wasting player's time?
- Skipping in-game time, with bus stations and cryofreeze
- Incredibly high speeds through unrealistic g-force tolerance (rather not)
- "half-cycling" the brain of the astronaut: entering a sleep state where the player unconscious 99% of the time, only experiencing 1% of the moments consciously, giving a perception of time lapse. The suit computer could take over the controls during the time when the player is unconscious
- Continue simulation after the game exits, so if the player wants to travel far, they have to stop playing for a couple hours, to resume playing at the destination. (rather not)
- How to be able to carve out a home for oneself in space if there is permadeath?
- The home could still be drifting in space after the player's death
- The home could be virtual, stored in the spacesuit's computer, accessible via augmented/virtual reality
- The home could be added through modding, outside of the game
- Maybe a customizable home is not really needed
# Inspiration
TODO
# Survival Mechanics
Resources/Variables:
- Oxygen
- Power
- The suit would have a nuclear reactor that slowly charges a capacitor, which can be used for short-term high power usage
- Turn off Augmented Reality to conserve power
- Water
- Fuel
- Solar energy
- Could supplement power recharge when nuclear reactor is down
- Adrenaline
- Phone reception
- Depends on proximity to communication satellites
- Allows you to call people you've met before
Damage types:
- Organ damage
- Eye damage
- Ear damage
- Brain damage
- Radiation damage
- Equipment failure
- Suit leaks oxygen
- Power reactor damage, reduced/no output
- Battery bank damaged
- Thrusters damaged
- Flashlight damaged
- Electric circuits damaged from EMP
Items:
- SuitPatch SuperGlue
- Portable Thruster
- Multitool?
- Welding torch?
- Refills for resources:
- Water bottle
- Oxygen canister
- Fuel canister
- UltraCapacitor
# Worldbuilding
## People
- Icarus
- 梓涵
- Nox
- Rudy
- Yuni
- Pizzeria Clippy
- Bus Station Clippys
## Places
![Game Map](doc/images/map.svg)
- Serenity
- Thebe
- Metis Prime
- Farview
So far, nothing on the outer (Galileian) moons is planned, but they're not as far away as it seems. A trip from Thebe to Io can be faster than to Amalthea.
## Brands
### StarTrans™ Cargo Services
The public transport company
### Clippy Convenience Companion
Clippy™ Convenience Companion is a self-assembling, self-replicating, highly modular being that emerges from the collection of individual Clippy™ cubes.
These cubes are interchangeable, solar panel plated, driven by strong reaction wheels, and connect to each other through powerful magnets along the surface. A sensor array picks up various EM frequencies and a camera image through the plating. There are no moving parts on the outside. Individual cubes are able to transfer electricity to connected cubes, as well as transmit information wirelessly.
The shape of a Clippy™ can change quickly to solve a variety of space problems. Off-the-shelf plug-and-play Clippy™ modules further enhance their agency with additional tools, such as propulsion modules, sensors, or manipulators.
A Clippy™ Convenience Companion will broadcast an Augmented Reality overlay that resembles a face, in the somewhat antiquated "kaomoji" style of the late 1900's, typically a friendly face to instill trust and kindness in viewers. How a unified persona with aligned intentions emerges from the interactions of the individual Clippy™ cubes is, as of writing, still subject to debate.
Clippy™ is inspired by [self-assembling cube robots](https://www.youtube.com/watch?v=hI5UDKaWJOo), by the [paperclip maximizer thought experiment](https://en.wikipedia.org/w/index.php?title=Instrumental_convergence&oldid=1210129297#Paperclip_maximizer) (which is also the source of the name), by [Star Gate's Replicators](https://stargate.fandom.com/wiki/Replicator), and finally, by [Fallout New Vegas' "Yes Man" robot](https://fallout.fandom.com/wiki/Yes_Man).
### MeteorAceGT™ Sports Racing Capsule
This icosahedral sports spacecraft is designed for maximum stability and maneuverability at high velocities, not only in vacuum but also in thick atmospheres. Strong reaction wheels allow perfect control of spacecraft rotation, and allow you to land the spacecraft safely on any planet or moon. Powerful nuclear-powered electromagnets shield from ionized particle radiation, allowing you to surf the clouds of Jupiter safely, with the spherical shape providing maximum structural integrity.
The excessive forward thrust will get many pilots to pass out, while using close to zero propellant thanks to the advanced ion engine array. No dedicated backward thrusters are available for structural integrity in atmospheres. This is compensated by the sideways thrusters, which are mildly inclined to the forward direction, providing a small amount of backward thrust.
The design of this racing capsule was inspired [Shotaro Kaneda's motorbike from Akira](https://akira.fandom.com/wiki/Shotaro_Kaneda%27s_Bike) and by the [orbital module of the Soyuz spacecraft](https://en.wikipedia.org/w/index.php?title=Soyuz_%28spacecraft%29&oldid=1218141107#Orbital_module).

BIN
assets/sounds/woosh.ogg Normal file

Binary file not shown.

BIN
assets/sounds/zoom.ogg Normal file

Binary file not shown.

BIN
assets/sprites/reticule.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

184
doc/images/badge-bevy.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 27 KiB

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="106" height="20" role="img" aria-label="license: GPL v3.0"><title>license: GPL v3.0</title><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="106" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="47" height="20" fill="#555"/><rect x="47" width="59" height="20" fill="#007ec6"/><rect width="106" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text aria-hidden="true" x="245" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="370">license</text><text x="245" y="140" transform="scale(.1)" fill="#fff" textLength="370">license</text><text aria-hidden="true" x="755" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="490">GPL v3.0</text><text x="755" y="140" transform="scale(.1)" fill="#fff" textLength="490">GPL v3.0</text></g></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="65" height="20" viewBox="0 0 195.792 60.244"><g transform="translate(-9.45 -154.547)"><rect width="195.792" height="60.244" x="9.449" y="154.547" ry="6.048" fill="#fa5c5c"/><path d="M27.459 163.393c-2.09 1.24-6.205 5.968-6.244 7.208v2.053c0 2.602 2.432 4.889 4.64 4.889 2.651 0 4.86-2.198 4.86-4.806 0 2.608 2.134 4.806 4.786 4.806 2.651 0 4.716-2.198 4.716-4.806 0 2.608 2.269 4.806 4.92 4.806h.048c2.652 0 4.92-2.198 4.92-4.806 0 2.608 2.066 4.806 4.717 4.806 2.652 0 4.785-2.198 4.785-4.806 0 2.608 2.21 4.806 4.861 4.806 2.208 0 4.64-2.287 4.64-4.89v-2.052c-.039-1.24-4.155-5.968-6.244-7.208-6.493-.228-10.994-.268-17.703-.267-6.708 0-15.855.105-17.703.267zm12.725 12.924a5.47 5.47 0 0 1-.933 1.202 5.544 5.544 0 0 1-3.886 1.585 5.56 5.56 0 0 1-3.893-1.586 5.198 5.198 0 0 1-.891-1.178l-.001.001c-.252.443-.604.823-.967 1.179a5.563 5.563 0 0 1-3.894 1.584 1.68 1.68 0 0 1-.525-.103 80.587 80.587 0 0 0-.335 5.888v.009l-.012 2.329c.04 4.657-.461 15.094 2.053 17.659 3.897.908 11.067 1.322 18.26 1.325h.002c7.193-.003 14.364-.417 18.26-1.325 2.515-2.565 2.013-13.002 2.054-17.66l-.012-2.328v-.01a80.457 80.457 0 0 0-.335-5.887 1.677 1.677 0 0 1-.525.103 5.563 5.563 0 0 1-3.894-1.585c-.363-.356-.715-.735-.967-1.178h-.001a5.2 5.2 0 0 1-.891 1.176 5.559 5.559 0 0 1-3.893 1.586 5.545 5.545 0 0 1-3.886-1.585 5.47 5.47 0 0 1-.933-1.202 5.463 5.463 0 0 1-.924 1.202 5.56 5.56 0 0 1-3.894 1.586 4.17 4.17 0 0 1-.158-.004h-.002c-.052 0-.105.004-.158.004a5.56 5.56 0 0 1-3.894-1.586 5.464 5.464 0 0 1-.925-1.201zm-3.999 5.17v.003h.003c1.583.003 2.99 0 4.733 1.902a40.348 40.348 0 0 1 4.24-.213 40.4 40.4 0 0 1 4.24.213c1.744-1.902 3.15-1.9 4.734-1.902h.003v-.002c.748 0 3.74 0 5.826 5.857l2.24 8.035c1.66 5.977-.532 6.123-3.265 6.129-4.054-.151-6.298-3.095-6.298-6.039-2.244.368-4.862.552-7.48.552-2.618 0-5.236-.184-7.48-.552 0 2.944-2.244 5.888-6.298 6.039-2.733-.006-4.924-.152-3.264-6.13l2.24-8.034c2.086-5.857 5.078-5.857 5.826-5.857zm8.976 4.604c-.004.005-4.268 3.92-5.034 5.313l2.792-.112v2.435c0 .114 1.12.067 2.242.015 1.122.052 2.243.099 2.243-.015v-2.435l2.792.112c-.767-1.392-5.034-5.312-5.034-5.312z" color="#000" fill="#fff"/><path d="M85.303 204.809v-19.485h6.574v19.485zm3.327-21.07q-1.664 0-2.575-.831-.871-.832-.871-2.218 0-1.307.871-2.218.911-.91 2.574-.91 1.664 0 2.535.91.911.91.911 2.218 0 1.386-.91 2.218-.872.831-2.535.831zm13.057 21.466q-2.852 0-4.318-1.505-1.425-1.544-1.425-4.277v-9.228H93.33v-4.872h2.614v-4.752h6.574v4.753h4.278v4.87h-4.278v8.278q0 .911.356 1.307.396.357 1.188.357 1.07 0 2.337-.951l1.505 4.317q-1.148.793-2.614 1.267-1.465.437-3.603.437zm16.17 0q-4.515 0-7.129-2.574-2.574-2.574-2.574-7.485 0-3.565 1.465-5.98 1.505-2.496 3.764-3.367 2.376-.911 4.397-.911 2.534 0 4.238 1.03 1.703.99 2.495 2.178.833 1.188 1.188 1.861l-4.554 2.931q-.632-1.307-1.386-2.06-.752-.752-1.82-.752-1.506 0-2.376 1.188-.871 1.188-.871 3.604 0 2.614 1.03 3.842 1.028 1.228 2.93 1.228 1.506 0 2.495-.555 1.03-.556 1.941-1.426l2.1 4.91q-.951.791-2.813 1.585-1.861.751-4.515.751zm9.566-.396v-26.456h6.614v8.04q.831-.594 2.02-1.03 1.188-.475 2.851-.475 3.485 0 5.188 1.98 1.743 1.982 1.743 5.586v12.357h-6.614v-11.566q0-1.662-.633-2.416-.632-.791-1.663-.791-.871 0-1.625.397-.751.396-1.267.833v13.545h-6.614zm23.494.396q-1.584 0-2.495-.91-.91-.911-.91-2.337 0-1.426.91-2.376.911-.95 2.495-.95 1.505 0 2.416.95.912.95.912 2.376t-.91 2.336q-.87.911-2.416.911zm4.864-.396v-19.485h6.574v19.485zm3.325-21.066q-1.663 0-2.574-.832-.871-.831-.871-2.217 0-1.307.87-2.218.912-.911 2.575-.911 1.664 0 2.535.91.91.912.91 2.219 0 1.386-.91 2.217-.871.832-2.535.832zm14.858 21.462q-2.297 0-4.08-.752-1.782-.792-3.049-2.139-1.227-1.386-1.9-3.247-.635-1.901-.635-4.12 0-3.286 1.426-5.742 1.466-2.416 3.644-3.366 2.218-.951 4.594-.951 3.405 0 5.622 1.584 2.257 1.584 3.17 3.96.91 2.377.91 4.516 0 2.217-.674 4.119-.633 1.86-1.902 3.247-1.228 1.347-3.05 2.14-1.782.753-4.08.753zm0-5.07q1.663 0 2.416-1.385.752-1.426.752-3.802 0-2.258-.792-3.604-.791-1.347-2.376-1.347-1.545 0-2.336 1.347-.791 1.346-.791 3.604 0 2.376.753 3.801.794 1.387 2.376 1.387z" fill="#fff"/><text y="172.122" x="94.571" style="line-height:8.9764185px" font-weight="400" font-size="14.362" font-family="sans-serif" letter-spacing="0" word-spacing="0" stroke-width=".359" transform="translate(2.646)"><tspan style="-inkscape-font-specification:'Lato Semi-Bold'" y="172.122" x="94.571" font-weight="600" font-family="Lato" fill="#fff">available on</tspan></text></g></svg>

After

Width:  |  Height:  |  Size: 4.4 KiB

557
doc/images/map.svg Normal file
View file

@ -0,0 +1,557 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="1280"
height="800"
viewBox="0 0 338.66666 211.66667"
version="1.1"
id="svg1"
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
sodipodi:docname="map.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview1"
pagecolor="#000000"
bordercolor="#999999"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
inkscape:zoom="3.6057089"
inkscape:cx="664.77913"
inkscape:cy="419.75103"
inkscape:window-width="2880"
inkscape:window-height="1765"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1"
showgrid="false"
showguides="false" />
<defs
id="defs1">
<marker
style="overflow:visible"
id="marker9"
refX="0"
refY="0"
orient="auto-start-reverse"
inkscape:stockid="Triangle arrow"
markerWidth="1"
markerHeight="1"
viewBox="0 0 1 1"
inkscape:isstock="true"
inkscape:collect="always"
preserveAspectRatio="xMidYMid">
<path
transform="scale(0.5)"
style="fill:context-stroke;fill-rule:evenodd;stroke:context-stroke;stroke-width:1pt"
d="M 5.77,0 -2.88,5 V -5 Z"
id="path9" />
</marker>
<marker
style="overflow:visible"
id="marker7"
refX="0"
refY="0"
orient="auto-start-reverse"
inkscape:stockid="Triangle arrow"
markerWidth="1"
markerHeight="1"
viewBox="0 0 1 1"
inkscape:isstock="true"
inkscape:collect="always"
preserveAspectRatio="xMidYMid">
<path
transform="scale(0.5)"
style="fill:context-stroke;fill-rule:evenodd;stroke:context-stroke;stroke-width:1pt"
d="M 5.77,0 -2.88,5 V -5 Z"
id="path7" />
</marker>
<marker
style="overflow:visible"
id="Triangle"
refX="0"
refY="0"
orient="auto-start-reverse"
inkscape:stockid="Triangle arrow"
markerWidth="1"
markerHeight="1"
viewBox="0 0 1 1"
inkscape:isstock="true"
inkscape:collect="always"
preserveAspectRatio="xMidYMid">
<path
transform="scale(0.5)"
style="fill:context-stroke;fill-rule:evenodd;stroke:context-stroke;stroke-width:1pt"
d="M 5.77,0 -2.88,5 V -5 Z"
id="path135" />
</marker>
<marker
style="overflow:visible"
id="marker9-9"
refX="0"
refY="0"
orient="auto-start-reverse"
inkscape:stockid="Triangle arrow"
markerWidth="1"
markerHeight="1"
viewBox="0 0 1 1"
inkscape:isstock="true"
inkscape:collect="always"
preserveAspectRatio="xMidYMid">
<path
transform="scale(0.5)"
style="fill:context-stroke;fill-rule:evenodd;stroke:context-stroke;stroke-width:1pt"
d="M 5.77,0 -2.88,5 V -5 Z"
id="path9-1" />
</marker>
<marker
style="overflow:visible"
id="marker7-3"
refX="0"
refY="0"
orient="auto-start-reverse"
inkscape:stockid="Triangle arrow"
markerWidth="1"
markerHeight="1"
viewBox="0 0 1 1"
inkscape:isstock="true"
inkscape:collect="always"
preserveAspectRatio="xMidYMid">
<path
transform="scale(0.5)"
style="fill:context-stroke;fill-rule:evenodd;stroke:context-stroke;stroke-width:1pt"
d="M 5.77,0 -2.88,5 V -5 Z"
id="path7-6" />
</marker>
<marker
style="overflow:visible"
id="marker9-9-1"
refX="0"
refY="0"
orient="auto-start-reverse"
inkscape:stockid="Triangle arrow"
markerWidth="1"
markerHeight="1"
viewBox="0 0 1 1"
inkscape:isstock="true"
inkscape:collect="always"
preserveAspectRatio="xMidYMid">
<path
transform="scale(0.5)"
style="fill:context-stroke;fill-rule:evenodd;stroke:context-stroke;stroke-width:1pt"
d="M 5.77,0 -2.88,5 V -5 Z"
id="path9-1-8" />
</marker>
</defs>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.2;stroke-linejoin:round;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect18"
width="338.66666"
height="211.66667"
x="1.0172526e-05"
y="0" />
<ellipse
style="font-variation-settings:'wght' 700;fill:#262626;stroke:#ffffff;stroke-width:1.35399991;stroke-linejoin:round;stroke-opacity:0.210355;fill-opacity:1;stroke-dasharray:none"
id="path2-5-2"
cx="170.38562"
cy="105.96376"
rx="70"
ry="46" />
<ellipse
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.2;stroke-linejoin:round;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path18"
cx="170.38562"
cy="105.96376"
rx="20"
ry="14" />
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#343434;stroke-width:3.9539997;stroke-linejoin:round;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
d="m 164.00019,0.90866491 c 0,0 5.96281,70.65351909 5.94266,106.06344509 -0.0197,34.70509 -5.94266,103.94555 -5.94266,103.94555"
id="path3"
sodipodi:nodetypes="csc" />
<ellipse
style="font-variation-settings:'wght' 700;fill:none;stroke:#ffffff;stroke-width:0.85399983;stroke-linejoin:round;stroke-opacity:0.210355;stroke-dasharray:none"
id="path2"
cx="170.38562"
cy="105.96376"
rx="30"
ry="20" />
<ellipse
style="font-variation-settings:'wght' 700;fill:none;stroke:#ffffff;stroke-width:0.35399988;stroke-linejoin:round;stroke-opacity:0.210355;stroke-dasharray:none"
id="path2-0"
cx="170.38562"
cy="105.96376"
rx="33"
ry="23" />
<ellipse
style="font-variation-settings:'wght' 700;fill:none;stroke:#ffffff;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.210355"
id="path2-5"
cx="170.38562"
cy="105.96376"
rx="50"
ry="33" />
<ellipse
style="font-variation-settings:'wght' 700;fill:none;stroke:#ffffff;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.210355"
id="path2-5-2-7"
cx="170.38562"
cy="105.96376"
rx="90"
ry="60" />
<ellipse
style="font-variation-settings:'wght' 700;fill:none;stroke:#ffffff;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.210355"
id="path2-5-2-7-1"
cx="170.38562"
cy="105.96376"
rx="110"
ry="73" />
<circle
style="font-variation-settings:'wght' 700;fill:#c7c7c7;fill-opacity:1;stroke:none;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.489744"
id="path4"
cx="185.39006"
cy="88.787254"
r="1.2" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333px;font-family:'Noto Sans';-inkscape-font-specification:'Noto Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.489744"
x="180.11234"
y="95.389503"
id="text2"><tspan
sodipodi:role="line"
style="stroke-width:1.954"
x="180.11234"
y="95.389503"
id="tspan4">Metis</tspan></text>
<circle
style="font-variation-settings:'wght' 700;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.489744"
id="path4-6"
cx="173.64723"
cy="82.991051"
r="0.60000002" />
<circle
style="font-variation-settings:'wght' 700;fill:#c7c7c7;fill-opacity:1;stroke:none;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.489744"
id="path4-8"
cx="120.31386"
cy="103.33703"
r="3" />
<circle
style="font-variation-settings:'wght' 700;fill:#c7c7c7;fill-opacity:1;stroke:none;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.489744"
id="path4-8-4"
cx="124.57132"
cy="141.22829"
r="1.8" />
<circle
style="font-variation-settings:'wght' 700;fill:#ffd92f;fill-opacity:1;stroke:none;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.489744"
id="path4-8-4-9"
cx="80.468811"
cy="105.97464"
r="4" />
<circle
style="font-variation-settings:'wght' 700;fill:#e09d7d;fill-opacity:1;stroke:none;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.489744"
id="path4-8-4-9-6"
cx="60.582966"
cy="105.94954"
r="4" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333px;font-family:'Noto Sans';-inkscape-font-specification:'Noto Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.489744"
x="111.83055"
y="112.228"
id="text5"><tspan
sodipodi:role="line"
id="tspan5"
style="stroke-width:1.954"
x="111.83055"
y="112.228">Amalthea</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333px;font-family:'Noto Sans';-inkscape-font-specification:'Noto Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.489744"
x="118.61069"
y="150.70364"
id="text6"><tspan
sodipodi:role="line"
id="tspan6"
style="stroke-width:1.954"
x="118.61069"
y="150.70364">Thebe</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333px;font-family:'Noto Sans';-inkscape-font-specification:'Noto Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.489744"
x="78.50032"
y="115.62225"
id="text7"><tspan
sodipodi:role="line"
id="tspan7"
style="stroke-width:1.954"
x="78.50032"
y="115.62225">Io</tspan></text>
<rect
style="fill:#848484;fill-opacity:0.27268547;stroke:#ffffff;stroke-width:0.2;stroke-linejoin:round;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect17"
width="38.947754"
height="29.162609"
x="8.333292"
y="175.29178" />
<ellipse
style="font-variation-settings:'wght' 700;fill:none;stroke:#ffffff;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.210355"
id="path2-5-2-7-0-3"
cx="170.38562"
cy="105.96376"
rx="150"
ry="100" />
<circle
style="font-variation-settings:'wght' 700;fill:#a07fb4;fill-opacity:1;stroke:none;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.489744"
id="path4-8-4-9-6-8-4"
cx="20.448246"
cy="105.96376"
r="4" />
<ellipse
style="font-variation-settings:'wght' 700;fill:none;stroke:#ffffff;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.210355"
id="path2-5-2-7-0"
cx="170.38562"
cy="105.96376"
rx="130"
ry="86" />
<circle
style="font-variation-settings:'wght' 700;fill:#c19346;fill-opacity:1;stroke:none;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.489744"
id="path4-8-4-9-6-8"
cx="40.520115"
cy="105.96376"
r="4" />
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#343434;stroke-width:0.369;stroke-linejoin:round;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker-end:url(#marker9-9-1)"
d="m 39.168861,106.78774 c 0,0 1.07445,1.71677 2.4225,0.52066 0.8996,-0.7982 0.13283,-3.08969 -1.60449,-1.98788"
id="path8-7-9"
sodipodi:nodetypes="csc" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333px;font-family:'Noto Sans';-inkscape-font-specification:'Noto Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.489744"
x="53.462524"
y="115.30742"
id="text8"><tspan
sodipodi:role="line"
id="tspan8"
style="stroke-width:1.954"
x="53.462524"
y="115.30742">Europa</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333px;font-family:'Noto Sans';-inkscape-font-specification:'Noto Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.489744"
x="29.714542"
y="115.5135"
id="text9"><tspan
sodipodi:role="line"
id="tspan9"
style="stroke-width:1.954"
x="29.714542"
y="115.5135">Ganymede</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333px;font-family:'Noto Sans';-inkscape-font-specification:'Noto Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.489744"
x="13.211377"
y="115.65031"
id="text10"><tspan
sodipodi:role="line"
id="tspan10"
style="stroke-width:1.954"
x="13.211377"
y="115.65031">Callisto</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333px;font-family:'Noto Sans';-inkscape-font-specification:'Noto Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.210355"
x="165.24077"
y="87.131989"
id="text11"><tspan
sodipodi:role="line"
id="tspan11"
style="stroke:none;stroke-width:1.954"
x="165.24077"
y="87.131989">Adrastea</tspan></text>
<path
style="fill:#eba5bc;fill-opacity:0.52941179;stroke:none;stroke-width:1.954;stroke-linejoin:round;stroke-opacity:0.210355"
d="m 113.29771,8.5661686 c -8.72068,-5.400247 -19.811493,-3.440345 -21.556733,5.6164854 -2.2782,11.822597 1.73763,19.070615 11.308063,18.12733 17.05195,-1.680681 25.40124,-14.360643 10.24867,-23.7438154 z"
id="path11"
sodipodi:nodetypes="cssc" />
<path
style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:0.65399993;stroke-linejoin:round;stroke-dasharray:5.23199944,2.61599972;stroke-dashoffset:0;stroke-opacity:0.453632"
d="m 104.347,32.302971 v 38.446017 l 66.08117,34.918862"
id="path12"
sodipodi:nodetypes="ccc" />
<circle
style="font-variation-settings:'wght' 700;fill:#e7bd80;stroke-width:1.954;stroke-linejoin:round;fill-opacity:1"
id="path1"
cx="170.38562"
cy="105.96376"
r="10" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333px;font-family:'Noto Sans';-inkscape-font-specification:'Noto Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1.954;stroke-linejoin:round;stroke-dasharray:1.954, 1.954;stroke-dashoffset:0;stroke-opacity:0.453632"
x="108.50044"
y="35.544922"
id="text12"><tspan
sodipodi:role="line"
id="tspan12"
style="stroke-width:1.954;fill:#ffffff;fill-opacity:1;stroke:none"
x="108.50044"
y="35.544922">Farview</tspan></text>
<path
style="fill:#eba5bc;fill-opacity:0.529412;stroke:none;stroke-width:1.954;stroke-linejoin:round;stroke-dasharray:1.954, 1.954;stroke-dashoffset:0;stroke-opacity:0.453632"
d="m 144.09138,146.32514 c -2.86406,-0.4037 -7.6153,2.01203 -3.52704,3.85934 4.08825,1.84731 20.91263,5.42792 31.51819,4.77225 14.43686,-0.89253 15.75615,-7.68736 2.28628,-5.26074 -6.34959,1.14389 -24.16753,-2.50965 -30.27743,-3.37085 z"
id="path13"
sodipodi:nodetypes="sssss" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333px;font-family:'Noto Sans';-inkscape-font-specification:'Noto Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1.954;stroke-linejoin:round;stroke-dasharray:1.954, 1.954;stroke-dashoffset:0;stroke-opacity:0.453632"
x="153.16678"
y="158.15582"
id="text13"><tspan
sodipodi:role="line"
id="tspan13"
style="fill:#ffffff;fill-opacity:1;stroke-width:1.954"
x="153.16678"
y="158.15582">Serenity</tspan></text>
<path
style="fill:#eba5bc;fill-opacity:0.530714;stroke:none;stroke-width:1.85032;stroke-linejoin:round;stroke-dasharray:1.85032, 1.85032;stroke-dashoffset:0;stroke-opacity:0.453632"
d="m 196.8972,91.135962 c -3.59529,0.120936 -5.1489,2.204327 -4.09438,4.207402 0.95566,1.815289 4.72696,6.804756 6.50855,7.886946 3.13704,1.90553 5.25458,-0.12614 5.36892,-3.947865 0.0858,-2.867673 -3.58327,-8.287754 -7.78309,-8.146483 z"
id="path14"
sodipodi:nodetypes="sssss" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333px;font-family:'Noto Sans';-inkscape-font-specification:'Noto Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1.954;stroke-linejoin:round;stroke-dasharray:1.954, 1.954;stroke-dashoffset:0;stroke-opacity:0.453632"
x="188.58476"
y="108.46191"
id="text14"><tspan
sodipodi:role="line"
style="fill:#ffffff;fill-opacity:1;stroke-width:1.954"
x="188.58476"
y="108.46191"
id="tspan15">Metis Prime</tspan></text>
<path
style="fill:#ca2d2d;fill-opacity:1;stroke:none;stroke-width:1.954;stroke-linejoin:round;stroke-dasharray:1.954, 1.954;stroke-dashoffset:0;stroke-opacity:0.453632"
d="m 175.16271,152.80825 c -0.49944,-2.82675 -3,-7.27574 -3,-8.99188 0,-1.40076 1.59959,-2.97397 3,-2.94263 1.46621,0.0328 3,1.75174 3,3.21831 0,1.39951 -2.53297,5.92739 -3,8.7162 z"
id="path16"
sodipodi:nodetypes="csssc" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333px;font-family:'Noto Sans';-inkscape-font-specification:'Noto Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1.954;stroke-linejoin:round;stroke-dasharray:1.954, 1.954;stroke-dashoffset:0;stroke-opacity:0.453632"
x="179.01958"
y="144.75677"
id="text16"><tspan
sodipodi:role="line"
id="tspan16"
style="fill:#ffffff;fill-opacity:1;stroke-width:1.954"
x="179.01958"
y="144.75677">Starting Point</tspan></text>
<path
sodipodi:type="star"
style="fill:#6dff11;fill-opacity:1;stroke:none;stroke-width:1.954;stroke-linejoin:round;stroke-dasharray:1.954, 1.954;stroke-dashoffset:0;stroke-opacity:0.453632"
id="path17"
inkscape:flatsided="false"
sodipodi:sides="4"
sodipodi:cx="108.98371"
sodipodi:cy="109.57642"
sodipodi:r1="7.8033481"
sodipodi:r2="2.3410044"
sodipodi:arg1="0.68749585"
sodipodi:arg2="1.472894"
inkscape:rounded="0.21"
inkscape:randomized="0"
d="m 115.01443,114.52846 c -0.8485,1.03333 -4.47124,-2.75293 -5.80189,-2.62224 -1.33066,0.13069 -4.14753,4.54943 -5.18086,3.70092 -1.03333,-0.8485 2.75293,-4.47123 2.62224,-5.80189 -0.1307,-1.33066 -4.54943,-4.14753 -3.70093,-5.18086 0.8485,-1.03333 4.47124,2.75293 5.8019,2.62224 1.33066,-0.13069 4.14753,-4.54943 5.18086,-3.70093 1.03333,0.84851 -2.75294,4.47124 -2.62224,5.8019 0.13069,1.33066 4.54943,4.14753 3.70092,5.18086 z"
transform="matrix(0.36642859,0,0,0.36642859,116.02088,108.37798)" />
<path
sodipodi:type="star"
style="fill:#6dff11;fill-opacity:1;stroke:none;stroke-width:1.954;stroke-linejoin:round;stroke-dasharray:1.954, 1.954;stroke-dashoffset:0;stroke-opacity:0.453632"
id="path17-7"
inkscape:flatsided="false"
sodipodi:sides="4"
sodipodi:cx="108.98371"
sodipodi:cy="109.57642"
sodipodi:r1="7.8033481"
sodipodi:r2="2.3410044"
sodipodi:arg1="0.68749585"
sodipodi:arg2="1.472894"
inkscape:rounded="0.21"
inkscape:randomized="0"
d="m 115.01443,114.52846 c -0.8485,1.03333 -4.47124,-2.75293 -5.80189,-2.62224 -1.33066,0.13069 -4.14753,4.54943 -5.18086,3.70092 -1.03333,-0.8485 2.75293,-4.47123 2.62224,-5.80189 -0.1307,-1.33066 -4.54943,-4.14753 -3.70093,-5.18086 0.8485,-1.03333 4.47124,2.75293 5.8019,2.62224 1.33066,-0.13069 4.14753,-4.54943 5.18086,-3.70093 1.03333,0.84851 -2.75294,4.47124 -2.62224,5.8019 0.13069,1.33066 4.54943,4.14753 3.70092,5.18086 z"
transform="matrix(0.36642859,0,0,0.36642859,160.63288,57.8303)" />
<path
sodipodi:type="star"
style="fill:#6dff11;fill-opacity:1;stroke:none;stroke-width:1.954;stroke-linejoin:round;stroke-dasharray:1.954, 1.954;stroke-dashoffset:0;stroke-opacity:0.453632"
id="path17-8"
inkscape:flatsided="false"
sodipodi:sides="4"
sodipodi:cx="108.98371"
sodipodi:cy="109.57642"
sodipodi:r1="7.8033481"
sodipodi:r2="2.3410044"
sodipodi:arg1="0.68749585"
sodipodi:arg2="1.472894"
inkscape:rounded="0.21"
inkscape:randomized="0"
d="m 115.01443,114.52846 c -0.8485,1.03333 -4.47124,-2.75293 -5.80189,-2.62224 -1.33066,0.13069 -4.14753,4.54943 -5.18086,3.70092 -1.03333,-0.8485 2.75293,-4.47123 2.62224,-5.80189 -0.1307,-1.33066 -4.54943,-4.14753 -3.70093,-5.18086 0.8485,-1.03333 4.47124,2.75293 5.8019,2.62224 1.33066,-0.13069 4.14753,-4.54943 5.18086,-3.70093 1.03333,0.84851 -2.75294,4.47124 -2.62224,5.8019 0.13069,1.33066 4.54943,4.14753 3.70092,5.18086 z"
transform="matrix(0.36642859,0,0,0.36642859,68.481915,-18.915716)" />
<path
sodipodi:type="star"
style="fill:#6dff11;fill-opacity:1;stroke:none;stroke-width:1.954;stroke-linejoin:round;stroke-dasharray:1.954, 1.954;stroke-dashoffset:0;stroke-opacity:0.453632"
id="path17-2"
inkscape:flatsided="false"
sodipodi:sides="4"
sodipodi:cx="108.98371"
sodipodi:cy="109.57642"
sodipodi:r1="7.8033481"
sodipodi:r2="2.3410044"
sodipodi:arg1="0.68749585"
sodipodi:arg2="1.472894"
inkscape:rounded="0.21"
inkscape:randomized="0"
d="m 115.01443,114.52846 c -0.8485,1.03333 -4.47124,-2.75293 -5.80189,-2.62224 -1.33066,0.13069 -4.14753,4.54943 -5.18086,3.70092 -1.03333,-0.8485 2.75293,-4.47123 2.62224,-5.80189 -0.1307,-1.33066 -4.54943,-4.14753 -3.70093,-5.18086 0.8485,-1.03333 4.47124,2.75293 5.8019,2.62224 1.33066,-0.13069 4.14753,-4.54943 5.18086,-3.70093 1.03333,0.84851 -2.75294,4.47124 -2.62224,5.8019 0.13069,1.33066 4.54943,4.14753 3.70092,5.18086 z"
transform="matrix(0.36642859,0,0,0.36642859,-27.648919,139.45512)" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:4.23333px;font-family:'Noto Sans';-inkscape-font-specification:'Noto Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.554;stroke-linejoin:round;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
x="16.216955"
y="181.02782"
id="text17"><tspan
sodipodi:role="line"
id="tspan17"
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.554"
x="16.216955"
y="181.02782">Bus Station</tspan></text>
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#343434;stroke-width:1;stroke-linejoin:round;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker-end:url(#Triangle)"
d="M 172.66886,57.624906 169.86018,12.313539"
id="path5"
sodipodi:nodetypes="cc" />
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#606060;stroke-width:1;stroke-linejoin:round;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker-end:url(#marker7)"
d="m 283.50314,57.807194 c 0,0 -7.10585,-8.818958 -20.38081,-17.164207 -13.27496,-8.345249 -22.28637,-11.086772 -22.28637,-11.086772"
id="path6"
sodipodi:nodetypes="czc" />
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#767676;stroke-width:1;stroke-linejoin:round;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker-end:url(#marker7-3)"
d="m 117.21292,114.28758 c 0,0 1.68978,4.38435 5.05186,8.4749 3.36209,4.09054 8.18139,6.91513 8.18139,6.91513"
id="path6-6"
sodipodi:nodetypes="czc" />
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#343434;stroke-width:1;stroke-linejoin:round;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker-end:url(#marker9)"
d="m 166.47391,108.52103 c 0,0 3.61945,4.52877 7.50829,1.31014 3.43856,-2.84599 0.92792,-8.97056 -3.62018,-7.99299"
id="path8"
sodipodi:nodetypes="csc" />
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#343434;stroke-width:0.369;stroke-linejoin:round;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker-end:url(#marker9-9)"
d="m 118.98458,103.93688 c 0,0 1.07445,1.71677 2.4225,0.52066 0.8996,-0.7982 0.13283,-3.08969 -1.60449,-1.98788"
id="path8-7"
sodipodi:nodetypes="csc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 27 KiB

View file

@ -1,32 +0,0 @@
```
▄████████▄ + ███ + ▄█████████ ███ +
███▀ ▀███ + + ███ ███▀ + ███ + +
███ + ███ ███ ███ █████████ ███ ███ ███ ███
███ +███ ███ ███ ███ ███▐██████ ███ ███ ███
███ + ███ ███+ ███ +███ ███ + ███ ███ + ███
███▄ ▄███ ███▄ ███ ███ + ███ + ███ ███▄ ███
▀████████▀ + ▀███████ ███▄ ███▄ ▀████ ▀███████
+ + + ███
+ ▀████████████████████████████████████████████████████▀
```
# Developer Commentary
## Clippy Convenience Companion
Clippy™ Convenience Companion is a self-assembling, self-replicating, highly modular being that emerges from the collection of individual Clippy™ cubes.
These cubes are interchangeable, solar panel plated, driven by strong reaction wheels, and connect to each other through powerful magnets along the surface. A sensor array picks up various EM frequencies and a camera image through the plating. There are no moving parts on the outside. Individual cubes are able to transfer electricity to connected cubes, as well as transmit information wirelessly.
The shape of a Clippy™ can change quickly to solve a variety of space problems. Off-the-shelf plug-and-play Clippy™ modules further enhance their agency with additional tools, such as propulsion modules, sensors, or manipulators.
A Clippy™ Convenience Companion will broadcast an Augmented Reality overlay that resembles a face, in the somewhat antiquated "kaomoji" style of the late 1900's, typically a friendly face to instill trust and kindness in viewers. How a unified persona with aligned intentions emerges from the interactions of the individual Clippy™ cubes is, as of writing, still subject to debate.
Clippy™ is inspired by [self-assembling cube robots](https://www.youtube.com/watch?v=hI5UDKaWJOo), by the [paperclip maximizer thought experiment](https://en.wikipedia.org/w/index.php?title=Instrumental_convergence&oldid=1210129297#Paperclip_maximizer) (which is also the source of the name), by [Star Gate's Replicators](https://stargate.fandom.com/wiki/Replicator), and finally, by [Fallout New Vegas' "Yes Man" robot](https://fallout.fandom.com/wiki/Yes_Man).
## MeteorAceGT™ Sports Racing Capsule
This icosahedral sports spacecraft is designed for maximum stability and maneuverability at high velocities, not only in vacuum but also in thick atmospheres. Strong reaction wheels allow perfect control of spacecraft rotation, and allow you to land the spacecraft safely on any planet or moon. Powerful nuclear-powered electromagnets shield from ionized particle radiation, allowing you to surf the clouds of Jupiter safely, with the spherical shape providing maximum structural integrity.
The excessive forward thrust will get many pilots to pass out, while using close to zero propellant thanks to the advanced ion engine array. No dedicated backward thrusters are available for structural integrity in atmospheres. This is compensated by the sideways thrusters, which are mildly inclined to the forward direction, providing a small amount of backward thrust.
The design of this racing capsule was inspired [Shotaro Kaneda's motorbike from Akira](https://akira.fandom.com/wiki/Shotaro_Kaneda%27s_Bike) and by the [orbital module of the Soyuz spacecraft](https://en.wikipedia.org/w/index.php?title=Soyuz_%28spacecraft%29&oldid=1218141107#Orbital_module).

View file

@ -100,7 +100,7 @@ impl Default for Actor {
Self {
id: "".to_string(),
name: None,
camdistance: 15.0,
camdistance: 7.5,
}
}
}

View file

@ -12,10 +12,12 @@
use bevy::prelude::*;
use bevy::audio::{PlaybackMode, Volume};
use crate::var;
use crate::{camera, var};
const ASSET_CLICK: &str = "sounds/click-button-140881-crop.ogg";
const ASSET_SWITCH: &str = "sounds/typosonic-typing-192811-crop.ogg";
const ASSET_WOOSH: &str = "sounds/woosh.ogg";
const ASSET_ZOOM: &str = "sounds/zoom.ogg";
const ASSET_INCOMING_MESSAGE: &str = "sounds/connect.ogg";
const ASSET_PING: &str = "sounds/connect.ogg";
const ASSET_CONNECT: &str = "sounds/connect.ogg";
@ -33,17 +35,24 @@ impl Plugin for AudioPlugin {
fn build(&self, app: &mut App) {
app.add_systems(Startup, setup);
app.add_systems(Update, toggle_bgm);
app.add_systems(Update, play_zoom_sfx);
app.add_systems(PostUpdate, play_sfx);
app.add_systems(PostUpdate, update_music);
app.add_event::<PlaySfxEvent>();
app.add_event::<ToggleMusicEvent>();
app.insert_resource(ZoomTimer(
Timer::from_seconds(0.09, TimerMode::Repeating)));
}
}
#[derive(Resource)] pub struct ZoomTimer(Timer);
pub enum Sfx {
IncomingChatMessage,
Click,
Switch,
Woosh,
Zoom,
Ping,
Connect,
EnterVehicle,
@ -62,6 +71,8 @@ pub enum Sfx {
#[derive(Component)] struct SoundBGM(Handle<AudioSource>);
#[derive(Resource)] pub struct SoundClick(Handle<AudioSource>);
#[derive(Resource)] pub struct SoundSwitch(Handle<AudioSource>);
#[derive(Resource)] pub struct SoundWoosh(Handle<AudioSource>);
#[derive(Resource)] pub struct SoundZoom(Handle<AudioSource>);
#[derive(Resource)] pub struct SoundIncomingMessage(Handle<AudioSource>);
#[derive(Resource)] pub struct SoundPing(Handle<AudioSource>);
#[derive(Resource)] pub struct SoundConnect(Handle<AudioSource>);
@ -135,6 +146,8 @@ pub fn setup(
));
commands.insert_resource(SoundClick(asset_server.load(ASSET_CLICK)));
commands.insert_resource(SoundSwitch(asset_server.load(ASSET_SWITCH)));
commands.insert_resource(SoundWoosh(asset_server.load(ASSET_WOOSH)));
commands.insert_resource(SoundZoom(asset_server.load(ASSET_ZOOM)));
commands.insert_resource(SoundIncomingMessage(asset_server.load(ASSET_INCOMING_MESSAGE)));
commands.insert_resource(SoundPing(asset_server.load(ASSET_PING)));
commands.insert_resource(SoundConnect(asset_server.load(ASSET_CONNECT)));
@ -167,6 +180,8 @@ pub fn play_sfx(
mut events_sfx: EventReader<PlaySfxEvent>,
sound_click: Res<SoundClick>,
sound_switch: Res<SoundSwitch>,
sound_woosh: Res<SoundWoosh>,
sound_zoom: Res<SoundZoom>,
sound_incoming_message: Res<SoundIncomingMessage>,
sound_ping: Res<SoundPing>,
sound_connect: Res<SoundConnect>,
@ -186,6 +201,8 @@ pub fn play_sfx(
source: match sfx.0 {
Sfx::Switch => sound_switch.0.clone(),
Sfx::Click => sound_click.0.clone(),
Sfx::Woosh => sound_woosh.0.clone(),
Sfx::Zoom => sound_zoom.0.clone(),
Sfx::IncomingChatMessage => sound_incoming_message.0.clone(),
Sfx::Ping => sound_ping.0.clone(),
Sfx::Connect => sound_connect.0.clone(),
@ -203,6 +220,8 @@ pub fn str2sfx(sfx_label: &str) -> Sfx {
return match sfx_label {
"switch" => Sfx::Switch,
"click" => Sfx::Click,
"woosh" => Sfx::Woosh,
"zoom" => Sfx::Zoom,
"chat" => Sfx::IncomingChatMessage,
"ping" => Sfx::Ping,
"connect" => Sfx::Connect,
@ -229,3 +248,22 @@ pub fn update_music(
}
}
}
pub fn play_zoom_sfx(
time: Res<Time>,
mut timer: ResMut<ZoomTimer>,
mut last_zoom_level: Local<f64>,
mapcam: Res<camera::MapCam>,
mut ew_sfx: EventWriter<PlaySfxEvent>,
settings: Res<var::Settings>,
) {
if !timer.0.tick(time.delta()).just_finished() {
return;
}
if settings.map_active && (*last_zoom_level - mapcam.target_zoom_level).abs() > mapcam.target_zoom_level * 0.2 {
if *last_zoom_level != 0.0 && mapcam.target_zoom_level != camera::INITIAL_ZOOM_LEVEL {
ew_sfx.send(PlaySfxEvent(Sfx::Zoom));
}
*last_zoom_level = mapcam.target_zoom_level;
}
}

14
src/blender/README.md Normal file
View file

@ -0,0 +1,14 @@
# Blender source files
This folder contains the source files for the 3D models (glTF/.glb) in the /assets/models/ directory.
If no corresponding blender project exists, it means that the model is simple enough that the glTF/.glb file itself is the "source file". To view/edit it, create an empty project in blender and import the glTF/.glb file. To save it, export it again as glTF/.glb.
# Guidelines for model creation
1. The origin (coordinate 0/0/0) of the model should be its center of mass.
2. The scale of every model should be normalized to a "radius" of 1. In other words, the entire object should fit inside blender's standard cube (centered at origin, with side length 2). To scale an object up or down in the game, use the "scale" command in the defs.txt. Minor mesh details like antennae may exceed beyond the bounding cube.
# Colliders
A model may contain a collider mesh, which will be used for collision checking if the actor is spawned with the command "collider handcrafted". The collider mesh will be invisible in the game. To use this feature, give the collider mesh (NOT OBJECT, BUT MESH) the name "Collider" (case-sensitive.)

1
src/build/nix/README.md Normal file
View file

@ -0,0 +1 @@
This is a work-in-progress nix package. It successfully worked on one NixOS system, but failed on another due to obscure errors. It also failed using "nix build" on ArchLinux.

47
src/build/nix/default.nix Normal file
View file

@ -0,0 +1,47 @@
{
rustPlatform,
pkg-config,
alsa-lib,
libcap,
libxkbcommon,
wayland,
udev,
vulkan-loader,
xorg,
lib,
}:
rustPlatform.buildRustPackage rec {
src = ../../..;
pname = "outfly";
version = "0.8.1";
cargoLock = {
lockFile = "${src}/Cargo.lock";
};
nativeBuildInputs = [ pkg-config ];
buildNoDefaultFeatures = true;
buildFeatures = [
"release_linux"
];
buildInputs = [
alsa-lib
libcap
wayland
];
postFixup =
let
runtimeDeps = [
vulkan-loader
libxkbcommon
xorg.libX11
xorg.libXrandr
xorg.libXi
xorg.libXcursor
];
libPath = lib.makeLibraryPath runtimeDeps;
in
''
patchelf $out/bin/outfly \
--add-rpath ${libPath}
'';
}

27
src/build/nix/flake.lock Normal file
View file

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1714076141,
"narHash": "sha256-Drmja/f5MRHZCskS6mvzFqxEaZMeciScCTFxWVLqWEY=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "7bb2ccd8cdc44c91edba16c48d2c8f331fb3d856",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

17
src/build/nix/flake.nix Normal file
View file

@ -0,0 +1,17 @@
{
description = "A breathtaking 3D space game in the rings of Jupiter";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, nixpkgs }: {
packages.x86_64-linux.outfly = let
pkgs = import nixpkgs { system = "x86_64-linux"; };
in pkgs.callPackage ./default.nix {};
packages.x86_64-linux.default = self.packages.x86_64-linux.outfly;
};
}

View file

@ -16,8 +16,8 @@
set -e
if [ "$1" == "-b" ]; then
cargo build --release --target=x86_64-unknown-linux-gnu --no-default-features --features "x11 wayland embed_assets"
cargo build --release --target=x86_64-pc-windows-gnu --no-default-features --features "embed_assets"
cargo build --release --target=x86_64-unknown-linux-gnu --no-default-features --features release_linux
cargo build --release --target=x86_64-pc-windows-gnu --no-default-features --features release_windows
fi
VERSION="$(sed -nr 's/^\s*version\s*=\s*"(.*)"\s*$/\1/p' Cargo.toml)"
@ -32,6 +32,8 @@ SRCPATH="outfly_v$VERSION"
mkdir "$SRCPATH"
cp ../README.md "$SRCPATH"
cp ../LICENSE.md "$SRCPATH"
cp ../CHANGELOG.md "$SRCPATH"
cp ../target/x86_64-pc-windows-gnu/release/outfly.exe "$SRCPATH"/OutFly.exe
zip -v -r -9 ../"outfly_v${VERSION}_windows.zip" "$SRCPATH"

View file

@ -25,6 +25,8 @@ use std::f32::consts::PI;
use std::f64::consts::PI as PI64;
use crate::{actor, audio, hud, var};
pub const INITIAL_ZOOM_LEVEL: f64 = 10.0;
pub struct CameraPlugin;
impl Plugin for CameraPlugin {
@ -68,7 +70,7 @@ impl Default for MapCam {
Self {
initialized: false,
zoom_level: 2.0,
target_zoom_level: 10.0,
target_zoom_level: INITIAL_ZOOM_LEVEL,
pitch: PI64 * 0.3,
yaw: 0.0,
offset_x: 0.0,
@ -103,7 +105,7 @@ pub fn setup_camera(
// Add Light from the Sun
commands.spawn(DirectionalLightBundle {
directional_light: DirectionalLight {
illuminance: 3000.0,
illuminance: 2000.0,
shadows_enabled: settings.shadows_sun,
..default()
},
@ -284,6 +286,7 @@ pub fn handle_input(
settings.third_person ^= true;
}
if keyboard_input.just_pressed(settings.key_shadows) {
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click));
settings.shadows_sun ^= true;
for mut light in &mut q_light {
light.shadows_enabled = settings.shadows_sun;
@ -291,11 +294,14 @@ pub fn handle_input(
}
if keyboard_input.just_pressed(settings.key_map) {
settings.map_active ^= true;
if settings.map_active {
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Woosh));
}
*mapcam = MapCam::default();
ew_updateoverlays.send(hud::UpdateOverlayVisibility);
}
if keyboard_input.just_pressed(settings.key_rotation_stabilizer) {
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click));
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Switch));
settings.rotation_stabilizer_active ^= true;
}
}

View file

@ -19,6 +19,7 @@ use crate::{actor, camera, chat, hud, nature, shading, skeleton, var, world};
use regex::Regex;
use std::f32::consts::PI;
use std::f64::consts::PI as PI64;
use std::time::SystemTime;
pub struct CommandsPlugin;
impl Plugin for CommandsPlugin {
@ -66,7 +67,11 @@ struct ParserState {
is_clickable: bool,
is_targeted_on_startup: bool,
is_sun: bool,
is_moon: bool,
is_point_of_interest: bool,
orbit_distance: Option<f64>,
orbit_object_id: Option<String>,
orbit_phase: Option<f64>,
has_physics: bool,
has_ring: bool,
wants_maxrotation: Option<f64>,
@ -116,7 +121,11 @@ impl Default for ParserState {
is_clickable: true,
is_targeted_on_startup: false,
is_sun: false,
is_moon: false,
is_point_of_interest: false,
orbit_distance: None,
orbit_object_id: None,
orbit_phase: None,
has_physics: true,
has_ring: false,
wants_maxrotation: None,
@ -225,14 +234,35 @@ pub fn load_defs(
["relativeto", id] => {
state.relative_to = Some(id.to_string());
}
["orbitaround", object_id, radius_str] => {
if let Ok(r) = radius_str.parse::<f64>() {
state.orbit_distance = Some(r);
state.orbit_object_id = Some(object_id.to_string());
}
else {
error!("Can't parse float: {line}");
continue;
}
}
["orbit", radius_str, phase_str] => {
if let (Ok(r), Ok(phase)) = (radius_str.parse::<f64>(), phase_str.parse::<f64>()) {
let phase_deg = phase * PI64 * 2.0;
state.pos = DVec3::new(
state.pos.x + r * phase_deg.cos(),
state.pos.y,
state.pos.z + r * phase_deg.sin(),
);
state.orbit_distance = Some(r);
state.orbit_phase = Some(phase * PI64 * 2.0);
}
else {
error!("Can't parse float: {line}");
continue;
}
}
["orbit_phase_offset", value] => {
if let Ok(value_float) = value.parse::<f64>() {
let offset_radians = 2.0 * PI64 * value_float;
if let Some(phase_radians) = state.orbit_phase {
state.orbit_phase = Some(phase_radians + offset_radians);
}
else {
state.orbit_phase = Some(offset_radians);
}
}
else {
error!("Can't parse float: {line}");
@ -257,11 +287,10 @@ pub fn load_defs(
state.is_clickable = false;
}
["moon", "yes"] => {
state.model_scale *= 3.0;
state.is_moon = true;
}
["sun", "yes"] => {
state.is_sun = true;
state.model_scale *= 5.0;
}
["ring", "yes"] => {
state.has_ring = true;
@ -490,7 +519,8 @@ fn spawn_entities(
for state_wrapper in er_spawn.read() {
let state = &state_wrapper.0;
if state.class == DefClass::Actor {
let relative_pos = if let Some(id) = &state.relative_to {
// Preprocessing
let mut absolute_pos = if let Some(id) = &state.relative_to {
match id2pos.0.get(&id.to_string()) {
Some(pos) => {
state.pos + *pos
@ -503,7 +533,38 @@ fn spawn_entities(
} else {
state.pos
};
if let Some(r) = state.orbit_distance {
let mut phase_radians = 0.0f64;
if let Some(phase) = state.orbit_phase {
phase_radians += phase;
}
if let Some(id) = &state.orbit_object_id {
let mass = match id.as_str() {
"jupiter" => nature::JUPITER_MASS,
_ => {
error!("Found no mass for object `{id}`");
continue;
}
};
let orbital_period = nature::simple_orbital_period(mass, r);
phase_radians += if let Ok(epoch) = SystemTime::now().duration_since(SystemTime::UNIX_EPOCH) {
PI64 * 2.0 * (epoch.as_secs_f64() % orbital_period) / orbital_period
} else {
error!("Can't determine current time `{id}`");
0.0
};
}
absolute_pos += nature::phase_dist_to_coords(-phase_radians, r);
}
let scale = Vec3::splat(if state.is_sun {
5.0
} else if state.is_moon && settings.large_moons {
3.0
} else {
1.0
} * state.model_scale);
// Spawn the actor
let actor_entity;
{
let mut actor = commands.spawn_empty();
@ -516,7 +577,7 @@ fn spawn_entities(
actor.insert(SleepingDisabled);
actor.insert(world::DespawnOnPlayerDeath);
actor.insert(actor::HitPoints::default());
actor.insert(Position::from(relative_pos));
actor.insert(Position::from(absolute_pos));
actor.insert(Rotation::from(state.rotation));
if state.is_sphere {
let sphere_texture_handle = if let Some(model) = &state.model {
@ -534,18 +595,12 @@ fn spawn_entities(
actor.insert(PbrBundle {
mesh: sphere_handle,
material: sphere_material_handle,
transform: Transform {
scale: Vec3::splat(state.model_scale),
..default()
},
transform: Transform::from_scale(scale),
..default()
});
} else if let Some(model) = &state.model {
actor.insert(SpatialBundle {
transform: Transform {
scale: Vec3::splat(state.model_scale),
..default()
},
transform: Transform::from_scale(scale),
..default()
});
skeleton::load(model.as_str(), &mut actor, &*asset_server);
@ -649,7 +704,7 @@ fn spawn_entities(
}
if !state.id.is_empty() {
actor.insert(actor::Identifier(state.id.clone()));
id2pos.0.insert(state.id.clone(), relative_pos);
id2pos.0.insert(state.id.clone(), absolute_pos);
}
if !state.chat.is_empty() {
actor.insert(chat::Talker {
@ -726,10 +781,10 @@ fn spawn_entities(
ring_radius: nature::JUPITER_RING_RADIUS as f32,
jupiter_radius: nature::JUPITER_RADIUS as f32,
}),
transform: Transform::from_translation(relative_pos.as_vec3()),
transform: Transform::from_translation(absolute_pos.as_vec3()),
..default()
},
Position::new(relative_pos),
Position::new(absolute_pos),
Rotation::from(Quat::IDENTITY),
//Rotation::from(Quat::from_rotation_x(-0.3f32.to_radians())),
NotShadowCaster,

View file

@ -122,17 +122,16 @@ actor 0 0 0 jupiter
actor 0 593051 0 suitv2
relativeto jupiter
orbit 224000e3 0.66
orbit 221900e3 0.338
player yes
id player
scale 2
density 200
collider handcrafted
oxygen 0.008
health 0.3
angularmomentum 0 0 0
thrust 1.2 1 1 400 1.5
rotationy 0.65
thrust 1.2 1 1 20 1.5
rotationy 0.75
engine monopropellant
actor 10 -30 20 MeteorAceGT
@ -152,7 +151,7 @@ actor 0 0 0 io
name Io
id io
relativeto jupiter
orbit 421700e3 0.65
orbitaround jupiter 421700e3
scale 1822e3
rotationy -0.40
rotationx -0.50
@ -165,7 +164,7 @@ actor 0 0 0 europa
name Europa
id europa
relativeto jupiter
orbit 670900e3 0.35
orbitaround jupiter 670900e3
scale 1561e3
rotationy 0.20
rotationx -0.50
@ -178,7 +177,7 @@ actor 0 0 0 ganymede
name Ganymede
id ganymede
relativeto jupiter
orbit 1070400e3 0.93
orbitaround jupiter 1070400e3
scale 2634e3
rotationy -0.40
rotationx -0.50
@ -191,7 +190,7 @@ actor 0 0 0 callisto
name Callisto
id callisto
relativeto jupiter
orbit 1882700e3 0.45
orbitaround jupiter 1882700e3
scale 2410e3
rotationy -0.40
rotationx -0.50
@ -200,11 +199,11 @@ actor 0 0 0 callisto
moon yes
physics off
actor 0 0 0 moonlet
actor 0 127093 0 moonlet
name Thebe
relativeto jupiter
id thebe
orbit 221900e3 0.66
orbit 221900e3 0.34
scale 50e3
angularmomentum 0 0.025 0
actor -55e3 44e3 0 suitv2
@ -212,10 +211,9 @@ actor 0 0 0 moonlet
id yuni
name "Yuni"
chatid Yuni
scale 2
density 200
collider handcrafted
thrust 1.2 1 1 400 1.5
thrust 1.2 1 1 20 1.5
rotationx 1
engine monopropellant
wants maxrotation 0
@ -226,7 +224,7 @@ actor 0 0 0 moonlet
name Metis
relativeto jupiter
id metis
orbit 128000e3 0.8
orbitaround jupiter 128000e3
scale 21.5e3
angularmomentum 0 0.025 0
@ -234,7 +232,7 @@ actor 0 0 0 moonlet
name Adrastea
relativeto jupiter
id adrastea
orbit 129000e3 0.5
orbitaround jupiter 129000e3
scale 8.2e3
angularmomentum 0 0.025 0
@ -242,11 +240,11 @@ actor 0 0 0 moonlet
name Amalthea
relativeto jupiter
id amalthea
orbit 181365.84e3 0.2
orbitaround jupiter 181365.84e3
scale 83.5e3
angularmomentum 0 0.025 0
actor 3000 0 -300 moonlet
actor 5000 0 -3000 moonlet
name Moonlet
collider mesh
relativeto player
@ -373,28 +371,26 @@ actor -3300 10 0 pizzeria
chatid PizzaChef
armodel suit_ar_chefhat
alive yes
scale 2
collider handcrafted
thrust 1.2 1 1 10 1.5
thrust 1.2 1 1 20 1.5
wants maxrotation 0
wants maxvelocity 0
rotationy -0.5
angularmomentum 0 0 0
pronoun he
actor 30 -12 -20 suitv2
actor 30 -12 -40 suitv2
relativeto player
name Icarus
id Icarus
chatid Icarus
alive yes
scale 2
collider handcrafted
angularmomentum 0.4 0.2 0.1
rotationy 0.6
rotationx 1
pointofinterest yes
thrust 1.2 1 1 10 1.5
thrust 1.2 1 1 20 1.5
wants maxrotation 0.5
wants maxvelocity 0
pronoun it
@ -426,7 +422,6 @@ actor -300 0 40 suitv2
chatid Drifter
oxygen 0.08
pointofinterest yes
scale 2
collider handcrafted
pronoun she
@ -606,8 +601,7 @@ actor 100 -18000 2000 clippy
name "Rudy"
wants maxrotation 0.2
wants maxvelocity 0
thrust 1.2 1 1 400 1.5
scale 2
thrust 1.2 1 1 20 1.5
collider capsule 1 0.5
chatid NPCinCryoStasis
pronoun he

21
src/data/outfly.toml Normal file
View file

@ -0,0 +1,21 @@
# ▄████████▄ + ███ + ▄█████████ ███ +
# ███▀ ▀███ + + ███ ███▀ + ███ + +
# ███ + ███ ███ ███ █████████ ███ ███ ███ ███
# ███ +███ ███ ███ ███ ███▐██████ ███ ███ ███
# ███ + ███ ███+ ███ +███ ███ + ███ ███ + ███
# ███▄ ▄███ ███▄ ███ ███ + ███ + ███ ███▄ ███
# ▀████████▀ + ▀███████ ███▄ ███▄ ▀████ ▀███████
# + + + ███
# + ▀████████████████████████████████████████████████████▀
#
# User preferences for the game OutFly.
# See https://codeberg.org/hut/outfly
# fullscreen_mode may be "borderless", "legacy", or "sized"
fullscreen_mode = "borderless"
# window_mode may be "windowed", or "fullscreen"
window_mode = "fullscreen"
# render_mode may be "vulkan" or "gl"
render_mode = "vulkan"

View file

@ -25,6 +25,8 @@ pub const LOG_MAX_TIME_S: f64 = 30.0;
pub const LOG_MAX_ROWS: usize = 30;
pub const LOG_MAX: usize = LOG_MAX_ROWS;
pub const MAX_CHOICES: usize = 10;
pub const SPEEDOMETER_WIDTH: f32 = 40.0;
pub const SPEEDOMETER_HEIGHT: f32 = 10.0;
pub const AMBIENT_LIGHT: f32 = 0.0; // Space is DARK
pub const AMBIENT_LIGHT_AR: f32 = 30.0;
//pub const REPLY_NUMBERS: [char; 10] = ['❶', '❷', '❸', '❹', '❺', '❻', '❼', '❽', '❾', '⓿'];
@ -37,6 +39,7 @@ impl Plugin for HudPlugin {
app.add_systems(Startup, setup);
app.add_systems(Update, (
update_hud,
update_speedometer,
handle_input,
handle_target_event,
));
@ -72,8 +75,11 @@ impl Plugin for HudPlugin {
#[derive(Component)] struct NodeHud;
#[derive(Component)] struct NodeConsole;
#[derive(Component)] struct NodeChoiceText;
#[derive(Component)] struct NodeSpeedometerText;
#[derive(Component)] struct NodeCurrentChatLine;
#[derive(Component)] struct Reticule;
#[derive(Component)] struct Speedometer;
#[derive(Component)] struct Speedometer2;
#[derive(Component)] pub struct ToggleableHudElement;
#[derive(Component)] pub struct ToggleableHudMapElement;
#[derive(Component)] struct Selectagon;
@ -219,6 +225,12 @@ fn setup(
color: settings.hud_color_choices,
..default()
};
let style_speedometer = TextStyle {
font: font_handle.clone(),
font_size: settings.font_size_speedometer,
color: settings.hud_color_speedometer,
..default()
};
let style = TextStyle {
font: font_handle,
font_size: settings.font_size_hud,
@ -290,22 +302,106 @@ fn setup(
});
// Add Reticule
let reticule_handle: Handle<Image> = asset_server.load("sprites/reticule4.png");
commands.spawn((
Reticule,
ToggleableHudElement,
NodeBundle {
style: Style {
width: Val::Px(2.0),
height: Val::Px(2.0),
position_type: PositionType::Absolute,
top: Val::Vh(50.0),
left: Val::Vw(50.0),
width: Val::Percent(100.0),
height: Val::Percent(100.0),
align_items: AlignItems::Center,
justify_content: JustifyContent::SpaceAround,
..default()
},
visibility,
background_color: Color::rgb(0.4, 0.4, 0.6).into(),
..default()
},
ToggleableHudElement,
)).with_children(|builder| {
builder.spawn((
ImageBundle {
image: UiImage::new(reticule_handle),
style: Style {
width: Val::VMin(5.0),
height: Val::VMin(5.0),
..Default::default()
},
..Default::default()
},
Reticule,
));
});
// Add Speedometer
let speedometer_handle: Handle<Image> = asset_server.load("sprites/speedometer.png");
commands.spawn((
NodeBundle {
style: Style {
width: Val::VMin(0.0),
height: Val::Percent(100.0),
align_items: AlignItems::End,
overflow: Overflow::clip(),
..default()
},
visibility,
..default()
},
Speedometer,
ToggleableHudElement,
)).with_children(|builder| {
builder.spawn((
ImageBundle {
image: UiImage::new(speedometer_handle),
style: Style {
width: Val::VMin(SPEEDOMETER_WIDTH),
height: Val::VMin(SPEEDOMETER_HEIGHT),
..Default::default()
},
..Default::default()
},
));
});
let speedometer_handle: Handle<Image> = asset_server.load("sprites/speedometer_white.png");
commands.spawn((
NodeBundle {
style: Style {
width: Val::VMin(0.0),
height: Val::Percent(100.0),
align_items: AlignItems::End,
overflow: Overflow::clip(),
..default()
},
visibility,
..default()
},
Speedometer2,
ToggleableHudElement,
)).with_children(|builder| {
builder.spawn((
ImageBundle {
image: UiImage::new(speedometer_handle),
style: Style {
width: Val::VMin(SPEEDOMETER_WIDTH),
height: Val::VMin(SPEEDOMETER_HEIGHT),
..Default::default()
},
..Default::default()
},
));
});
let mut bundle_speedometer_text = TextBundle::from_sections([
TextSection::new("", style_speedometer.clone()), // speed relative to target
TextSection::new("", style_speedometer.clone()), // speed relative to orbit
]).with_style(Style {
position_type: PositionType::Absolute,
left: Val::VMin(2.0),
bottom: Val::VMin(4.0),
..default()
}).with_text_justify(JustifyText::Left);
bundle_speedometer_text.visibility = visibility;
commands.spawn((
NodeSpeedometerText,
ToggleableHudElement,
bundle_speedometer_text,
));
// Chat "subtitles" and choices
@ -369,6 +465,49 @@ fn setup(
ew_updateoverlays.send(UpdateOverlayVisibility);
}
fn update_speedometer(
q_camera: Query<&LinearVelocity, With<actor::PlayerCamera>>,
q_target: Query<&LinearVelocity, With<IsTargeted>>,
mut q_speedometer: Query<&mut Style, (With<Speedometer>, Without<Speedometer2>)>,
mut q_speedometer2: Query<&mut Style, (With<Speedometer2>, Without<Speedometer>)>,
mut q_node_speed: Query<&mut Text, With<NodeSpeedometerText>>,
) {
if let Ok(cam_v) = q_camera.get_single() {
let speed = cam_v.length();
let speedometer_split = 5_000.0;
if let Ok(mut speedometer) = q_speedometer.get_single_mut() {
let custom_c = speedometer_split;
let fraction = nature::lorenz_factor_custom_c((custom_c - speed).clamp(0.0, custom_c), custom_c).clamp(0.0, 1.0) as f32;
let wid = (fraction * SPEEDOMETER_WIDTH).clamp(0.0, 100.0);
speedometer.width = Val::VMin(wid);
}
if let Ok(mut speedometer2) = q_speedometer2.get_single_mut() {
let custom_c = nature::C - speedometer_split;
let fraction = nature::lorenz_factor_custom_c((custom_c - speed + speedometer_split).clamp(0.0, custom_c), custom_c).clamp(0.0, 1.0) as f32;
let wid = (fraction * SPEEDOMETER_WIDTH).clamp(0.0, 100.0);
speedometer2.width = Val::VMin(wid);
}
if let Ok(mut speed_text) = q_node_speed.get_single_mut() {
speed_text.sections[0].value = if let Ok(target_v) = q_target.get_single() {
let delta_v = (target_v.0 - cam_v.0).length();
if delta_v > 0.0001 {
format!("Δv {}\n", nature::readable_speed(delta_v))
} else {
"".to_string()
}
} else {
"".to_string()
};
speed_text.sections[1].value = if speed > 0.0001 {
nature::readable_speed(speed)
} else {
"".to_string()
};
}
}
}
fn update_hud(
diagnostics: Res<DiagnosticsStore>,
time: Res<Time>,
@ -393,7 +532,7 @@ fn update_hud(
let mut freshest_line: f64 = 0.0;
if player.is_ok() && q_camera_result.is_ok() {
let (hp, suit, gforce) = player.unwrap();
let (pos, cam_v) = q_camera_result.unwrap();
let (pos, _) = q_camera_result.unwrap();
for mut text in &mut q_node_hud {
text.sections[0].value = format!("2524-03-12 03:02");
if let Some(fps) = diagnostics.get(&FrameTimeDiagnosticsPlugin::FPS) {
@ -479,9 +618,7 @@ fn update_hud(
// };
let dev_speed = "";
let gforce = gforce.gforce;
let speed = cam_v.length();
let speed_readable = nature::readable_distance(speed);
text.sections[14].value = format!("\n{speed_readable}/s\n{gforce:.1}g{dev_speed}");
text.sections[14].value = format!("\n{gforce:.1}g{dev_speed}");
if target_multiple {
text.sections[15].value = "\n\nERROR: MULTIPLE TARGETS".to_string();
@ -489,7 +626,7 @@ fn update_hud(
else if target_error {
text.sections[15].value = "\n\nERROR: FAILED TO AQUIRE TARGET".to_string();
}
else if let Ok((clickable, _, target_v_maybe)) = q_target.get_single() {
else if let Ok((clickable, _, _)) = q_target.get_single() {
let distance = if dist_scalar.is_nan() {
"UNKNOWN".to_string()
} else if dist_scalar != 0.0 {
@ -497,19 +634,13 @@ fn update_hud(
} else {
"ERROR".to_string()
};
let speed: f64 = if let Some(target_v) = target_v_maybe {
(target_v.0 - cam_v.0).length()
} else {
cam_v.length()
};
let speed_readable = nature::readable_distance(speed);
let target_name = clickable.name.clone().unwrap_or("Unnamed".to_string());
let pronoun = if let Some(pronoun) = &clickable.pronoun {
format!("Pronoun: {pronoun}\n")
} else {
"".to_string()
};
text.sections[15].value = format!("\n\nTarget: {target_name}\n{pronoun}Distance: {distance}\nΔv {speed_readable}/s");
text.sections[15].value = format!("\n\nTarget: {target_name}\n{pronoun}Distance: {distance}");
}
else {
text.sections[15].value = "".to_string();
@ -647,6 +778,7 @@ fn handle_input(
q_camera: Query<&Transform, With<Camera>>,
) {
if keyboard_input.just_pressed(settings.key_help) {
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click));
for line in include_str!("data/keybindings.in").trim().lines().rev() {
log.add(line.to_string(), "".to_string(), LogLevel::Always);
}

View file

@ -32,25 +32,84 @@ use bevy::prelude::*;
use bevy::pbr::ExtendedMaterial;
use std::env;
const HELP: &str = "./outfly [options]
Options:
--version, -v show this program's version number and exit
--help, -h show this help message and exit
--gl use GL rendering instead of Vulkan
--fs-legacy use 'legacy' (non-borderless) fullscreen mode
--fs-sized use 'sized' (non-borderless) fullscreen mode
--windowed start in non-fullscreen mode
Note: borderless fullscreen is the default, but it crashes on some systems.";
fn main() {
let prefs = var::load_prefs();
let mut opt = CommandLineOptions {
window_mode_fullscreen: prefs.get_fullscreen_mode(),
window_mode_initial: prefs.get_window_mode(),
use_gl: prefs.render_mode_is_gl(),
};
let args: Vec<String> = env::args().collect();
if args.len() > 1 {
if args[1] == "--version" || args[1] == "-v" {
let version = option_env!("CARGO_PKG_VERSION").unwrap();
let name = option_env!("CARGO_PKG_NAME").unwrap();
let homepage = option_env!("CARGO_PKG_HOMEPAGE").unwrap();
println!("{name} {version}");
println!("License: GNU GPL version 3: https://gnu.org/licenses/gpl.html");
println!("{homepage}");
return;
for arg in &args[1..] {
if arg == "--help" || arg == "-h" {
println!("{}", HELP);
return;
}
else if arg == "--version" || arg == "-v" {
let version = option_env!("CARGO_PKG_VERSION").unwrap();
let name = option_env!("CARGO_PKG_NAME").unwrap();
let homepage = option_env!("CARGO_PKG_HOMEPAGE").unwrap();
println!("{name} {version}");
println!("License: GNU GPL version 3: https://gnu.org/licenses/gpl.html");
println!("{homepage}");
return;
}
else if arg == "--gl" {
opt.use_gl = true;
}
else if arg == "--windowed" {
opt.window_mode_initial = WindowMode::Windowed;
}
else if arg == "--fs-legacy" {
let mode = WindowMode::Fullscreen;
if opt.window_mode_initial == opt.window_mode_fullscreen {
opt.window_mode_initial = mode;
}
opt.window_mode_fullscreen = mode;
}
else if arg == "--fs-sized" {
let mode = WindowMode::SizedFullscreen;
if opt.window_mode_initial == opt.window_mode_fullscreen {
opt.window_mode_initial = mode;
}
opt.window_mode_fullscreen = mode;
}
else {
println!("{}", HELP);
println!("\nERROR: no such option: `{}`", arg);
return;
}
}
}
if opt.use_gl {
env::set_var("WGPU_BACKEND", "gl");
}
let mut app = App::new();
app.insert_resource(opt);
#[cfg(feature = "embed_assets")]
app.add_plugins(bevy_embedded_assets::EmbeddedAssetPlugin {
mode: bevy_embedded_assets::PluginMode::ReplaceDefault
});
app.add_plugins(OutFlyPlugin).run();
app.add_plugins(OutFlyPlugin);
app.insert_resource(prefs);
app.run();
}
pub struct OutFlyPlugin;
@ -79,13 +138,21 @@ impl Plugin for OutFlyPlugin {
}
}
#[derive(Resource, Default)]
pub struct CommandLineOptions {
window_mode_fullscreen: WindowMode,
window_mode_initial: WindowMode,
use_gl: bool,
}
fn setup(
mut windows: Query<&mut Window, With<PrimaryWindow>>,
opt: Res<CommandLineOptions>,
) {
for mut window in &mut windows {
window.cursor.grab_mode = CursorGrabMode::Locked;
window.cursor.visible = false;
window.mode = WindowMode::BorderlessFullscreen;
window.mode = opt.window_mode_initial;
window.title = "OutFly".to_string();
}
}
@ -93,16 +160,19 @@ fn setup(
fn handle_input(
keyboard_input: Res<ButtonInput<KeyCode>>,
settings: Res<var::Settings>,
opt: Res<CommandLineOptions>,
mut app_exit_events: ResMut<Events<bevy::app::AppExit>>,
mut windows: Query<&mut Window, With<PrimaryWindow>>,
mut ew_sfx: EventWriter<audio::PlaySfxEvent>,
) {
if keyboard_input.pressed(settings.key_exit) {
app_exit_events.send(bevy::app::AppExit);
}
if keyboard_input.just_pressed(settings.key_fullscreen) {
ew_sfx.send(audio::PlaySfxEvent(audio::Sfx::Click));
for mut window in &mut windows {
window.mode = if window.mode == WindowMode::Windowed {
WindowMode::BorderlessFullscreen
opt.window_mode_fullscreen
} else {
WindowMode::Windowed
}

View file

@ -10,6 +10,9 @@
//
// This module manages the messy, impure parts of our universe.
use bevy::math::DVec3;
use std::f64::consts::PI as PI64;
pub const OXYGEN_USE_KG_PER_S: f32 = 1e-5;
pub const OXY_S: f32 = OXYGEN_USE_KG_PER_S;
pub const OXY_M: f32 = OXYGEN_USE_KG_PER_S * 60.0;
@ -19,10 +22,13 @@ pub const LIGHTYEAR2METER: f64 = 9_460_730_472_580_800.0;
pub const PARSEC2METER: f64 = 3.0857e16;
pub const DIST_JUPTER_SUN: f64 = 778479.0e6;
pub const EARTH_GRAVITY: f32 = 9.81;
pub const C: f64 = 299792458.0; // m/s
pub const G: f64 = 6.6743015e-11; // Gravitational constant in Nm²/kg²
pub const SOL_RADIUS: f64 = 696_300_000.0;
pub const JUPITER_RADIUS: f64 = 71_492_000.0;
pub const JUPITER_RING_RADIUS: f64 = 229_000_000.0;
pub const JUPITER_MASS: f64 = 1.8982e27;
// Each star's values: (x, y, z, magnitude, color index, distance, name)
pub const STARS: &[(f32, f32, f32, f32, f32, f32, &str)] = &include!("data/stars.in");
@ -118,3 +124,35 @@ pub fn readable_distance(distance: f64) -> String {
}
return format!("{distance:.1}m");
}
pub fn readable_speed(speed: f64) -> String {
let abs = speed.abs();
if abs > C * 0.0005 {
let lightyears = abs / C;
return format!("{lightyears:.4} c");
}
else {
let kmh = abs * 1.0e-3 * 3600.0;
return format!("{kmh:.0} km/h");
}
}
pub fn lorenz_factor(speed: f64) -> f64 {
(1.0 - (speed.powf(2.0) / C.powf(2.0))).sqrt()
}
pub fn lorenz_factor_custom_c(speed: f64, c: f64) -> f64 {
(1.0 - (speed.powf(2.0) / c.powf(2.0))).sqrt()
}
pub fn simple_orbital_period(mass: f64, distance: f64) -> f64 {
return 2.0 * PI64 * (distance.powf(3.0) / (G * mass)).sqrt();
}
pub fn phase_dist_to_coords(phase_radians: f64, distance: f64) -> DVec3 {
return DVec3::new(
distance * phase_radians.cos(),
0.0,
distance * phase_radians.sin(),
);
}

74
src/svg/reticule.svg Normal file
View file

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="100"
height="100"
viewBox="0 0 26.458333 26.458333"
version="1.1"
id="svg1"
sodipodi:docname="reticule.svg"
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview1"
pagecolor="#000000"
bordercolor="#999999"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
inkscape:zoom="5.6568543"
inkscape:cx="16.086679"
inkscape:cy="25.897786"
inkscape:window-width="2880"
inkscape:window-height="1765"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs1" />
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#c2c2c2;stroke-width:0.529167;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
id="path2"
sodipodi:type="arc"
sodipodi:cx="13.229167"
sodipodi:cy="13.229167"
sodipodi:rx="12.960727"
sodipodi:ry="12.960727"
sodipodi:start="0"
sodipodi:end="0.52359878"
sodipodi:open="true"
sodipodi:arc-type="arc"
d="M 26.189894,13.229167 A 12.960727,12.960727 0 0 1 24.453486,19.70953" />
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#c2c2c2;stroke-width:0.529167;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
id="path2-2"
sodipodi:type="arc"
sodipodi:cx="13.229167"
sodipodi:cy="13.229167"
sodipodi:rx="12.960727"
sodipodi:ry="12.960727"
sodipodi:start="1.0471976"
sodipodi:end="1.5707963"
sodipodi:open="true"
sodipodi:arc-type="arc"
d="m 19.70953,24.453486 a 12.960727,12.960727 0 0 1 -6.480363,1.736408" />
<circle
style="font-variation-settings:'wght' 700;fill:#9c9c9c;stroke:none;stroke-width:0.52916667;stroke-linejoin:round;stroke-opacity:1;fill-opacity:1;stroke-dasharray:none"
id="path3"
cx="13.229167"
cy="13.229167"
r="0.56732851" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

129
src/svg/reticule2.svg Normal file
View file

@ -0,0 +1,129 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="100"
height="100"
viewBox="0 0 26.458333 26.458333"
version="1.1"
id="svg1"
sodipodi:docname="reticule2.svg"
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
inkscape:export-filename="reticule2.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview1"
pagecolor="#000000"
bordercolor="#999999"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
inkscape:zoom="5.6568543"
inkscape:cx="16.086679"
inkscape:cy="25.897786"
inkscape:window-width="2880"
inkscape:window-height="1765"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs1" />
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#c2c2c2;stroke-width:0.529167;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
id="path2"
sodipodi:type="arc"
sodipodi:cx="13.229167"
sodipodi:cy="13.229167"
sodipodi:rx="12.960727"
sodipodi:ry="12.960727"
sodipodi:start="0.26179939"
sodipodi:end="0.78539816"
sodipodi:open="true"
sodipodi:arc-type="arc"
d="m 25.748268,16.58365 a 12.960727,12.960727 0 0 1 -3.354483,5.810135" />
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#c2c2c2;stroke-width:0.529167;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
id="path2-2"
sodipodi:type="arc"
sodipodi:cx="13.229167"
sodipodi:cy="13.229167"
sodipodi:rx="12.960727"
sodipodi:ry="12.960727"
sodipodi:start="1.3089969"
sodipodi:end="1.8325957"
sodipodi:open="true"
sodipodi:arc-type="arc"
d="m 16.58365,25.748268 a 12.960727,12.960727 0 0 1 -6.7089658,0" />
<circle
style="font-variation-settings:'wght' 700;fill:#9c9c9c;stroke:none;stroke-width:0.52916667;stroke-linejoin:round;stroke-opacity:1;fill-opacity:1;stroke-dasharray:none"
id="path3"
cx="13.229167"
cy="13.229167"
r="0.56732851" />
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#c2c2c2;stroke-width:0.529167;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
id="path2-2-9"
sodipodi:type="arc"
sodipodi:cx="13.229167"
sodipodi:cy="13.229167"
sodipodi:rx="12.960727"
sodipodi:ry="12.960727"
sodipodi:start="2.3561945"
sodipodi:end="2.8797933"
sodipodi:open="true"
sodipodi:arc-type="arc"
d="M 4.0645491,22.393785 A 12.960727,12.960727 0 0 1 0.71006619,16.583649" />
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#c2c2c2;stroke-width:0.529167;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
id="path2-2-9-9"
sodipodi:type="arc"
sodipodi:cx="13.229167"
sodipodi:cy="13.229167"
sodipodi:rx="12.960727"
sodipodi:ry="12.960727"
sodipodi:start="5.4977871"
sodipodi:end="6.0213859"
sodipodi:open="true"
sodipodi:arc-type="arc"
d="m 22.393784,4.0645488 a 12.960727,12.960727 0 0 1 3.354484,5.810135" />
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#c2c2c2;stroke-width:0.529167;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
id="path2-2-9-9-1"
sodipodi:type="arc"
sodipodi:cx="13.229167"
sodipodi:cy="13.229167"
sodipodi:rx="12.960727"
sodipodi:ry="12.960727"
sodipodi:start="4.4505896"
sodipodi:end="4.9741884"
sodipodi:open="true"
sodipodi:arc-type="arc"
d="m 9.8746842,0.71006628 a 12.960727,12.960727 0 0 1 6.7089658,1.3e-7" />
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#c2c2c2;stroke-width:0.529167;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
id="path2-2-9-9-1-7"
sodipodi:type="arc"
sodipodi:cx="13.229167"
sodipodi:cy="13.229167"
sodipodi:rx="12.960727"
sodipodi:ry="12.960727"
sodipodi:start="3.403392"
sodipodi:end="3.9269908"
sodipodi:open="true"
sodipodi:arc-type="arc"
d="M 0.71006616,9.8746846 A 12.960727,12.960727 0 0 1 4.0645491,4.0645494" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.8 KiB

90
src/svg/reticule3.svg Normal file
View file

@ -0,0 +1,90 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="100"
height="100"
viewBox="0 0 26.458333 26.458333"
version="1.1"
id="svg1"
sodipodi:docname="reticule3.svg"
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
inkscape:export-filename="reticule2.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview1"
pagecolor="#000000"
bordercolor="#999999"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
inkscape:zoom="5.6568543"
inkscape:cx="16.086679"
inkscape:cy="25.897786"
inkscape:window-width="2880"
inkscape:window-height="1765"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs1" />
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#c2c2c2;stroke-width:0.529167;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
id="path2-2"
sodipodi:type="arc"
sodipodi:cx="13.229167"
sodipodi:cy="13.229167"
sodipodi:rx="12.960727"
sodipodi:ry="12.960727"
sodipodi:start="1.3089969"
sodipodi:end="1.8325957"
sodipodi:open="true"
sodipodi:arc-type="arc"
d="m 16.58365,25.748268 a 12.960727,12.960727 0 0 1 -6.7089658,0" />
<circle
style="font-variation-settings:'wght' 700;fill:#9c9c9c;stroke:none;stroke-width:0.52916667;stroke-linejoin:round;stroke-opacity:1;fill-opacity:1;stroke-dasharray:none"
id="path3"
cx="13.229167"
cy="13.229167"
r="0.56732851" />
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#c2c2c2;stroke-width:0.529167;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
id="path2-2-9-9"
sodipodi:type="arc"
sodipodi:cx="13.229167"
sodipodi:cy="13.229167"
sodipodi:rx="12.960727"
sodipodi:ry="12.960727"
sodipodi:start="5.4977871"
sodipodi:end="6.0213859"
sodipodi:open="true"
sodipodi:arc-type="arc"
d="m 22.393784,4.0645488 a 12.960727,12.960727 0 0 1 3.354484,5.810135" />
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#c2c2c2;stroke-width:0.529167;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
id="path2-2-9-9-1-7"
sodipodi:type="arc"
sodipodi:cx="13.229167"
sodipodi:cy="13.229167"
sodipodi:rx="12.960727"
sodipodi:ry="12.960727"
sodipodi:start="3.403392"
sodipodi:end="3.9269908"
sodipodi:open="true"
sodipodi:arc-type="arc"
d="M 0.71006616,9.8746846 A 12.960727,12.960727 0 0 1 4.0645491,4.0645494" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

92
src/svg/reticule4.svg Normal file
View file

@ -0,0 +1,92 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="200"
height="200"
viewBox="0 0 52.916666 52.916666"
version="1.1"
id="svg1"
sodipodi:docname="reticule4.svg"
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
inkscape:export-filename="reticule4.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview1"
pagecolor="#000000"
bordercolor="#999999"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
inkscape:zoom="4.395"
inkscape:cx="85.324232"
inkscape:cy="125.25597"
inkscape:window-width="2880"
inkscape:window-height="1685"
inkscape:window-x="0"
inkscape:window-y="80"
inkscape:window-maximized="1"
inkscape:current-layer="layer1"
inkscape:export-bgcolor="#00000000" />
<defs
id="defs1" />
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#bf1351;stroke-width:1.32291667;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
id="path2-2"
sodipodi:type="arc"
sodipodi:cx="26.458332"
sodipodi:cy="26.45833"
sodipodi:rx="24.89185"
sodipodi:ry="24.891848"
sodipodi:start="1.0471976"
sodipodi:end="2.0943951"
sodipodi:open="true"
sodipodi:arc-type="arc"
d="m 38.904256,48.015303 a 24.89185,24.891848 0 0 1 -24.891849,0" />
<ellipse
style="font-variation-settings:'wght' 700;fill:#bf1351;fill-opacity:1;stroke:none;stroke-width:1.05833333;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
id="path3"
cx="26.458332"
cy="26.45833"
rx="1.0895884"
ry="1.0895883" />
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#bf1351;stroke-width:1.32291667;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
id="path2-2-9-9"
sodipodi:type="arc"
sodipodi:cx="26.458332"
sodipodi:cy="26.45833"
sodipodi:rx="24.89185"
sodipodi:ry="24.891848"
sodipodi:start="5.4105207"
sodipodi:end="6.1086524"
sodipodi:open="true"
sodipodi:arc-type="arc"
d="M 42.458505,7.3900689 A 24.89185,24.891848 0 0 1 50.972018,22.135906" />
<path
style="font-variation-settings:'wght' 700;fill:none;stroke:#bf1351;stroke-width:1.32291667;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
id="path2-2-9-9-1-7"
sodipodi:type="arc"
sodipodi:cx="26.458332"
sodipodi:cy="26.45833"
sodipodi:rx="24.89185"
sodipodi:ry="24.891848"
sodipodi:start="3.3161256"
sodipodi:end="4.0142573"
sodipodi:open="true"
sodipodi:arc-type="arc"
d="M 1.9446458,22.135906 A 24.89185,24.891848 0 0 1 10.45816,7.3900683" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

246
src/svg/speedometer.svg Normal file
View file

@ -0,0 +1,246 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="800"
height="200"
viewBox="0 0 211.66666 52.916667"
version="1.1"
id="svg1"
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
sodipodi:docname="speedometer.svg"
inkscape:export-filename="speedometer.png"
inkscape:export-xdpi="200"
inkscape:export-ydpi="200"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview1"
pagecolor="#000000"
bordercolor="#999999"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
inkscape:zoom="1.1679082"
inkscape:cx="431.54075"
inkscape:cy="-24.402602"
inkscape:window-width="2880"
inkscape:window-height="1685"
inkscape:window-x="0"
inkscape:window-y="80"
inkscape:window-maximized="1"
inkscape:current-layer="layer1"
inkscape:export-bgcolor="#00000000"
showgrid="true">
<inkscape:grid
id="grid1"
units="px"
originx="0"
originy="0"
spacingx="0.26458333"
spacingy="0.26458333"
empcolor="#0099e5"
empopacity="0.30196078"
color="#0099e5"
opacity="0.14901961"
empspacing="5"
dotted="false"
gridanglex="30"
gridanglez="30"
visible="true" />
</sodipodi:namedview>
<defs
id="defs1" />
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.70781;stroke-linejoin:round;stroke-dasharray:none"
id="rect1"
width="6.614583"
height="43.656246"
x="1.7853101e-07"
y="1.0113022e-06" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.62832;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1"
width="6.614583"
height="39.687496"
x="7.9375"
y="6.614583" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.57312;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9"
width="6.614583"
height="37.041664"
x="15.875"
y="11.906249" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.51589;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5"
width="6.6145825"
height="34.395832"
x="23.8125"
y="15.874999" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.45643;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3"
width="6.6145825"
height="31.749998"
x="31.75"
y="19.843748" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.36236;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1"
width="6.6145825"
height="27.781248"
x="39.6875"
y="23.812498" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.32952;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8"
width="6.6145821"
height="26.458334"
x="47.625"
y="26.458332" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.2613;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4"
width="6.6145821"
height="23.812502"
x="55.5625"
y="29.104164" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.18917;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6"
width="6.6145821"
height="21.166668"
x="63.5"
y="31.749998" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.11237;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5"
width="6.6145816"
height="18.520836"
x="71.4375"
y="34.395832" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.0719;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1"
width="6.6145816"
height="17.19792"
x="79.375"
y="35.718746" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.02985;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7"
width="6.6145816"
height="15.875003"
x="87.3125"
y="37.041664" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.986008;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5"
width="6.6145811"
height="14.552084"
x="95.25"
y="38.364582" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.940118;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3"
width="6.6145811"
height="13.229167"
x="103.1875"
y="39.6875" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.940118;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-1"
width="6.6145806"
height="13.229167"
x="111.125"
y="39.6875" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.940118;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-8"
width="6.6145806"
height="13.229167"
x="119.0625"
y="39.6875" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.940117;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-9"
width="6.6145806"
height="13.229167"
x="127"
y="39.6875" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.940117;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-6"
width="6.6145802"
height="13.229167"
x="134.9375"
y="39.6875" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.940117;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-3"
width="6.6145802"
height="13.229167"
x="142.875"
y="39.6875" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.940119;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-86"
width="6.6145954"
height="13.229167"
x="150.81248"
y="39.6875" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.940119;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-0"
width="6.6145949"
height="13.229167"
x="158.74998"
y="39.6875" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.940119;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-4"
width="6.6145949"
height="13.229167"
x="166.68748"
y="39.6875" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.940118;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-1-8"
width="6.6145949"
height="13.229167"
x="174.62498"
y="39.6875" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.940118;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-8-8"
width="6.6145945"
height="13.229167"
x="182.56248"
y="39.6875" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.940118;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-9-8"
width="6.6145945"
height="13.229167"
x="190.49998"
y="39.6875" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.940117;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-6-9"
width="6.6145792"
height="13.229167"
x="198.4375"
y="39.687496" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.9 KiB

295
src/svg/speedometer2.svg Normal file
View file

@ -0,0 +1,295 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="985"
height="200"
viewBox="0 0 260.61458 52.916667"
version="1.1"
id="svg1"
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
sodipodi:docname="speedometer2.svg"
inkscape:export-filename="speedometer.png"
inkscape:export-xdpi="200"
inkscape:export-ydpi="200"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview1"
pagecolor="#000000"
bordercolor="#999999"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
inkscape:zoom="9.343266"
inkscape:cx="1011.1025"
inkscape:cy="67.695814"
inkscape:window-width="2880"
inkscape:window-height="1685"
inkscape:window-x="0"
inkscape:window-y="80"
inkscape:window-maximized="1"
inkscape:current-layer="layer1"
inkscape:export-bgcolor="#00000000"
showgrid="true">
<inkscape:grid
id="grid1"
units="px"
originx="0"
originy="0"
spacingx="0.26458333"
spacingy="0.26458333"
empcolor="#0099e5"
empopacity="0.30196078"
color="#0099e5"
opacity="0.14901961"
empspacing="5"
dotted="false"
gridanglex="30"
gridanglez="30"
visible="true" />
</sodipodi:namedview>
<defs
id="defs1" />
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.594583;stroke-linejoin:round;stroke-dasharray:none"
id="rect1"
width="6.614583"
height="5.2916651"
x="5.3530993e-08"
y="47.624996" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.594579;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1"
width="6.614583"
height="5.2916675"
x="7.9374995"
y="47.624996" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.664764;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9"
width="6.614583"
height="6.6145825"
x="15.874999"
y="46.302082" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.664761;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5"
width="6.6145825"
height="6.6145835"
x="23.8125"
y="46.302082" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.728215;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3"
width="6.6145825"
height="7.9375"
x="31.75"
y="44.979164" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.728212;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1"
width="6.6145825"
height="7.9375"
x="39.6875"
y="44.979164" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.786555;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8"
width="6.6145821"
height="9.2604189"
x="47.625"
y="43.656246" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.786559;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4"
width="6.6145821"
height="9.2604189"
x="55.5625"
y="43.656246" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.84087;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6"
width="6.6145821"
height="10.583335"
x="63.5"
y="42.333332" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.840873;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5"
width="6.6145816"
height="10.583337"
x="71.4375"
y="42.333332" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.891875;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1"
width="6.6145816"
height="11.906252"
x="79.375"
y="41.010414" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.94012;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7"
width="6.6145797"
height="13.229167"
x="87.3125"
y="39.687496" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.940122;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5"
width="6.6145811"
height="13.229168"
x="95.25"
y="39.687496" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:0.986006;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3"
width="6.6145811"
height="14.552086"
x="103.1875"
y="38.364582" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.02985;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-1"
width="6.6145806"
height="15.875004"
x="111.125"
y="37.041664" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.02985;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-8"
width="6.6145806"
height="15.875003"
x="119.0625"
y="37.041664" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.0719;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-9"
width="6.6145806"
height="17.19792"
x="127"
y="35.718746" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.11236;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-6"
width="6.6145802"
height="18.520832"
x="134.9375"
y="34.395832" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.11236;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-3"
width="6.6145802"
height="18.520832"
x="142.875"
y="34.395832" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.15141;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-86"
width="6.6145954"
height="19.843752"
x="150.81248"
y="33.072914" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.18917;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-0"
width="6.6145949"
height="21.166664"
x="158.74998"
y="31.749998" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.22577;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-4"
width="6.6145949"
height="22.489586"
x="166.68748"
y="30.427082" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.2613;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-1-8"
width="6.6145949"
height="23.812502"
x="174.62498"
y="29.104164" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.29586;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-8-8"
width="6.6145945"
height="25.135418"
x="182.56248"
y="27.781248" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.36236;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-9-8"
width="6.6145945"
height="27.781252"
x="190.49998"
y="25.135416" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.42576;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-6-9"
width="6.6145792"
height="30.427082"
x="198.4375"
y="22.489582" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.48646;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-6-9-4"
width="6.6145792"
height="33.072914"
x="206.375"
y="19.843748" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.54477;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-6-9-4-0"
width="6.6145792"
height="35.718746"
x="214.31248"
y="17.197916" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.60096;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-6-9-4-0-4"
width="6.6145792"
height="38.364578"
x="222.24998"
y="14.552082" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.65525;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-6-9-4-0-4-4"
width="6.6145792"
height="41.010414"
x="230.05521"
y="11.906249" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.73349;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-6-9-4-0-4-4-2"
width="6.6145792"
height="44.97916"
x="238.125"
y="7.937501" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.80835;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-6-9-4-0-4-4-2-5"
width="6.6145792"
height="48.94791"
x="246.0625"
y="3.9687498" />
<rect
style="font-variation-settings:'wght' 700;fill:#bf1351;stroke:none;stroke-width:1.88023;stroke-linejoin:round;stroke-dasharray:none"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-6-9-4-0-4-4-2-5-2"
width="6.6145792"
height="52.91666"
x="253.99998"
y="0" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -0,0 +1,295 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="985"
height="200"
viewBox="0 0 260.61458 52.916667"
version="1.1"
id="svg1"
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
sodipodi:docname="speedometer2white.svg"
inkscape:export-filename="speedometer.png"
inkscape:export-xdpi="200"
inkscape:export-ydpi="200"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview1"
pagecolor="#000000"
bordercolor="#999999"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
inkscape:zoom="1.2086006"
inkscape:cx="618.07017"
inkscape:cy="108.80352"
inkscape:window-width="2880"
inkscape:window-height="1685"
inkscape:window-x="0"
inkscape:window-y="80"
inkscape:window-maximized="1"
inkscape:current-layer="layer1"
inkscape:export-bgcolor="#00000000"
showgrid="true">
<inkscape:grid
id="grid1"
units="px"
originx="0"
originy="0"
spacingx="0.26458333"
spacingy="0.26458333"
empcolor="#0099e5"
empopacity="0.30196078"
color="#0099e5"
opacity="0.14901961"
empspacing="5"
dotted="false"
gridanglex="30"
gridanglez="30"
visible="true" />
</sodipodi:namedview>
<defs
id="defs1" />
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:0.594583;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1"
width="6.614583"
height="5.2916651"
x="5.3530993e-08"
y="47.624996" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:0.594579;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1"
width="6.614583"
height="5.2916675"
x="7.9374995"
y="47.624996" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:0.664764;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9"
width="6.614583"
height="6.6145825"
x="15.874999"
y="46.302082" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:0.664761;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5"
width="6.6145825"
height="6.6145835"
x="23.8125"
y="46.302082" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:0.728215;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3"
width="6.6145825"
height="7.9375"
x="31.75"
y="44.979164" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:0.728212;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1"
width="6.6145825"
height="7.9375"
x="39.6875"
y="44.979164" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:0.786555;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8"
width="6.6145821"
height="9.2604189"
x="47.625"
y="43.656246" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:0.786559;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4"
width="6.6145821"
height="9.2604189"
x="55.5625"
y="43.656246" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:0.84087;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6"
width="6.6145821"
height="10.583335"
x="63.5"
y="42.333332" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:0.840873;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5"
width="6.6145816"
height="10.583337"
x="71.4375"
y="42.333332" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:0.891875;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1"
width="6.6145816"
height="11.906252"
x="79.375"
y="41.010414" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:0.94012;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-7"
width="6.6145797"
height="13.229167"
x="87.3125"
y="39.687496" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:0.940122;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5"
width="6.6145811"
height="13.229168"
x="95.25"
y="39.687496" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:0.986006;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3"
width="6.6145811"
height="14.552086"
x="103.1875"
y="38.364582" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:1.02985;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-1"
width="6.6145806"
height="15.875004"
x="111.125"
y="37.041664" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:1.02985;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-8"
width="6.6145806"
height="15.875003"
x="119.0625"
y="37.041664" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:1.0719;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-9"
width="6.6145806"
height="17.19792"
x="127"
y="35.718746" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:1.11236;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-6"
width="6.6145802"
height="18.520832"
x="134.9375"
y="34.395832" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:1.11236;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-3"
width="6.6145802"
height="18.520832"
x="142.875"
y="34.395832" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:1.15141;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-86"
width="6.6145954"
height="19.843752"
x="150.81248"
y="33.072914" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:1.18917;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-0"
width="6.6145949"
height="21.166664"
x="158.74998"
y="31.749998" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:1.22577;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-4"
width="6.6145949"
height="22.489586"
x="166.68748"
y="30.427082" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:1.2613;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-1-8"
width="6.6145949"
height="23.812502"
x="174.62498"
y="29.104164" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:1.29586;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-8-8"
width="6.6145945"
height="25.135418"
x="182.56248"
y="27.781248" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:1.36236;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-9-8"
width="6.6145945"
height="27.781252"
x="190.49998"
y="25.135416" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:1.42576;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-6-9"
width="6.6145792"
height="30.427082"
x="198.4375"
y="22.489582" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:1.48646;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-6-9-4"
width="6.6145792"
height="33.072914"
x="206.375"
y="19.843748" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:1.54477;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-6-9-4-0"
width="6.6145792"
height="35.718746"
x="214.31248"
y="17.197916" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:1.60096;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-6-9-4-0-4"
width="6.6145792"
height="38.364578"
x="222.24998"
y="14.552082" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:1.65525;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-6-9-4-0-4-4"
width="6.6145792"
height="41.010414"
x="230.05521"
y="11.906249" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:1.73349;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-6-9-4-0-4-4-2"
width="6.6145792"
height="44.97916"
x="238.125"
y="7.937501" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:1.80835;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-6-9-4-0-4-4-2-5"
width="6.6145792"
height="48.94791"
x="246.0625"
y="3.9687498" />
<rect
style="font-variation-settings:'wght' 700;fill:#ffffff;stroke:none;stroke-width:1.88023;stroke-linejoin:round;stroke-dasharray:none;fill-opacity:1"
id="rect1-1-9-5-3-1-8-4-6-5-1-7-5-3-6-9-4-0-4-4-2-5-2"
width="6.6145792"
height="52.91666"
x="253.99998"
y="0" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -11,9 +11,13 @@
// This module manages variables, settings, as well as evaluating
// "if"-conditions in chats.
use bevy::window::WindowMode;
use bevy::prelude::*;
use std::collections::HashMap;
use serde::Deserialize;
use toml_edit::DocumentMut;
use std::env;
use std::fs;
pub const SCOPE_SEPARATOR: &str = "$";
@ -45,6 +49,7 @@ pub struct Settings {
pub font_size_conversations: f32,
pub font_size_choices: f32,
pub font_size_console: f32,
pub font_size_speedometer: f32,
pub hud_color: Color,
pub hud_color_console: Color,
pub hud_color_console_warn: Color,
@ -52,6 +57,7 @@ pub struct Settings {
pub hud_color_alert: Color,
pub hud_color_subtitles: Color,
pub hud_color_choices: Color,
pub hud_color_speedometer: Color,
pub chat_speed: f32,
pub hud_active: bool,
pub map_active: bool,
@ -61,6 +67,7 @@ pub struct Settings {
pub shadows_sun: bool,
pub shadows_pointlights: bool,
pub shadowmap_resolution: usize,
pub large_moons: bool,
pub key_selectobject: MouseButton,
pub key_zoom: MouseButton,
pub key_map: KeyCode,
@ -121,21 +128,9 @@ pub struct Settings {
impl Default for Settings {
fn default() -> Self {
let dev_mode;
let dev_mode = cfg!(feature = "dev_mode");
let default_mute_sfx = false;
let default_mute_music;
if let Ok(_) = env::var("CARGO") {
// Mute audio by default when run through `cargo`
default_mute_music = cfg!(debug_assertions);
// Enable dev mode when running `cargo run` without `--release`
dev_mode = cfg!(debug_assertions);
}
else {
default_mute_music = false;
dev_mode = false;
}
let default_mute_music = cfg!(feature = "mute_music");
let version = if let Some(version) = option_env!("CARGO_PKG_VERSION") {
version.to_string()
} else {
@ -159,13 +154,15 @@ impl Default for Settings {
font_size_conversations: 32.0,
font_size_choices: 28.0,
font_size_console: 20.0,
hud_color: Color::rgb(0.1, 0.5, 0.1),
hud_color_console: Color::rgb(0.1, 0.5, 0.1),
hud_color_console_warn: Color::rgb(1.0, 0.3, 0.3),
hud_color_console_system: Color::rgb(0.5, 0.5, 0.5),
hud_color_alert: Color::rgb(0.6, 0.094, 0.322),
hud_color_subtitles: Color::rgb(0.8, 0.8, 0.8),
hud_color_choices: Color::rgb(0.45, 0.45, 0.45),
font_size_speedometer: 34.0,
hud_color: Color::hex("#197F19").unwrap(),
hud_color_console: Color::hex("#197F19").unwrap(),
hud_color_console_warn: Color::hex("#FF4C4C").unwrap(),
hud_color_console_system: Color::hex("#7F7F7F").unwrap(),
hud_color_alert: Color::hex("#991752").unwrap(),
hud_color_subtitles: Color::hex("#CCCCCC").unwrap(),
hud_color_choices: Color::hex("#727272").unwrap(),
hud_color_speedometer: Color::hex("#BE1251").unwrap(),
chat_speed: DEFAULT_CHAT_SPEED * if dev_mode { 2.5 } else { 1.0 },
hud_active: false,
map_active: false,
@ -175,6 +172,7 @@ impl Default for Settings {
shadows_sun: true,
shadows_pointlights: false,
shadowmap_resolution: 2048,
large_moons: false,
key_selectobject: MouseButton::Left,
key_zoom: MouseButton::Right,
key_map: KeyCode::KeyM,
@ -266,6 +264,102 @@ impl Settings {
}
}
#[derive(Resource, Deserialize, Debug, Default)]
#[serde(default)]
pub struct Preferences {
pub fullscreen_mode: String,
pub window_mode: String,
pub render_mode: String,
#[serde(skip)]
pub source_file: Option<String>,
}
impl Preferences {
pub fn get_fullscreen_mode(&self) -> WindowMode {
match self.fullscreen_mode.as_str() {
"legacy" => WindowMode::Fullscreen,
"sized" => WindowMode::SizedFullscreen,
_ => WindowMode::BorderlessFullscreen,
}
}
pub fn get_window_mode(&self) -> WindowMode {
match self.window_mode.as_str() {
"fullscreen" => self.get_fullscreen_mode(),
_ => WindowMode::Windowed,
}
}
pub fn render_mode_is_gl(&self) -> bool {
return self.render_mode == "gl";
}
}
fn file_is_readable(file_path: &str) -> bool {
fs::metadata(file_path).map(|metadata| metadata.is_file()).unwrap_or(false)
}
fn get_prefs_path() -> Option<String> {
let test = "outfly.toml";
if file_is_readable(test) {
return Some(test.to_string());
}
if let Ok(basedir) = env::var("XDG_CONFIG_HOME") {
let test = basedir.to_string() + "/outfly/outfly.toml";
if file_is_readable(test.as_str()) {
return Some(test);
}
} else if let Ok(basedir) = env::var("HOME") {
let test = basedir.to_string() + ".config/outfly/outfly.toml";
if file_is_readable(test.as_str()) {
return Some(test);
}
}
return None;
}
pub fn load_prefs() -> Preferences {
let (toml, path) = match get_prefs_path() {
Some(path) => {
let toml = fs::read_to_string(&path);
match toml {
Ok(toml) => (toml, Some(path)),
Err(error) => {
error!("Failed to open preferences file '{path}': {error}");
return Preferences::default();
}
}
}
None => {
warn!("Found no preference file, using default preferences.");
(include_str!("data/outfly.toml").to_string(), None)
}
};
match toml.parse::<DocumentMut>() {
Ok(doc) => {
match toml_edit::de::from_document::<Preferences>(doc) {
Ok(mut pref) => {
if let Some(path) = &path {
info!("Loaded preference file from {path}");
} else {
info!("Loaded preferences from internal defaults");
}
pref.source_file = path;
dbg!(&pref);
return pref;
}
Err(error) => {
error!("Failed to read preference line: {error}");
return Preferences::default();
}
}
}
Err(error) => {
error!("Failed to open preferences: {error}");
return Preferences::default();
}
}
}
#[derive(Resource)]
pub struct GameVars {
pub db: HashMap<String, String>,

View file

@ -51,8 +51,6 @@ impl Plugin for WorldPlugin {
#[derive(Resource)] struct AsteroidUpdateTimer(Timer);
#[derive(Resource)] pub struct ActiveAsteroids(pub HashMap<I64Vec3, AsteroidData>);
#[derive(Resource)] struct AsteroidModel1(Handle<Scene>);
#[derive(Resource)] struct AsteroidModel2(Handle<Scene>);
#[derive(Component)] struct Asteroid;
#[derive(Component)] pub struct DespawnOnPlayerDeath;
@ -304,6 +302,10 @@ fn spawn_despawn_asteroids(
Collider::sphere(1.0),
Rotation::from(Quat::from_rotation_y(-PI / 3.)),
Position::new(pos),
hud::IsClickable {
name: Some("Uncharted Rock".to_string()),
..default()
},
Asteroid,
DespawnOnPlayerDeath,
));