daveruiz / doom-nano

A 3d raycast engine for Arduino
309 stars 67 forks source link

Save around 800Bytes of flash storage #10

Open 9VZZH7 opened 1 year ago

9VZZH7 commented 1 year ago

I just wanted to let you know, that it is possible to fit the whole of level 1 (but with some small tweaks, like placing an enemy one block higher or lower) into less than 1kB of flash! Compared to currently 1.8kB this could help make room for various other things to be implemented. However the getBlockAt function has to modified and is slightly longer. You should still get around 700 Bytes of additional storage to use. (This could be a return of the melting effect?)

Parindraa commented 11 months ago

You should put this into the pull requests and make the changes, so he'll see.