Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
Fix animated_sprites example
Browse files Browse the repository at this point in the history
  • Loading branch information
darthdeus committed Sep 23, 2023
1 parent c91debd commit 39a7357
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# EXAMPLE=animated_shapes
# EXAMPLE=animated_text
EXAMPLE=animated_sprites
# EXAMPLE=custom_fonts
# EXAMPLE=ecs_sprite
# EXAMPLE=ecs_topdown_game
Expand All @@ -8,7 +9,7 @@
# EXAMPLE=lighting
# EXAMPLE=single_particle
# EXAMPLE=particle_systems
EXAMPLE=physics
# EXAMPLE=physics
# EXAMPLE=post_processing
# EXAMPLE=sprite
# EXAMPLE=shapes
Expand Down
4 changes: 2 additions & 2 deletions comfy/examples/animated_sprites.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ simple_game!("Sprite Example", setup, update);

fn setup(c: &mut EngineContext) {
load_texture_from_engine_bytes(
c.graphics_context,
&c.renderer.context,
"player",
include_bytes!(concat!(
env!("CARGO_MANIFEST_DIR"),
"/../assets/player.png"
)),
&mut c.textures.lock(),
&mut c.renderer.textures.lock(),
wgpu::AddressMode::ClampToEdge,
);
}
Expand Down
2 changes: 1 addition & 1 deletion comfy/examples/full_game_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl GameLoop for ComfyGame {
// Right now engine stages have to be invoked manually.
run_early_update_stages(&mut c);

// User can construct their own context object wrapping the `EngineContext`. Ideally
// Users can construct their own context object by wrapping the `EngineContext`. Ideally
// `ComfyGame` would be generic over this, but ... lifetimes are tough, and this is a
// WIP. For now the solution is macros and/or copy pasting this trait impl.
update(&mut GameContext {
Expand Down

0 comments on commit 39a7357

Please sign in to comment.