Shatur

joined 2 years ago
25
Object side snapping (files.mastodon.social)
 

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.

13
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 

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:

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 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.

๐Ÿ“œFull changelog ๐Ÿ“ฆbevy_replicon ๐Ÿ“ฆbevy_replicon_renet

 

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

17
Bevy Playground (learnbevy.com)
submitted 4 months ago* (last edited 4 months ago) by [email protected] to c/[email protected]
 

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.

[โ€“] [email protected] 6 points 4 months ago

It's Vortex Tab 90 ๐Ÿ˜Š

[โ€“] [email protected] 3 points 4 months ago

Yes, I would like to see more phones like this. At the moment the only modern options are PinePhone Pro + the keyboard add-on and F(x)tec Pro1 X.

112
Bevy on PinePhone Pro (files.mastodon.social)
 

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.

32
Bevy on PinePhone Pro (files.mastodon.social)
submitted 4 months ago* (last edited 4 months ago) by [email protected] to c/[email protected]
 

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.

[โ€“] [email protected] 2 points 5 months ago

Hm... Good point.

[โ€“] [email protected] 9 points 5 months ago (7 children)

One does not exclude the other. You can have a fancy name and a semantic versioning.

[โ€“] [email protected] 3 points 5 months ago (1 children)

I usually do interact with them, I'm to lazy to make a lot of townies myself :) I saw people quite often discuss townies, even make tier lists.

[โ€“] [email protected] 3 points 5 months ago (3 children)

The Sims have well-known townies, like Bella, Vlad, Eliza. etc. I assume they will cover their stories.

[โ€“] [email protected] 3 points 5 months ago (1 children)

Thanks! I also love The Sims series.

Yes. My current plan is to create a minimal game loop first: basic building mode, simple AI and limited character customization. And then extend, improve and experiment with mechanics.

The game will also have optional multiplayer, similar to this mod for the Sims 4. I'm the author of relatively popular networking library for the game engine I use :)

 

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 made with Bevy under the working title Project Harmonia.

9
Implemented automatic door opening (files.mastodon.social)
submitted 5 months ago* (last edited 5 months ago) by [email protected] to c/[email protected]
 

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.

38
Implemented automatic door opening (files.mastodon.social)
submitted 5 months ago* (last edited 5 months ago) by [email protected] to c/[email protected]
 

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 made with Bevy under the working title Project Harmonia.

 

Tried to adjust my mesh generation logic :)

[โ€“] [email protected] 1 points 5 months ago

Yeah, if you need a camera, then I would highly recommend to stick with Android for now :)

[โ€“] [email protected] 2 points 5 months ago* (last edited 5 months ago) (3 children)

I use Arch Linux ARM (with Danct repos).

Camera works and sometimes broken after suspend, but I don't use it. Audio on calls sometimes buggy. But megi resolved call issues, I updated today. Battery life is poor unless you use a keyboard. Battery indicator displays combined percentage which isn't ideal.

[โ€“] [email protected] 8 points 5 months ago (5 children)

I daily drive PinePhone Pro with the Pine keyboard to extend battery life. The experience is far from Android, but it's usable.

view more: โ€น prev next โ€บ