Skip to content

Commit bf9827e

Browse files
Merge pull request #327 from jeffreykirchner/dev
update mini map viewport.
2 parents de5e627 + ab4d608 commit bf9827e

File tree

1 file changed

+1
-1
lines changed
  • main/templates/subject/subject_home/the_stage

1 file changed

+1
-1
lines changed

main/templates/subject/subject_home/the_stage/mini_map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ setup_pixi_minimap: function setup_pixi_minimap()
151151
mini_map_vp.fill({color:0xFFFFFF, alpha:0});
152152
mini_map_vp.stroke({width:2,color:0x000000,alignment:0});
153153

154-
mini_map_vp.pivot.set(mini_map_vp.width/2, mini_map_vp.height/2);
154+
mini_map_vp.pivot.set(pixi_app.screen.width * scale / 2, pixi_app.screen.height * scale / 2);
155155
mini_map_vp.position.set(obj.current_location.x * scale, obj.current_location.y * scale);
156156

157157
mini_map.view_port = mini_map_vp;

0 commit comments

Comments
 (0)