// setting the sound volume according to the distance
// to the player
float xdistance = fabs(Sector::current()->player->get_pos().x - get_pos().x);
float ydistance = fabs(Sector::current()->player->get_pos().y - get_pos().y);
// the classic pythagoras...
float distance = (sqrt(xdistance*xdistance+ydistance*ydistance));
// compute volume based on distance (32 turned out to be a good number)
float volume = MIX_MAX_VOLUME - (int)(distance/(MIX_MAX_VOLUME/32));
if (volume < 0) volume = 0;
if (volume > MIX_MAX_VOLUME) volume = MIX_MAX_VOLUME;
Mix_Chunk* soundToPlay = IDToSound(SND_SKID); // use existing sound-file to
// (to save disk memory and work + sounds pretty good)
Mix_VolumeChunk(soundToPlay, (int)volume);
SoundManager::get()->play_sound(soundToPlay);
onpon4 {l Wrote}:There is no way a platformer is ever going to be playable by blind people. Never mind environmental sounds; that's just one part of what blind people depend on to navigate in real life, and it's not sufficient on its own. Either you need to be able to do something like echolocation (in any direction), or you need to be able to use your sensation of touch. Neither of these are possible with modern video games. It's unfortunate, but the only way a blind person is ever going to be able to enjoy any video game is if it's some sort of basic puzzle or board game with accessibility support, or if it's some kind of game specifically designed to be played with no graphics (either text-based, or specifically audio-based). Complex action games like SuperTux are not ever going to be accessible to blind people in the foreseeable future. Heck, even simple action games like Pong are not going to be playable by blind people in the foreseeable future.
MCMic {l Wrote}:I’ve seen a public talk by a blind gamer and he was playing some complicated stuff.
onpon4 {l Wrote}:MCMic {l Wrote}:I’ve seen a public talk by a blind gamer and he was playing some complicated stuff.
And all of it is either entirely text-based or entirely audio-based. Thank you for proving my point.
There is no way a platformer is ever going to be playable by blind people
MCMic {l Wrote}:One of them is Doom with modifications to be audio-based.
You said:There is no way a platformer is ever going to be playable by blind people
This is false.
brmbrmcar {l Wrote}:Where is the SuperTux 3D source code though?
Users browsing this forum: Bing [Bot] and 1 guest