Add a rendering system using temporary images #61

Merged
CoCo_Sol merged 26 commits from renderer into main 2024-03-05 18:08:56 +00:00
Showing only changes of commit e3049a126a - Show all commits

View file

@ -37,6 +37,9 @@ impl Tile {
}
/// Returns the size of the image of the tile.
///
/// TODO: we are currently using temporary images that will modify
/// this function in the future.
const fn get_image_size(&self) -> Vec2 {
CoCo_Sol marked this conversation as resolved
Review

Add a TODO to tell it is temporary. I think we shoud make an image managment system to not hardcode this.

Add a TODO to tell it is temporary. I think we shoud make an image managment system to not hardcode this.
match self {
Self::Grass => Vec2 {