easy-dungeon-company / ddl

Dungeon Definition Language
0 stars 0 forks source link

Locator grid #11

Closed mmjackson90 closed 5 years ago

mmjackson90 commented 5 years ago

Alters locator grid to do location offsets in terms of grid location, not pixel (so the same image_location_list can be passed to renderer in multiple offsets on the grid.

In order to make sure images still render nicely, also moves the responsibility for getting the width and height of the final image (and positioning all sub_images correctly within that frame) to the Renderer.

mmjackson90 commented 5 years ago

This incorrectly places the props during the test.

It does. It's actually an issue with the scaling update not correctly altering image offsets which was previously hidden under the now impossible pixel offset in the locator class. Should now be resolved.