add activities
Some checks failed
Rust / rustfmt (push) Successful in 19s
Rust / clippy (push) Failing after 38s
Rust / build (push) Successful in 2m3s

This commit is contained in:
luckyturtledev 2024-07-06 13:33:58 +02:00
parent 6f77fb9008
commit c957799a81
5 changed files with 50 additions and 7 deletions

7
src/activities/house.rs Normal file
View file

@ -0,0 +1,7 @@
use comfy::*;
pub fn draw(_state: &crate::State, _engine: &comfy::EngineContext) {
draw_circle(vec2(0.0, 0.0), 0.5, RED, 0);
}
pub fn update(_state: &mut crate::State, _engine: &mut comfy::EngineContext) {}

8
src/activities/mod.rs Normal file
View file

@ -0,0 +1,8 @@
pub mod house;
pub mod overworld;
#[derive(Debug)]
pub enum Activity {
House,
Overworld
}

View file

@ -0,0 +1,7 @@
use comfy::*;
pub fn draw(_state: &crate::State, _engine: &comfy::EngineContext) {
draw_circle(vec2(0.0, 0.0), 0.5, GREEN, 0);
}
pub fn update(_state: &mut crate::State, _engine: &mut comfy::EngineContext) {}