Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: migrate to bones framework. #852

Merged
merged 31 commits into from
Oct 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
651955d
refactor: get map loading with latest bones.
zicklag Sep 18, 2023
12748dd
refactor: map, player spawner, and camera working again.
zicklag Sep 19, 2023
d95648a
feat: setup fixed update session runner.
zicklag Sep 19, 2023
6cbdf36
refactor: start on player inputs and port platform module.
zicklag Sep 19, 2023
f635a85
refactor: get all maps and elements loading.
zicklag Sep 20, 2023
5fa004c
refactor: load localizations and default settings.
zicklag Sep 21, 2023
0981178
refactor: re-implement player input.
zicklag Sep 21, 2023
bf967ac
refactor: load remaining ui theme data.
zicklag Sep 21, 2023
76d8d58
feat: start on main menu.
zicklag Sep 25, 2023
0da82d7
fix: re-enable bevy dylib during dev and fix platform storage dir.
zicklag Sep 25, 2023
2649f04
refactor: update input collection and add placeholder pause menu.
zicklag Sep 29, 2023
e0eff98
refactor: re-implement match audio playback.
zicklag Oct 1, 2023
389f770
feat: setup pause menu visuals.
zicklag Oct 1, 2023
8584ea7
feat: re-implement credits menu.
zicklag Oct 2, 2023
5534044
refactor: use egui state helpers from bones for menu page.
zicklag Oct 2, 2023
dcbeb90
feat: add quit button to main menu.
zicklag Oct 2, 2023
ba6ad9c
refactor: tweak menu code style and update egui.
zicklag Oct 2, 2023
7feece2
fix: remove old "Paused" label from pause menu.
zicklag Oct 2, 2023
50ff46b
feat: setup gamepad to control egui focus.
zicklag Oct 2, 2023
66a360c
feat: avoid 1-frame input delay in menu by collecting player input in…
zicklag Oct 3, 2023
10c2b61
fix: remove confusing "escape" key binding.
zicklag Oct 3, 2023
97b8123
feat: add network settings menu.
zicklag Oct 3, 2023
005608c
fix: fix keyboard controls for the UI by only generating egui events …
zicklag Oct 3, 2023
aa46f7c
feat: implement controller settings menu.
zicklag Oct 3, 2023
57116b4
feat: improve controller binding message.
zicklag Oct 3, 2023
9ca3596
feat: update to latest bones and enable web support.
zicklag Oct 11, 2023
3608679
feat: implement map select on pause menu.
zicklag Oct 11, 2023
2492126
feat: implement player selection to enable base gameplay again.
zicklag Oct 13, 2023
f459100
fix: update bones to fix asset loading issue.
zicklag Oct 14, 2023
7fb2fdc
fix: fix CI errors.
zicklag Oct 14, 2023
52315ef
build: update rust to 1.73.
zicklag Oct 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,226 changes: 1,124 additions & 2,102 deletions Cargo.lock

Large diffs are not rendered by default.

202 changes: 104 additions & 98 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,103 +7,112 @@ license = "MIT OR Apache-2.0"
name = "jumpy"
version = "0.7.0"

[workspace]
members = [".", "core"]

[features]
default = []
# Enable to simulate horrible network latency/slowness
debug-network-slowdown = ["async-timer", "turborand"]
# Enable bevy tracing scopes in profiling and tracy profiler support.
profiling-full= ["bevy/trace", "dep:tracing-tracy"]
# # Enable to simulate horrible network latency/slowness
# debug-network-slowdown = ["async-timer", "turborand"]
# # Enable bevy tracing scopes in profiling and tracy profiler support.
# profiling-full = ["bevy/trace", "dep:tracing-tracy"]

[dependencies]
bones_bevy_asset = "0.2"
bones_bevy_renderer = "0.2"
bones_lib = { version = "0.2", features = ["bevy"] }
type_ulid = "0.2"

