feat: update testbeds to bevy 0.13

This commit is contained in:
Sébastien Crozet
2024-03-24 17:25:42 +01:00
committed by Sébastien Crozet
parent f351dad938
commit 2df7258570
12 changed files with 222 additions and 194 deletions

View File

@@ -138,16 +138,16 @@ pub fn init_world(testbed: &mut Testbed) {
for key in gfx.keys().get_pressed() {
match *key {
KeyCode::Right => {
KeyCode::ArrowRight => {
steering = -1.0;
}
KeyCode::Left => {
KeyCode::ArrowLeft => {
steering = 1.0;
}
KeyCode::Up => {
KeyCode::ArrowUp => {
thrust = -drive_strength;
}
KeyCode::Down => {
KeyCode::ArrowDown => {
thrust = drive_strength;
}
KeyCode::ShiftRight => {