Bevy

https://files.mastodon.social/media_attachments/files/113/182/093/500/438/558/original/85b7adb68dbd538d.mp4

I'm working on a life simulation game with the working title Project Harmonia and would like to share my progress. I migrated navigation from oxidized_navigation to vleue_navigator. It uses the novel Polyanya algorithm instead of the classical A*. I faced a few issues during the migration, but the author helped me resolve them all. He even dumped the navmesh of the house I built in the game and created a test named after the project πŸ˜… I also implemented skipping points that the agent has projected past to prevent jitter when multiple points are close to each other.

16
0
https://files.mastodon.social/media_attachments/files/113/115/407/631/908/859/original/f9e8bfba3279661a.mp4

I working on a life simulation game with a working title Project Harmonia. I’ve finally added the ability to edit and remove previously spawned walls, along with an undo/redo system. Implementing the undo/redo was a bit challenging. If a command spawns or despawns an entity, it needs to be tracked to update the history with the correct ID. Additionally, since the game is networked, I had to introduce the concept of pending history commands. These commands are only added to the history after server confirmation.

11
0
github.com

It’s a crate for server-authoritative networking. We use it for Project Harmonia, but it's general-purpose. Some highlights: * Added the ability to defer replication, which is useful for exchanging messages or downloading assets required by the server before replication starts. * If there is any spawning, despawning, removal, or insertion, client events wait for replication. However, with this release, it can be disabled per event. * Fixed entity mapping when a client event is buffering. πŸ“œ[Full changelog](https://github.com/projectharmonia/bevy_replicon/blob/master/CHANGELOG.md) πŸ“¦[bevy_replicon](https://crates.io/crates/bevy_replicon)

4
0
bevy
Bevy Shatur β€’ Now β€’ 100%
Initial roads support
https://files.mastodon.social/media_attachments/files/112/922/864/550/855/151/original/76f65482536b1e5f.mp4

I working on a life simulation game with a working title Project Harmonia. Added initial editor for roads, reusing some logic from the walls implementation. Currently, I'm using segments for road creation, but I plan to add Bezier curves to allow for curved walls and roads. Maybe I should use Bezier curves even for straight lines πŸ€” I also need to use a texture without road markings for connection islands and implement rounding for turns. But wanted to share the current progress :)

24
2
bevy
Bevy Shatur β€’ Now β€’ 100%
Played with Bevy rendering

I'm working on a life simulator game and want to share some progress :) I found that `Tonemapping::AcesFitted` better fits the game aesthetic. With a little bit of bloom and an environment map, it looks much nicer. My wife also made more placeable objects, and I finished refactoring into new features from Bevy 0.14. Substates are so convenient! ![](https://lemmy.ml/pictrs/image/6c42fe21-6b9c-416a-b578-8bb7e3ef0f31.png) ![](https://lemmy.ml/pictrs/image/cbf70dd4-07ad-4f0a-8239-7b7bb50bc8b2.png) ![](https://lemmy.ml/pictrs/image/d13e57da-9d8c-4351-85ff-782a86ee84de.png)

21
0

