refactor: split up and move texture-related code into src/texture submodule

This commit is contained in:
2025-07-24 12:41:36 -05:00
parent cfa73c58a8
commit 002da46045
9 changed files with 158 additions and 141 deletions

View File

@@ -2,13 +2,14 @@ use rand::rngs::SmallRng;
use rand::Rng;
use rand::SeedableRng;
use crate::animation::{AnimatedAtlasTexture, FrameDrawn};
use crate::constants::{MapTile, BOARD_WIDTH};
use crate::direction::Direction;
use crate::entity::pacman::Pacman;
use crate::entity::{Entity, MovableEntity, Moving, Renderable};
use crate::map::Map;
use crate::modulation::{SimpleTickModulator, TickModulator};
use crate::texture::animated::AnimatedAtlasTexture;
use crate::texture::FrameDrawn;
use glam::{IVec2, UVec2};
use sdl2::pixels::Color;
use sdl2::render::Texture;