loading assets "works"
This commit is contained in:
parent
4c42512881
commit
44b257c710
5 changed files with 36 additions and 15 deletions
|
@ -1,7 +1,7 @@
|
|||
use comfy::*;
|
||||
use comfy::{draw_circle, vec2, EngineContext, RED};
|
||||
|
||||
pub fn draw(_state: &crate::State, _engine: &comfy::EngineContext) {
|
||||
pub fn draw(_state: &crate::State, _engine: &EngineContext<'_>) {
|
||||
draw_circle(vec2(0.0, 0.0), 0.5, RED, 0);
|
||||
}
|
||||
|
||||
pub fn update(_state: &mut crate::State, _engine: &mut comfy::EngineContext) {}
|
||||
pub fn update(_state: &mut crate::State, _engine: &mut EngineContext<'_>) {}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
use comfy::*;
|
||||
use comfy::{draw_circle, vec2, EngineContext, GREEN};
|
||||
|
||||
pub mod worldgen;
|
||||
|
||||
pub fn draw(_state: &crate::State, _engine: &comfy::EngineContext) {
|
||||
pub fn draw(_state: &crate::State, _engine: &EngineContext<'_>) {
|
||||
draw_circle(vec2(0.0, 0.0), 0.5, GREEN, 0);
|
||||
}
|
||||
|
||||
pub fn update(_state: &mut crate::State, _engine: &mut comfy::EngineContext) {}
|
||||
pub fn update(_state: &mut crate::State, _engine: &mut EngineContext<'_>) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue