Just when you thought Bevy couldn't get more ergonomic, Bvy shows up to change the game.

Related tags

Game development bvy
Overview

Just when you thought Bevy couldn't get more ergonomic, Bvy shows up to change the game. Is this a joke? You decide. Does it work? You can bet your Ass(etServer) it does. Bvy shortens core Bevy ECS and some engine type names to a ... lets just say opinionated ... degree. This is implemented with type aliases, which means this is 100% compatible with bevy types and plugins. The author of this crate does not actually endorse using this crate over the actual bevy crate. Sometimes we just build things because we can.

use bvy::*;

fn main() {
    App::new()
        .add_system(movement)
        .run();
}

fn setup(mut com: Com, ass: Ass) {
    com.spawn_bundle(OrthographicCamera::new_2d())
    com.spawn_bundle(SpriteBundle {
        texture: ass.load("player.png"),
        ..default()
    })
}

fn movement(time: R<Time>, mut transforms: Q<&mut Transform>) {
    for mut t in transforms.iter_mut() {
        t.translation.x += time.delta_seconds() * 10.0;
    }
}

Changes

  • bevy::prelude::* -> bvy::*
  • Query<&Transform> -> Q<&Transform>`
  • Res<Time> -> R<Time>
  • ResMut<Assets<Mesh>> -> Rm<Assets<Mesh>>
  • Commands -> Com
  • AssetServer -> Ass
  • Query<&Transform, With<Player>> -> Q<&Transform, W<Player>>
  • Query<&Transform, Without<Player>> -> Q<&Transform, Wo<Player>>
  • ParamSet<(Query<(&mut Transform, &Player)>, Query<&mut Transform>)> -> Ps<(Q<(&mut Transform, &Player)>, Q<&mut Transform>)>
  • EventWriter<AppExit> -> Ew<AppExit>
  • EventReader<AppExit> -> Er<AppExit>
You might also like...
Crossterm plugin for the bevy game engine
Crossterm plugin for the bevy game engine

What is bevy_crossterm? bevy_crossterm is a Bevy plugin that uses crossterm as a renderer. It provides custom components and events which allow users

Game physics in one weekend with bevy

Game Physics in a Weekend (in Rust) This project is an implementation of the Game Physics in a Weekend book using the Rust programming language and th

A Bevy plugin to use Kira for game audio

Bevy Kira audio This bevy plugin is intended to try integrating Kira into Bevy. The end goal would be to replace or update bevy_audio, if Kira turns o

Concise Reference Book for the Bevy Game Engine

Unofficial Bevy Cheat Book Click here to read the book! Concise reference to programming in the Bevy game engine. Covers useful syntax, features, prog

Template for a Bevy game

A Bevy game template Template for a Game using the awesome Bevy engine featuring (almost) out of the box builds for Windows, Linux and MacOS. What doe

Proof-of-concept of getting OpenXR rendering support for Bevy game engine using gfx-rs abstractions
Proof-of-concept of getting OpenXR rendering support for Bevy game engine using gfx-rs abstractions

Introduction Proof-of-concept of getting OpenXR rendering support for Bevy game engine using gfx-rs abstractions. (hand interaction with boxes missing

A physics lib for the bevy game engine based on physme

physimple Physimple aims to be the simplest(and capable) physics engine(currently for bevy) WARNING Beware for breaking changes with each update for n

An immediate mode 2D drawing API for Bevy game engine

Bevy Canvas API prototype An unofficial immediate mode 2D drawing API for Bevy game engine. Check the documentation or the examples to know how to use

Simple RUST game with the Bevy Engine

Simple RUST Game using the Bevy Engine YouTube videos for this code base: Episode 1 - Rust Game Development tutorial from Scratch with Bevy Engine Epi

Owner
Carter Anderson
Creator of Bevy Engine | GameDev | Programmer | Artist | Previously Senior Software Engineer at Microsoft
Carter Anderson
Minecraft-esque voxel engine prototype made with the bevy game engine. Pending bevy 0.6 release to undergo a full rewrite.

vx_bevy A voxel engine prototype made using the Bevy game engine. Goals and features Very basic worldgen Animated chunk loading (ala cube world) Optim

Lucas Arriesse 88 Sep 26, 2022
Extreme Bevy is what you end up with by following my tutorial series on how to make a low-latency p2p web game.

Extreme Bevy Extreme Bevy is what you end up with by following my tutorial series on how to make a low-latency p2p web game. There game can be played

Johan Klokkhammer Helsing 20 Sep 7, 2022
A tilemap rendering crate for bevy which is more ECS friendly.

bevy_ecs_tilemap A tilemap rendering plugin for bevy which is more ECS friendly by having an entity per tile. Features A tile per entity Fast renderin

John 340 Sep 28, 2022
2d Endless Runner Game made with Bevy Game Engine

Cute-runner A 2d Endless Runner Game made with Bevy Game Engine. Table of contents Project Infos Usage Screenshots Disclaimer Project Infos Date: Sept

JoaoMarinho 2 Jul 15, 2022
A game of snake written in Rust using the Bevy game engine, targeting WebGL2

Snake using the Bevy Game Engine Prerequisites cargo install cargo-make Build and serve WASM version Set your local ip address in Makefile.toml (loca

Michael Dorst 0 Dec 26, 2021
A game made in one week for the Bevy engine's first game jam

¿Quien es el MechaBurro? An entry for the first Bevy game jam following the theme of "Unfair Advantage." It was made in one week using the wonderful B

mike 15 Aug 26, 2022
bevy-hikari is an implementation of voxel cone tracing global illumination with anisotropic mip-mapping in Bevy

Bevy Voxel Cone Tracing bevy-hikari is an implementation of voxel cone tracing global illumination with anisotropic mip-mapping in Bevy. Bevy Version

研究社交 95 Sep 28, 2022
Solana Game Server is a decentralized game server running on Solana, designed for game developers

Solana Game Server* is the first decentralized Game Server (aka web3 game server) designed for game devs. (Think web3 SDK for game developers as a ser

Tardigrade Life Sciences, Inc 15 Jul 2, 2022
Basic first-person fly camera for the Bevy game engine

bevy_flycam A basic first-person fly camera for Bevy 0.4 Controls WASD to move horizontally SPACE to ascend LSHIFT to descend ESC to grab/release curs

Spencer Burris 71 Sep 24, 2022
Inspector plugin for the bevy game engine

bevy-inspector-egui This crate provides the ability to annotate structs with a #[derive(Inspectable)], which opens a debug interface using egui where

Jakob Hellermann 406 Sep 21, 2022