anyhow = "1.0"
async-channel = "1.7"
bevy_console = "0.7"
bevy-inspector-egui = { version = "0.18", default-features = false }
bevy_egui = "0.20"
bevy_fluent = "0.6"
bevy_framepace = "0.12"
bevy_kira_audio = { version = "0.15", features = ["ogg"], default-features = false }
bevy_tweening = { version = "0.7", default-features = false }

async-timer = { version = "0.7", optional = true }
bytemuck = "1.12"
clap = { version = "4.0", features = ["derive", "env"] }
directories = "5.0"
downcast-rs = "1.2"
egui_extras = "0.21"
either = "1.8"
fluent = "0.16"
fluent_content = "0.0"
futures-lite = "1.12"
getrandom = { version = "0.2", features = ["js"] }
jumpy_core = { path = "./core" }
leafwing-input-manager = { version = "0.9", default-features = false }
log = { version = "0.4", features = ["release_max_level_debug"] }
normalize-path = "0.2"
once_cell = "1.17"
peg = "0.8"
puffin = { version = "0.15", features = ["web"] }
puffin_egui = "0.21"
rand = "0.8"
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.9"
thiserror = "1.0"
tracing = { version = "0.1", features = ["release_max_level_debug"] }
tracing-core = "0.1"
tracing-log = "0.1"
tracing-subscriber = "0.3"
unic-langid = "0.9"
byte-pool = "0.2.4"

[dependencies.turborand]
features = ["atomic"]
optional = true
version = "0.10"

[dependencies.bevy]
default-features = false
features = ["x11", "png", "filesystem_watcher", "bevy_gilrs"]
version = "0.10"

[dependencies.tracing-tracy]
version = "0.10.0"
default-features = false
features = ["enable", "system-tracing", "context-switch-tracing", "code-transfer"]
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.83"
web-sys = { version = "0.3", features = ["Window", "Location", "Storage"] }
tracing-wasm = "0.2"
console_error_panic_hook = "0.1"
js-sys = "0.3"
chrono = { version = "0.4", default-features = false, features = ["std", "wasmbind"] }
bones_framework = { git = "https://github.com/fishfolk/bones" }
bones_bevy_renderer = { git = "https://github.com/fishfolk/bones" }
bevy_tasks = "0.11"
turborand = { version = "0.10.0", features = ["atomic"] }
tracing = "0.1.37"
puffin = "0.16.0"
petgraph = "0.6.4"
rapier2d = { version = "0.17.2", features = ["debug-render", "enhanced-determinism"] }
indexmap = "2.0.0"
serde = { version = "1.0.188", features = ["derive"] }
shiftnanigans = "0.3.3"
humantime-serde = "1.1.1"
ordered-float = "3.9.1"
nalgebra = { version = "0.32", features = ["glam024"] }
once_cell = "1.18.0"
async-channel = "1.9.0"
serde_yaml = "0.9.25"
thiserror = "1.0.48"
peg = "0.8.1"
egui_extras = { version = "0.23.0", default-features = false }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
bevy_dylib = "0.10"
mimalloc = { version = "0.1", default-features = false }
# Networking deps
bitfield = "0.14"
bones_matchmaker_proto = "0.2"
bytes = "1.4"
ggrs = { version = "0.9", features = ["sync-send"] }
mdns-sd = { version = "0.7", default-features = false }
numquant = "0.2"
ping-rs = "0.1"
postcard = { version = "1.0", features = ["alloc"] }
quinn = { version = "0.10", default-features = false, features = ["tls-rustls"] }
rcgen = "0.10"
rustls = { version = "0.21", features = ["dangerous_configuration", "quic"] }
smallvec = "1.10"
quinn_runtime_bevy = "0.2"
directories = "1.0"
bevy_dylib = "0.11"

# anyhow = "1.0"
# async-channel = "1.7"
# bevy_console = "0.7"
# bevy-inspector-egui = { version = "0.18", default-features = false }
# bevy_egui = "0.21.0"
# bevy_fluent = "0.6"
# bevy_framepace = "0.12"
# bevy_kira_audio = { version = "0.15", features = ["ogg"], default-features = false }
# bevy_tweening = { version = "0.7", default-features = false }

