1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-09 03:37:17 -05:00
OpenDiablo2/d2render
j0y c6235411b7 Add basic movement (#240)
* Add basic movement

* Calculate step length based on tick time between updates, teleport to target if within one step.

* Smooth camera, hero movement

removed float to int conversions in Render and IsoToScreen functions

* Render hero in the center of the screen (assuming 800x600 resolution)

* Revert changing Render() parameters type

* Render hero in the tile loop

hero will naturally render in front of the walls of the current tile but behind the walls of the tile below

* Smoother steps near target coordinates

remove jitter from trying to get one step away from target on both axis
2019-12-02 16:55:48 -05:00
..
d2mapengine Add basic movement (#240) 2019-12-02 16:55:48 -05:00
d2ui Extract sprite from dc6 from D2Shared (#234) 2019-11-24 17:58:23 -05:00
animated_entity.go Add basic movement (#240) 2019-12-02 16:55:48 -05:00
sprite.go Extract sprite from dc6 from D2Shared (#234) 2019-11-24 17:58:23 -05:00