1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-26 09:05:24 +00:00
OpenDiablo2/d2core
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
..
d2scene Add basic movement (#240) 2019-12-02 16:55:48 -05:00
character_equipment.go Added inventory objects. (#177) 2019-11-14 22:20:01 -05:00
engine.go Extract sprite from dc6 from D2Shared (#234) 2019-11-24 17:58:23 -05:00
game_state.go Migrate out d2common d2helper d2data modules (#195) 2019-11-17 00:16:33 -05:00
hero_objects.go Migrate out d2common d2helper d2data modules (#195) 2019-11-17 00:16:33 -05:00
hero.go Migrate out d2common d2helper d2data modules (#195) 2019-11-17 00:16:33 -05:00
inventory_item_armor.go Migrate out d2common d2helper d2data modules (#195) 2019-11-17 00:16:33 -05:00
iventory_item_weapon.go Migrate out d2common d2helper d2data modules (#195) 2019-11-17 00:16:33 -05:00
npc.go Migrate out d2common d2helper d2data modules (#195) 2019-11-17 00:16:33 -05:00