This update adds a few new mob vars (accel, decel, and gravity) and support for BYOND's built-in pixel movement. Just like in the Pixel Movement library, any project that was created using the library will now automatically work with BYOND's built-in feature. Some features of the library aren't compatible (ramps), and because of this you can still configure the library to run in legacy mode (use soft-coded pixel movement).
Here's the list of changes:
- Fixed a bug with fractional moves in the y direction. Thanks to Kaiochao for pointing it out!
- Added accel, decel, and gravity vars to mobs. These vars are all 1 by default and control the mob's acceleration and deceleration rates (gravity being the acceleration rate due to gravity).
- Added a demo called v3.0 that shows examples of using the new accel, decel, and gravity vars.
- Added support for BYOND's built-in pixel movement. This is enabled by default, but you can switch back to legacy mode by enabling a compiler flag in _flags.dm. The legacy mode uses the old soft-coded pixel movement which is necessary for supporting ramps.