The Following 6 Users Say Thank You to szopin For This Useful Post: | ||
![]() |
2011-08-02
, 03:51
|
Posts: 50 |
Thanked: 120 times |
Joined on Apr 2010
@ Poland
|
#2
|
The Following 6 Users Say Thank You to trompkins For This Useful Post: | ||
![]() |
2011-08-02
, 08:16
|
Posts: 2,076 |
Thanked: 3,268 times |
Joined on Feb 2011
|
#3
|
![]() |
2011-08-02
, 16:00
|
Posts: 50 |
Thanked: 120 times |
Joined on Apr 2010
@ Poland
|
#4
|
Neat. Did you manage to get Jacob's Matrix running? It's crying SDL 1.3 for me, but it would break the keyboard compatibility from my experience.
![]() |
2011-08-07
, 07:54
|
Posts: 2,076 |
Thanked: 3,268 times |
Joined on Feb 2011
|
#5
|
Yeah, so... I also ported this one
If anyone wants a somewhat packaged (by hand, so no filesize calculation) version -- have at it.
![]() |
2011-09-07
, 20:53
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#6
|
The Following User Says Thank You to AapoRantalainen For This Useful Post: | ||
![]() |
2011-09-07
, 21:53
|
Posts: 2,076 |
Thanked: 3,268 times |
Joined on Feb 2011
|
#7
|
![]() |
2011-09-08
, 11:19
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#8
|
Failed to load ../music/azogs_march_2.ogg, error Module format not recognized
/* gcc SDL_PlayMusic.c `sdl-config --cflags --libs` -lSDL_mixer -o player */ #include "stdlib.h" #include "SDL/SDL.h" #include "SDL/SDL_mixer.h" int musicPlaying = 0; //Is the music playing, or not? void musicFinished() { //Music is done! musicPlaying = 0; } int main(int argc, char *argv[]) { if (argc<2) { printf("Give the filename (wav/ogg/mp3/mid) \n"); return 1; } Mix_Music *music; //Pointer to our music, in memory int audio_rate = 22050; //Frequency of audio playback Uint16 audio_format = AUDIO_S16SYS; //Format of the audio we're playing int audio_channels = 2; //2 channels = stereo int audio_buffers = 4096; //Size of the audio buffers in memory //Initialize SDL audio if (SDL_Init(SDL_INIT_AUDIO) != 0) { printf("Unable to initialize SDL: %s\n", SDL_GetError()); return 1; } //Initialize SDL_mixer with our chosen audio settings if(Mix_OpenAudio(audio_rate, audio_format, audio_channels, audio_buffers) != 0) { printf("Unable to initialize audio: %s\n", Mix_GetError()); return 1; } music = Mix_LoadMUS(argv[1]); if(music == NULL) { printf("Unable to load music file: %s\n", Mix_GetError()); return 1; } //Play music! if(Mix_PlayMusic(music, 0) == -1) { printf("Unable to play music file: %s\n", Mix_GetError()); return 1; } //The music is playing! musicPlaying = 1; //Make sure that the musicFinished() function is called when the music stops playing Mix_HookMusicFinished(musicFinished); //Wait for the music to stop while(musicPlaying) { //Do nothing for a bit SDL_Delay(100); } //Release the memory allocated to our music Mix_HaltMusic(); Mix_FreeMusic(music); //Need to make sure that SDL_mixer and SDL have a chance to clean up Mix_CloseAudio(); SDL_Quit(); //Return success! return 0; }
The Following User Says Thank You to AapoRantalainen For This Useful Post: | ||
![]() |
2011-09-08
, 16:09
|
Posts: 2,076 |
Thanked: 3,268 times |
Joined on Feb 2011
|
#9
|
The Following User Says Thank You to szopin For This Useful Post: | ||
![]() |
2011-09-08
, 16:24
|
Posts: 839 |
Thanked: 3,386 times |
Joined on Mar 2009
|
#10
|
(http://www.zincland.com/7drl/kobold/)
You are a brave adventurer seeking the gold to repay a few minor debts you incurred when last in the city. You have reason to believe that these kobolds hide some of the noble metal in their caves. Gold is, of course, of no use to such vermin. So by recovering it you are doing the economy-at-large (and yourself-in-particular) a great favour.
While you have no ranged weapon or healing potions on hand, experience has taught you that you should be able to acquire what you need from the kobolds. You doubt you'll need a melee weapon upgrade - your sword could kill a kobold five times over with its weakest hit!
The music is Azog's march II by jice, which can be found at the Rogue Bard. (Sadly, doesn't work, if anyone knows how to fix this pls let me know)
The features of Smart Kobold are:
* Amulet of True Sight allows you to scout out terrain.
* Ring of Searching speeds trap detection.
* Kobolds in this dungeon are smarter than your average kobold.
Made compatible with libtcod 1.5.1 that was ported by Aapo. No sound. Limit number of sparks or turn them off for better performance. VI keys and/or arrows to move. Extract on ext2/3 partition, run from bin directory.
Happy slaying.