While I am refactoring the code to new features from Bevy 0.14, my wife continues making models. I think Bevy can look attractive. However, I am still not fully satisfied with my lighting configuration and will come back to it later. ![](https://lemmy.ml/pictrs/image/7020768e-c5fc-469e-9357-62eb6487d199.png) ![](https://lemmy.ml/pictrs/image/7ad0a507-a7b0-4b1b-9ee9-2b924dd7ae04.png)

25
0
bevy
Bevy Doods β€’ Now β€’ 100%
OpenGL 1.5 support?

I know the title looks insane, but hear me out. I wanted to make a game, specifically an isometric 2.5D RPG game, nothing that fancy. So I decided to write it in Rust because **I**... like Enums, or something, and I had already finished the concurrency chapter, so I should be able to hang on. Bevy seemed like the most complete engine out there, if overkill for my use case, but it's presumably so modular I could de-bloat it adequately, But... Someone I know has a laptop; it is **old**. It is not super old, a *Toshiba Portege R700* with a locked BIOS which took me 3 days to trick its *Windows 10* boot loader into booting Debian, and accidentally, yet irresponsibly, broke Windows and installed Grub. There is no reason the thing shouldn't be able to run my hypothetical game. I've personally seen it LANning Sven Co-Op (Half-Life Co-Op) not long ago; the beast could maintain 60FPS for a solid few minutes, before overheating and dropping to 5, but it should hold on better now that I installed GNU/Linux. So I, just to make sure, ran the command that exposes the OpenGL version used by Mesa, and... *Open GL (ES?) 1.5*? **I surely**, need a plan. I noticed this issue with many indies. Many would-run-on-a-2005-thinkpad games sacrifice this untapped market for features they never use, or worse, go against the artistic vision. So, since Bevy is modular, can **I**, a humble would-be-intern, write a rendering backend for the 2003 specification, but not before learning what a rendering backend is? Or can **I**, a seasoned searcher, find a premade solution solution for Bevy or any other Rust engine, made to use the 2003 spec, or even the 1992 1.0 spec? Or would it be worthwhile, to construct an engine of mine? Edit: Or can **I**, a man of determination, write an FFI for an existing C solution?

12
3
bevy
Bevy barsoap β€’ Now β€’ 100%
Bevy 0.14
bevyengine.org
12
0
github.com

It’s a crate for server-authoritative networking. This release adds support for Bevy 0.14.0 and includes features from [the previous RC](https://lemmy.ml/post/17450650). I like Bevy's new release candidate process a lot! But it will take some time for the messaging backends to update. The [bevy_replicion_renet](https://github.com/projectharmonia/bevy_replicon) that I maintain needs the [renet](https://github.com/lucaspoffo/renet) crate to be updated to Bevy 0.14 first. πŸ“œ[Full changelog](https://github.com/projectharmonia/bevy_replicon/blob/master/CHANGELOG.md) πŸ“¦[bevy_replicon](https://crates.io/crates/bevy_replicon)

7
0
bevy
Bevy Shatur β€’ Now β€’ 100%
Bevy 0.14
bevyengine.org
8
0
bevy
Bevy Phlimy β€’ Now β€’ 100%
Bevy 0.14
bevyengine.org
11
0
github.com

It’s a crate for server-authoritative networking. We usually don't make breaking changes when a Bevy release is around the corner, but decided to make a small exception for this one :) This release adds support for Bevy 0.14.0-rc.4 and splits the crate functionality by features. For example, for headless server you can disable `client` feature. By default all features, except `diagnostics` are enabled, so you have the same set of plugins as before. But most plugin authors will need to add `default-features = false`. πŸ“œ[Full changelog](https://github.com/projectharmonia/bevy_replicon/blob/master/CHANGELOG.md) πŸ“¦[bevy_replicon](https://crates.io/crates/bevy_replicon)

4
0
bevy
Bevy Shatur β€’ Now β€’ 100%
Bevy 0.14.0-rc.4
https://crates.io/crates/bevy/0.14.0-rc.4

You can find it on [crates.io](https://crates.io/crates/bevy/0.14.0-rc.4) or on [GitHub](https://github.com/bevyengine/bevy/releases/tag/v0.14.0-rc.4). If you're already on the `rc.3`, `cargo update` should automatically pick it up. [Here is the list of fixes since the 0.14.0-rc.3](https://github.com/bevyengine/bevy/compare/v0.14.0-rc.3...v0.14.0-rc.4). This is likely the last release candidate! The estimated release date for the 0.14 is now beginning of next week.

14
0
bevyengine.org

For me, it's just [ECS nature](https://bevyengine.org/learn/quick-start/getting-started/ecs/) and [Schedule](https://docs.rs/bevy/latest/bevy/ecs/schedule/struct.Schedule.html) that optimizes everything for you. It's near native C / Assembly with safe garbage collection, so everything complex like some simulations should be more doable. I play [Tunnet](https://store.steampowered.com/app/2286390/Tunnet/) with no stuttering on my Linux machine in 4K and 144Hz!

15
0

You can find it on [crates.io](https://crates.io/crates/bevy/0.14.0-rc.3) or on [GitHub](https://github.com/bevyengine/bevy/releases/tag/v0.14.0-rc.3). If you're already on the `rc.2`, `cargo update` should automatically pick it up. [Here is the list of fixes since the 0.14.0-rc.2](https://github.com/bevyengine/bevy/compare/v0.14.0-rc.2...v0.14.0-rc.3). This version also has [observers](https://github.com/bevyengine/bevy/pull/10839) merged! The estimated release date for the 0.14 has been pushed back by one week, to be able to finish the release note and migration guide.

12
0
store.steampowered.com

Mine is [Tunnet](https://store.steampowered.com/app/2286390/Tunnet/). Maybe someone found some gem? Itch.io games also counts, just needs to be made in Bevy!

27
3

I don't know if it's the best place to ask this, but I've been having issues with trying to make minesweeper with bevy. I tried making a function that would give the number of mines around the tile that was clicked if it wasn't a mine. Then, I wanted to make it so that when the number of mines around the clicked tiles is 0, it reveals the surrounding tiles. Finally, I tried making the function recursive by rerunning it on the empty surrounding tiles. The issue is that it seems that certain tiles with no mines surrounding them don't reveal the surrounding tiles. Here's the portion of the code I am talking about (I know it's pretty bad): ``` fn find_surrounding_mines( mut set: ParamSet<( EventReader<TileEntity>, EventWriter<TileEntity>, )>, mut surrounding_mines: EventWriter<SurroundingMines>, mut query_board: Query<&mut Board>, mut change_tile_image: EventWriter<ChangeTileImage>, mut query_mine: Query<(&Mine, &mut Tile)>) { let dy: [i8; 8] = [-1, -1, -1, 0, 0, 1, 1, 1]; let dx: [i8; 8] = [-1, 0, 1, -1, 1, -1, 0, 1]; let board = query_board.single_mut(); let mut num_mine: u8 = 0; let mut y: u8 = 0; let mut copy_x: usize = 0; let mut tile_read:bool = false; let mut copy_num_mine:u8 = 0; for tile in set.p0().read(){ for (row_index, vector) in board.tiles.iter().enumerate(){ if let Some(x) = vector.iter().position(|&x|x == tile.0) { copy_x = x; y = row_index as u8; for i in 0..8{ if x as i8 + dx[i] >= 0 && x as i8 + dx[i] < board.width as i8 && y as i8 + dy[i] >= 0 && y as i8 +dy[i] < board.height as i8{ if let Ok((_mine,mut tile)) = query_mine.get_mut(board.tiles[(y as i8 + dy[i]) as usize][(x as i8+ dx[i]) as usize]){ num_mine += 1; tile.hidden = false; } } } break; } } surrounding_mines.send(SurroundingMines(num_mine)); change_tile_image.send(ChangeTileImage{tile: tile.0, asset: "Minesweeper_LAZARUS_21x21_".to_string() + &num_mine.to_string() + ".png"}); copy_num_mine = num_mine; num_mine = 0; tile_read = true; } if copy_num_mine == 0 && tile_read{ tile_read = false; for i in 0..8{ if copy_x as i8 + dx[i] >= 0 && copy_x as i8 + dx[i] < board.width as i8 && y as i8 + dy[i] >= 0 && y as i8 +dy[i] < board.height as i8{ if let Ok((_mine, mut tile)) = query_mine.get(board.tiles[(y as i8 + dy[i]) as usize][(copy_x as i8 + dx[i]) as usize]){ continue; }else{ println!("{:?}", (y as i8 + dy[i], copy_x as i8 + dx[i])); set.p1().send(TileEntity(board.tiles[(y as i8 + dy[i]) as usize][(copy_x as i8 + dx[i]) as usize])); } } } } } ```

12
2

It’s a crate for server-authoritative networking. Bevy has started drafting release candidates to let users test them before the actual release. And I think it's awesome! This release adds support for Bevy 0.14.0-rc.2. There are no functional changes. We haven't released `bevy_replicon_renet` because we need to wait for `bevy_renet`. However, other crates, including other messaging backends, won't be blocked. πŸ“¦[bevy_replicon](https://crates.io/crates/bevy_replicon)

7
0
bevy
Bevy Shatur β€’ Now β€’ 100%
Bevy 0.14.0-rc.2
https://crates.io/crates/bevy/0.14.0-rc.2

You can find it on [crates.io](https://crates.io/crates/bevy/0.14.0-rc.2) or on [GitHub](https://crates.io/crates/bevy/0.14.0-rc.2). Notice that as it's a release candidate, you have to specify the version for it to be selected, it's not automatic. Please test it on all the strange use cases you have, update the plugins you maintain, and get ready for an exceptional release! The [migration guide](https://bevyengine.org/learn/migration-guides/0-13-to-0-14) is still being worked on, but the draft can already prove useful. For the next two weeks, we'll cherrypick back to the release branch merged PRs from the [0.14 milestone](https://github.com/bevyengine/bevy/milestone/20), so that they will be in the 0.14 release. While we will avoid breaking changes, it's still a possiblity one will be merged if there's a big enough issue.

12
0

Bought the device a few days ago and wanted to share the experience of running a Bevy game on it. I developing an open source life simulation game called Project Harmonia. The game is at the prototype stage: you can build walls, place objects and move around, but no no actual gameplay loop. Bevy engine supports it natively since it's just a regular x86 with GNU/Linux. So nothing special was needed! I compiled the game via Cargo and it works. The game runs great. I get stable 90 FPS (90Hz is the refresh rate of the device) consuming only 13.1 W. The UI is a little big and controls aren't adapted well for gamepads, but I will fix it later. The console itself is also a nice machine for development. Next I will write about the setup I use. As you may know, it runs SteamOS with KDE and based on ArchLinux. Packages mostly mirror official ArchLinux repositories, but there are some additions and everything is compiled by Valve. So you can even install SuperTuxKart or GNOME πŸ˜ƒ Another difference from vanilla ArchLinux is immutable file system. You can make it writable via a single command in terminal, but each update wipes all changes made to the system. Home directory remains untouched. Because of the immutable filesystem, I decided to try Flatpak. It installs packages into the user's home directory. Therefore, such apps won't be removed after an update. But I faced some limitations due to containerization. For example, the Firefox extension for KeePassXC does not work because apps can't interact with each other. And it's not suited for installing stuff like compilers or libraries. So I decided to explore other options. Next, I tried to create a script that I planned to run after each update. It installs all the packages I need through the system package manager. But packages on SteamOS are older then in Archlinux. For example, Neovim on SteamOS is 0.9, but on ArchLinux it's 0.10, so I had to downgrade my configuration. And it causes incompatibilities with AUR. For example, I couldn't install Crow Translate because of it. Another problem with such script is that Valve nuked `/usr/include` directory to free space. All packages are present, but the folder is missing. It makes sense for a gaming device, but I need it to compile packages from AUR. It can be solved by reinstalling all packages that put files into `/usr/include`. But it causes another problem πŸ˜ƒ Allocated space for `/` is limited and you quickly run out of space after restoring headers and installing a couple of packages. Then I decided to try Distrobox. It creates containers that tightly integrated with the host system. It even comes pre-installed on the Steam Deck. And I like it a lot! It is very easy to use and combines the advantages of both approaches. All packages will persist across updates and I have access to all packages that I have on my regular PC. Graphical apps look native and can interact with each other. The game on photos was compiled on the Steam Deck πŸ₯°

64
0

cross-posted from: https://mastodon.social/users/Shatur/statuses/112508034539087653 It's a crate for server-authoritative networking. In this release, we have completely reworked the events. We now use an optimization similar to what Bevy does for [processing event updates](https://github.com/bevyengine/bevy/pull/12936). The public API for events has not changed, except that custom systems have been replaced with simple serialization and deserialization functions. It’s faster and more convenient. In addition, all network event registration functions can be used on regular events, automatically making them network events. πŸ“œ[Full changelog](https://github.com/projectharmonia/bevy_replicon/blob/master/CHANGELOG.md) πŸ“¦[bevy_replicon](https://crates.io/crates/bevy_replicon) πŸ“¦[bevy_replicon_renet](https://crates.io/crates/bevy_replicon_renet)

8
0
bevy
Bevy Shatur β€’ Now β€’ 96%
Object side snapping
https://files.mastodon.social/media_attachments/files/112/464/350/123/909/782/original/43ee5ca84816f484.mp4

cross-posted from: https://mastodon.social/users/Shatur/statuses/112464362803020971 Implemented a special component that allows the sides of objects to snap to others with the same component. Bevy's gizmo was very helpful in visualizing the math.

25
0

It's a crate for server-authoritative networking. We worked closely with the author of `bevy_bundlication` on this release to provide better abstractions for third party plugins on top of replicon. Here are some highlights: Previously, users registered a component for replication and it was replicated if its entity was marked for replication. But this approach is quite limited. Now users can define replication rules similar to queries: ```rust app.replicate_group::<(Transform, Player)>() // `Transform` and `Player` components will be replicated only if both present on an entity. ``` And it's possible to specialize ser/de for such groups. For example, replicate `Transform` in one way for players and in another way for static objects. Groups with more components take priority by default (but it's configurable). So it's also possible to have `app.replicate::<Transform>()`, but if `Player` component is present, `(Transform, Player)` will take precedence. In the next release we planning to support `With` and `Without` to let define something like this: `app.replicate_group::<(A, B), Without<C>>()`. Also check out πŸ“¦[bevy_bundlication](https://github.com/NiseVoid/bevy_bundlication) which is now an abstraction over replicon that provides a bundle-like API for defining replication groups. Custom replication functions was also heavily reworked: - Public API no longer requires any `unsafe`. - Deserialization and writing now defined separately. This allows rollback crates to define their logic without touching user-defined ser/de functions. - Writing now based on markers for more flexibility. - Users can customize deserialization in-place. The author of `bevy_bundlication` also developing input queue and rollback plugins, but they require an API for disabling entities from Bevy. If you are interested in this or have other suggestions how to achieve it, feel free to comment on [this issue](https://github.com/bevyengine/bevy/pull/13120). πŸ“œ[Full changelog](https://github.com/projectharmonia/bevy_replicon/blob/master/CHANGELOG.md) πŸ“¦[bevy_replicon](https://crates.io/crates/bevy_replicon) πŸ“¦[bevy_replicon_renet](https://crates.io/crates/bevy_replicon_renet)

13
0

Working on a life simulator game with a working title Project Harmonia. Just added vintage counter that my wife made to the game. I think it looks quite nice in Bevy. The same model in Blender: https://toot.garden/@YaraGardaria/112322312099954470

9
0
https://files.mastodon.social/media_attachments/files/112/304/342/843/455/511/original/6244da7f937a950b.mp4

Introducing renet2, a fork of the networking library renet that implements the game-oriented netcode standard. Highlights: \- Allow netcode servers to manage multiple data sources at once (e.g. UDP sockets and a WebTransport server). \- Add built-in in-memory sockets and WebTransport sockets. You can now run a netcode server with native AND browser clients, with the same exact authentication workflow for all clients (using ConnectTokens). [@bevy](https://programming.dev/c/bevy) [https://github.com/UkoeHB/renet2](https://github.com/UkoeHB/renet2) [\#bevy](https://mastodon.social/tags/bevy) [#networking](https://mastodon.social/tags/networking)

8
0

Our very first game at Snowy Road Studios! Scavenger: Jump around and scavenge for good items! [https://snowy-road-studios.itch.io/scavenger](https://snowy-road-studios.itch.io/scavenger) Scavenger came from a small in-house game jam with me (SRS founder koe) and my kid brother. Check the devlog to see how it went: [https://snowy-road-studios.itch.io/scavenger/devlog/711861/developing-scavenger](https://snowy-road-studios.itch.io/scavenger/devlog/711861/developing-scavenger). [@bevy](https://programming.dev/c/bevy) [\#bevy](https://mastodon.social/tags/bevy) [#gamejam](https://mastodon.social/tags/gamejam) [#family](https://mastodon.social/tags/family)

12
2
bevy
Bevy Shatur β€’ Now β€’ 100%
Bevy Playground
https://learnbevy.com/playground

We've long wanted a Bevy playground, just like the official Rust one, where you can type in code in the browser and quickly mess around with Bevy. Now, thanks to Liam, you can experience this for yourself! The author is looking for feedback [here](https://discord.com/channels/691052431525675048/692648638823923732/1191596430750666783).

17
0
github.com

List of changes: https://github.com/bevyengine/bevy/compare/v0.13.1...v0.13.2 ![](https://programming.dev/pictrs/image/d4c8148c-a07f-44a7-9c9c-af40fa610613.png)

8
0
bevy
Bevy Shatur β€’ Now β€’ 97%
Bevy on PinePhone Pro

Bevy can run on Android phones. But what about GNU/Linux phones? I decided to find out using my PinePhone Pro with RK3399. Managed to run my game using `WGPU_SETTINGS_PRIO=webgl2`. But couldn't get past the main menu due to limited features of the GPU. 😒 But simple 2D games like breakout example runs! Right now I working on networking for the game, but this evening I decided to tinker with my device a little.

33
3
github.com

List of changes: https://github.com/bevyengine/bevy/compare/v0.13.0...v0.13.1

6
0
bevy
Bevy mac β€’ Now β€’ 100%
2024 Budget
bevyengine.org
22
4
bevy
Bevy Shatur β€’ Now β€’ 100%
Bevy Foundation
bevyengine.org
20
0
https://files.mastodon.social/media_attachments/files/112/072/739/324/049/218/original/e7c165ee8a62d095.mp4

In my initial implementation, doors opened when a character approached them (using a sensor collider). But it looked creepy πŸ˜… Imagine simply walking past the doors and having them open unexpectedly. In the current implementation, I analyze navigation paths to determine if characters pass through the door, and open it when they approach. Additionally, I added small visual feedback for wall placement, fine-tuned navigation, adjusted controls, made a few QoL improvements, and fixed a bunch of bugs. This is for my WIP open source life simulation game under the working title [Project Harmonia](https://github.com/projectharmonia/project_harmonia).

9
0

This release is big! We abstracted out all I/O and `renet` dependency. We will continue to provide first-party integration with `renet` via `bevy_replion_renet`. But now users can write their own integration with other messaging libraries. Refer to the documentation for instructions on how to do it, the process is very simple. See `bevy_replicon_renet` as an example. This also opens up the possibility of simultaneously using multiple messaging libraries on the server, as long as the client identifiers they provide are unique. See the [changelog](https://github.com/projectharmonia/bevy_replicon/blob/master/CHANGELOG.md) for a full list of changes. πŸ“¦[bevy_replicon](https://crates.io/crates/bevy_replicon) πŸ“¦[bevy_replicon_renet](https://crates.io/crates/bevy_replicon_renet)

8
0