* Default aspect ratio is rest to auto detect.
* Fixed numbering in INSTALL.
SVN-Revision: 5725
SuperTux, install those first, then try running CMake again. See below
for instructions on how to change to standard options.
SuperTux, install those first, then try running CMake again. See below
for instructions on how to change to standard options.
- 2. Type `make' to start the build process.
+ 4. Type `make' to start the build process.
- 3. Type `make install' to install the programs and any data files and
+ 5. Type `make install' to install the programs and any data files and
documentation. (You should be a root user on Linux systems.
You can become a root user with the `su' command or by using
`sudo make install')
documentation. (You should be a root user on Linux systems.
You can become a root user with the `su' command or by using
`sudo make install')
- 4. The game should work now and you can remove the source directory.
+ 6. The game should work now and you can remove the source directory.
You can customize the build process by setting additional options for CMake.
The easiest way to do this is to use run `ccmake ..' instead of `cmake ..'
You can customize the build process by setting additional options for CMake.
The easiest way to do this is to use run `ccmake ..' instead of `cmake ..'
- aspect_width = 4;
- aspect_height = 3;
+ aspect_width = 0; // auto detect
+ aspect_height = 0;
enable_script_debugger = false;
enable_script_debugger = false;
" -d, --default Reset video settings to default values\n"
" --disable-sfx Disable sound effects\n"
" --disable-music Disable music\n"
" -d, --default Reset video settings to default values\n"
" --disable-sfx Disable sound effects\n"
" --disable-music Disable music\n"
- " --help Show this help message\n"
- " --version Display SuperTux version and quit\n"
+ " -h, --help Show this help message\n"
+ " -v, --version Show SuperTux version and quit\n"
" --console Enable ingame scripting console\n"
" --noconsole Disable ingame scripting console\n"
" --show-fps Display framerate in levels\n"
" --no-show-fps Do not display framerate in levels\n"
" --record-demo FILE LEVEL Record a demo to FILE\n"
" --play-demo FILE LEVEL Play a recorded demo\n"
" --console Enable ingame scripting console\n"
" --noconsole Disable ingame scripting console\n"
" --show-fps Display framerate in levels\n"
" --no-show-fps Do not display framerate in levels\n"
" --record-demo FILE LEVEL Record a demo to FILE\n"
" --play-demo FILE LEVEL Play a recorded demo\n"
+ " -s, --debug-scripts Enable script debugger.\n"
for(int i = 1; i < argc; ++i) {
std::string arg = argv[i];
for(int i = 1; i < argc; ++i) {
std::string arg = argv[i];
- if(arg == "--version") {
+ if(arg == "--version" || arg == "-v") {
std::cout << PACKAGE_NAME << " " << PACKAGE_VERSION << std::endl;
return true;
}
std::cout << PACKAGE_NAME << " " << PACKAGE_VERSION << std::endl;
return true;
}
for(int i = 1; i < argc; ++i) {
std::string arg = argv[i];
for(int i = 1; i < argc; ++i) {
std::string arg = argv[i];
+ if(arg == "--help" || arg == "-h") {
print_usage(argv[0]);
return true;
} else if(arg == "--fullscreen" || arg == "-f") {
print_usage(argv[0]);
return true;
} else if(arg == "--fullscreen" || arg == "-f") {
config->fullscreen_width = 800;
config->fullscreen_height = 600;
config->fullscreen_width = 800;
config->fullscreen_height = 600;
- config->aspect_width = 4;
- config->aspect_height = 3;
+ config->aspect_width = 0; // auto detect
+ config->aspect_height = 0;
} else if(arg == "--window" || arg == "-w") {
config->use_fullscreen = false;
} else if(arg == "--window" || arg == "-w") {
config->use_fullscreen = false;
throw std::runtime_error("Need to specify a demo filename");
}
config->record_demo = argv[++i];
throw std::runtime_error("Need to specify a demo filename");
}
config->record_demo = argv[++i];
- } else if(arg == "-d") {
+ } else if(arg == "--debug-scripts" || arg == "-s") {
config->enable_script_debugger = true;
} else if(arg[0] != '-') {
config->start_level = arg;
config->enable_script_debugger = true;
} else if(arg[0] != '-') {
config->start_level = arg;