mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-16 02:12:28 -06:00
refactor: move direction & edible into entity submodule
This commit is contained in:
@@ -4,7 +4,7 @@ use sdl2::{
|
||||
video::Window,
|
||||
};
|
||||
|
||||
use crate::direction::Direction;
|
||||
use crate::entity::direction::Direction;
|
||||
use crate::texture::atlas::AtlasTexture;
|
||||
use crate::texture::FrameDrawn;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ use sdl2::{
|
||||
video::Window,
|
||||
};
|
||||
|
||||
use crate::{direction::Direction, texture::FrameDrawn};
|
||||
use crate::{entity::direction::Direction, texture::FrameDrawn};
|
||||
|
||||
/// A texture atlas abstraction for static (non-animated) rendering.
|
||||
pub struct AtlasTexture<'a> {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use sdl2::{render::Canvas, video::Window};
|
||||
|
||||
use crate::direction::Direction;
|
||||
use crate::entity::direction::Direction;
|
||||
|
||||
/// Trait for drawable atlas-based textures
|
||||
pub trait FrameDrawn {
|
||||
|
||||
Reference in New Issue
Block a user