Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I really enjoy some of the free Linux games and just downloaded Cave Story, one of my all-time favorites. However, I can only play the game in full screen, 800X600 Resolution. I was wondering if I could run this program in a window instead of full screen. Is there a command or Unity plugin to do this? Also, would the same work to run SuperTux in a window as well? I'm running 12.04 if that makes any difference. Thanks for your help.

share|improve this question
1  
You might want to edit your title to be more specific to the games in question or edit your question to be more generic. –  coteyr Dec 5 '12 at 2:24
add comment

2 Answers

up vote 1 down vote accepted

This can be configured from within the game itself, usually from the Settings menu. For example, here's how to set windowed mode for SuperTux:

The in-game configuration can be done running the game, then choosing the Options menu. There you can configure: Graphics Mode (OpenGL/SDL), toggle fullscreen mode on/off, Enable or Disable Sound and Music, Show FPS (Frames Per Second) and do a Keyboard Setup (changing what keyboard keys do in the games' action).

share|improve this answer
    
Thanks so much! I also found the one for Cave Story. It came with a configuration program I had to run in Wine. –  ajwhitaker822 Dec 5 '12 at 1:28
add comment

For most games you can find a setting either in the in game menu or in a game specific configuration file, most often located in ~/gamename/ or ~/.config/gamename/. For games where that's not the case there is no clean way to force it into a window, but in some cases one can hack something together. For SDL for example one can force the game into the desired mode by overriding the parameter it supplies to SDL. Some code to do it for SDL applications can be found at:

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.