diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 7af499a..155290c 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -5,6 +5,7 @@ "label": "Launch", "type": "cargo", "command": "run", + "args": ["--", "--seed", "gargamel"], "options": { "env": { "RUST_BACKTRACE": "full" diff --git a/src/game/mod.rs b/src/game/mod.rs index 15ee7f6..370d386 100644 --- a/src/game/mod.rs +++ b/src/game/mod.rs @@ -1 +1,4 @@ pub mod objects; +pub mod runtime; +pub mod seed; +pub mod setup; diff --git a/src/game/runtime.rs b/src/game/runtime.rs new file mode 100644 index 0000000..645495f --- /dev/null +++ b/src/game/runtime.rs @@ -0,0 +1,40 @@ +use avian2d::prelude::*; +use bevy::prelude::*; + +use super::objects::Player; + +pub fn move_player( + time: Res