pkali / scorch_src

Scorch - Scorched Earth demake for Atari 800 / 5200
The Unlicense
40 stars 7 forks source link

Wind could be a single signed byte (-128..127) #82

Closed pkali closed 2 years ago

pkali commented 2 years ago

Now it is unsigned byte and wind direction is saved in the WindOrientation flag. Switching to a signed byte would make it possible to remove redundant code.

pkali commented 2 years ago

oh boy, I thought it would be a nice walk in the park at the beginning of the weekend, but it turned out to be more difficult than expected. Good point is that the whole Flight routine got significantly simpler now! Not only Wind is now signed, but also vx is signed, too. Unfortunately, they are 4 bytes each, not really a speedup here :)