How to run Bevy on Github Codespaces #14072
-
After setting up my development environment on GitHub Codespaces and installing all the necessary libraries, I'm encountering a runtime error with bevy
Then I set the
The code that I am using is use bevy::prelude::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_systems(Startup, setup)
.run();
}
fn setup(mut commands: Commands) {
commands.spawn(Camera2dBundle::default());
commands.spawn(SpriteBundle {
sprite: Sprite {
color: Color::hex("98c379").unwrap(),
custom_size: Some(Vec2::new(32.0, 32.0)),
..Default::default()
},
..Default::default()
});
commands.spawn(SpriteBundle::default());
} Is there a way to fix this error and successfully run my Bevy application on GitHub Codespaces? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Try use |
Beta Was this translation helpful? Give feedback.
-
If you want to run rendering in codespaces, you'll need to setup a virtual x11 server, then connect with VNC or something similar. it will also be very slow as there isn't a GPU available on codespaces, even when paying, so you'll also need to install a software renderer. It's generally a bad idea. |
Beta Was this translation helpful? Give feedback.
If you want to run rendering in codespaces, you'll need to setup a virtual x11 server, then connect with VNC or something similar. it will also be very slow as there isn't a GPU available on codespaces, even when paying, so you'll also need to install a software renderer.
It's generally a bad idea.