Implemented the data model and drawing of rectangular hitboxes, IsometricCoordsConverter functions have been transferred to Hitbox class as static, since they are generally needed for hitboxes only

This commit is contained in:
2024-11-18 14:43:42 +03:00
parent b6c61cc958
commit d7b477f58d
11 changed files with 216 additions and 108 deletions

View File

@ -190,6 +190,7 @@ public class Project implements Iterable<Entity>, EntityDrawboxChangedListener {
if (!imageFile.exists())
throw new FileNotFoundException();
BufferedImage image = ImageIO.read(imageFile);
return image;
} catch (FileNotFoundException fe) {
logger.warning("Image file \""+path+name+'.'+extension+"\" is not found!");