linleyh / liberation-circuit

Trapped in a hostile computer system, you must make a way out - RTS/coding game
GNU General Public License v3.0
382 stars 40 forks source link

[Suggestion] Adjust size for Retina screen? #19

Closed dillera closed 7 years ago

dillera commented 7 years ago

Is there a way to scale out the resolution? The game is tiny on a OSX Retina Screen.

Also trying to quit via ESC seems to crash the game. I can CMD-TAB into the shell and kill the shell process and recover, however it would be nice to cleanly exit the game via ESC/Yes.

linleyh commented 7 years ago

Is there a way to scale out the resolution? The game is tiny on a OSX Retina Screen.

You can adjust the resolution by editing init.txt, although there are limits (I think the maximum is 1920x1080). If your screen can do lower resolutions, you may be able to get the game looking better by setting true_fullscreen and also setting display_w and display_h to a resolution supported by your monitor. This game's graphic style doesn't benefit from super-high resolutions all that much.

Unfortunately the text is all in bitmap fonts, so it doesn't scale.

Also trying to quit via ESC seems to crash the game. I can CMD-TAB into the shell and kill the shell process and recover, however it would be nice to cleanly exit the game via ESC/Yes.

Hm. When you press Esc a text box should come up giving the choice of exit/cancel; if you click "exit" it should exit to the system. What point does it crash at for you?

dillera commented 7 years ago

Yes, I get the Dialog Box for Yes/No. at that point the cursor detaches, I see both a frozen game cursor and the Mac Cursor and I can no longer click in the game window. It may not be crashed, but I can't get in the game screen again to move and select Y/N.

I'm able to CMD-TAB back into my shell and CTRL-C and end the process/game.

alexgleith commented 7 years ago

I'm on OS X and can exit fine with escape.

It's very hard to play with the tiny fonts, though.

I guess it's a hard thing to do, but adding a vector font that scales is pretty important!

Fun game so far =).

linleyh commented 7 years ago

Yes, I get the Dialog Box for Yes/No. at that point the cursor detaches, I see both a frozen game cursor and the Mac Cursor and I can no longer click in the game window. It may not be crashed, but I can't get in the game screen again to move and select Y/N.

Thanks; I'll have a look at the exit window code to see if I can find anything that may be causing this.

On the font size problem - I think vector fonts would be a challenge, but I'll look at the code again to work out if I can at least provide one or more larger bitmap fonts as an option.

linleyh commented 7 years ago

I can't find anything obvious in the code that could be causing the exit screen to lock up. One possibility is that the game is losing track of the mouse's position for some reason - in case this is the problem, I've added keyboard shortcuts for the two buttons: x for Exit, c for Cancel.

dillera commented 7 years ago

Ok this works perfectly fine on my MBA 11" (non-retina).

No issues with ESC and quitting.

So i'm closing this, it was prob something with my work mac and having 3 monitors.

pedro-w commented 7 years ago

I also tried to reproduce this (Mac Mini, 10.12.3) and was not able to.