why would you have a division at all
sprite height and width are constants - compute that aspect ratio outside of the x loop, multiply by 256 to keep some precision (eg 24:8 fixed point) and then use multiply and shift with the core y loop
thanks and yes.
you can have details on how it’s done here: https://freds72.itch.io/poom/devlog/241700/journey-to-poom
thanks!
Game artist/designer is Paranoid Cactus - I cannot cover the years of experience he has, but the usual Doom mapping rules apply:
