1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-09-30 07:06:18 -04:00
OpenDiablo2/d2core
danhale-git 894c60f77a
Map entity rework - vectors in mapEntity (#579)
* Fixed NaN on normalize 0 vector.

* Tentative implementation in getStepLength.

* mapEntity.TileX/Y removed.

* Fixed Position and Target not being initialised in createMapEntity.

* mapEntity.Position is no longer embedded.

* mapEntity.LocationX/Y no longer used outside map_entity.go.

* mapEntity.subCellX/Y removed.

* mapEntity.LocationX/Y removed.

* mapEntity.OffsetX/Y and TargetX/Y removed.

* Direction method added to Vector, returns 0-64 direction.

* Moved Vector.Direction() to Position.DirectionTo and refactored.

* Renamed RenderOffset from SubCell and tested IsZero.

* d2math.WrapInt added for use with directions.

* Tidied up position and tests.

* Refactored d2common.AdjustWithRemainder into d2mapEntity.

* Tidying up d2mapEntity.

* Final cleanup.

* Lint warnings.

* Spelling correction.
2020-07-13 09:06:50 -04:00
..
d2asset Add static checks to help ensure implementations conform to interfaces (#582) 2020-07-13 09:05:04 -04:00
d2audio/ebiten Add static checks to help ensure implementations conform to interfaces (#582) 2020-07-13 09:05:04 -04:00
d2config Removed Configuration interface (#560) 2020-07-08 09:16:16 -04:00
d2gui Use our own DrawEffects enum for draw effects (#564) 2020-07-08 21:57:35 -04:00
d2hero moving package comments into doc.go files (#534) 2020-07-03 18:33:46 -04:00
d2input Add static checks to help ensure implementations conform to interfaces (#582) 2020-07-13 09:05:04 -04:00
d2inventory moving package comments into doc.go files (#534) 2020-07-03 18:33:46 -04:00
d2map Map entity rework - vectors in mapEntity (#579) 2020-07-13 09:06:50 -04:00
d2object Refactored d2enum (#567) 2020-07-09 23:12:28 -04:00
d2render/ebiten Replace ebitenUtil with d2DebugUtil and new charmap for debugger. (#577) 2020-07-11 18:12:20 -04:00
d2screen moving package comments into doc.go files (#534) 2020-07-03 18:33:46 -04:00
d2term Javascript console commands (#572) 2020-07-11 11:24:04 -04:00
d2ui Use our own DrawEffects enum for draw effects (#564) 2020-07-08 21:57:35 -04:00