AlexMulkerrin / PocketCiv

Minimal Civilisation-like game. Made a pathfinder and wanting to use it in a project :)
9 stars 3 forks source link

Sidebar not refreshing correctly #9

Closed spasquini closed 7 years ago

spasquini commented 7 years ago

If starting the game with the browser window not big enough to show the sidebar, when enlarging the window, the sidebar stand cutted, never refreshing or showing completely its data.

AlexMulkerrin commented 7 years ago

Yes the game doesn't check the dimensions of the browser window when it gets resized and the sidebar was at a static width.

Don't worry both of these issues are being addressed in the first, proper version of PocketCiv :) The prototype was just quickly thrown together as a proof of concept. The actual game will endeavor to be playable at whatever window dimensions you please and instantly adjust when resized :D

This won't be hard, I've written such code before :) next commit will have it in.

spasquini commented 7 years ago

;)

AlexMulkerrin commented 7 years ago

New codebase has automatic refreshes when window is resized. Best to play in a large window though because map view size is fixed at the moment :P