1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-09-14 15:28:11 -04:00
OpenDiablo2/d2core/d2scene
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
..
blizzard_intro.go Migrate out d2common d2helper d2data modules (#195) 2019-11-17 00:16:33 -05:00
character_select.go Draw object layers in order and generally untangle the direction mess. (#239) 2019-11-26 21:04:36 -05:00
credits.go Extract sprite from dc6 from D2Shared (#234) 2019-11-24 17:58:23 -05:00
game.go Add basic movement (#240) 2019-12-02 16:55:48 -05:00
main_menu.go Extract sprite from dc6 from D2Shared (#234) 2019-11-24 17:58:23 -05:00
map_engine_testing.go Add basic movement (#240) 2019-12-02 16:55:48 -05:00
select_hero_class.go Extract sprite from dc6 from D2Shared (#234) 2019-11-24 17:58:23 -05:00