# async-timer = { version = "0.7", optional = true }
# bytemuck = "1.12"
# clap = { version = "4.0", features = ["derive", "env"] }
# directories = "5.0"
# downcast-rs = "1.2"
# egui_extras = "0.22.0"
# either = "1.8"
# fluent = "0.16"
# fluent_content = "0.0"
# futures-lite = "1.12"
# getrandom = { version = "0.2", features = ["js"] }
# log = { version = "0.4", features = ["release_max_level_debug"] }
# normalize-path = "0.2"
# once_cell = "1.17"
# peg = "0.8"
# puffin = { version = "0.15", features = ["web"] }
# puffin_egui = "0.21"
# rand = "0.8"
# serde = { version = "1.0", features = ["derive"] }
# serde_yaml = "0.9"
# thiserror = "1.0"
# tracing = { version = "0.1", features = ["release_max_level_debug"] }
# tracing-core = "0.1"
# tracing-log = "0.1"
# tracing-subscriber = "0.3"
# unic-langid = "0.9"
# byte-pool = "0.2.4"

# [dependencies.turborand]
# features = ["atomic"]
# optional = true
# version = "0.10"

# [dependencies.tracing-tracy]
# version = "0.10.0"
# default-features = false
# features = ["enable", "system-tracing", "context-switch-tracing", "code-transfer"]
# optional = true

# [target.'cfg(target_arch = "wasm32")'.dependencies]
# wasm-bindgen = "0.2.83"
# web-sys = { version = "0.3", features = ["Window", "Location", "Storage"] }
# tracing-wasm = "0.2"
# console_error_panic_hook = "0.1"
# js-sys = "0.3"
# chrono = { version = "0.4", default-features = false, features = ["std", "wasmbind"] }

# [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
# mimalloc = { version = "0.1", default-features = false }
# # Networking deps
# bitfield = "0.14"
# bones_matchmaker_proto = "0.2"
# bytes = "1.4"
# ggrs = { version = "0.9", features = ["sync-send"] }
# mdns-sd = { version = "0.7", default-features = false }
# numquant = "0.2"
# ping-rs = "0.1"
# postcard = { version = "1.0", features = ["alloc"] }
# quinn = { version = "0.10", default-features = false, features = ["tls-rustls"] }
# rcgen = "0.11.1"
# rustls = { version = "0.21", features = ["dangerous_configuration", "quic"] }
# smallvec = "1.10"
# quinn_runtime_bevy = "0.2"

# Optimize dependencies even in development
[profile.dev.package."*"]
Expand All @@ -112,13 +121,9 @@ debug = 1 # Only keep line numbers
opt-level = 3

# Optimize our code a little bit.
[profile.dev.package.jumpy_core]
codegen-units = 512
opt-level = 1

[profile.dev]
codegen-units = 128
opt-level = 1
opt-level = 0

[profile.dev-optimized]
debug = 1
Expand All @@ -131,6 +136,7 @@ lto = true

[package.metadata.cargo-machete]
ignored = [
"tracing", # Needed to add `release_max_level_debug` feature
"getrandom", # Needed to add `js` feature
"tracing", # Needed to add `release_max_level_debug` feature
"getrandom", # Needed to add `js` feature
]

8 changes: 4 additions & 4 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[target.x86_64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install -y pkg-config libasound2-dev:$CROSS_DEB_ARCH libudev-dev:$CROSS_DEB_ARCH",
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install -y pkg-config libasound2-dev:$CROSS_DEB_ARCH libudev-dev:$CROSS_DEB_ARCH",
]

[target.aarch64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install -y pkg-config libasound2-dev:$CROSS_DEB_ARCH libudev-dev:$CROSS_DEB_ARCH",
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install -y pkg-config libasound2-dev:$CROSS_DEB_ARCH libudev-dev:$CROSS_DEB_ARCH",
]
77 changes: 0 additions & 77 deletions assets/default.core.yaml

This file was deleted.

Loading
Loading