|
Some questions |
psycho
Member #5,042
September 2004
|
OK, I have prepared some questions which all have something to do with the new release of Snake 256 (available under arcade\snakes under allegro.cc): 1. Do you know where to find some music and/or sound effects(screaming, ...) which fit to the game? Thanks. |
Simon Parzer
Member #3,330
March 2003
|
1) You can always try http://www.modarchive.com. I would use Google if I were you. |
Tobias Dammers
Member #2,604
August 2002
|
1. Use the mighty google. There are tons of free music tracks and samples out there; whether they suit your needs and quality standards, is a different issue though. --- |
Michael Faerber
Member #4,800
July 2004
|
Quote:
2. On (SuSE) Linux the game creates and reads the configuration file at/from /root.
It's generally considered as bad practice to create config files in another dir than /etc for system-wide config files and /home/<username> for user config files. Also, on recent Windows systems you should NOT write your config files to the program's directory. When Vista (the new Windows version) will be released, you will have troubles if you ignore this advice. I have solved the problem the way that I usually create a config file directory where all config files are written to. My function for getting the path for the config files:
And the code for creating paths on Windows and other systems: bool als::create_directory(const string& directory) { #ifdef ALLEGRO_WINDOWS return CreateDirectory(directory.c_str(), NULL); #else return mkdir(directory.c_str(), S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH); #endif } A bit more code needed by the code above:
I hope this helps you making a better program! -- |
Tobias Dammers
Member #2,604
August 2002
|
Quote: When Vista (the new Windows version) will be released, you will have troubles if you ignore this advice. Way to go microsoft! --- |
A J
Member #3,025
December 2002
|
Quote: When Vista (the new Windows version) will be released, you will have troubles if you ignore this advice. Safety for application data. An excellent model... bring it on M$! ___________________________ |
|