Game
After Sanctuary
2 months ago

Devlog #5

It must be nice to be heard.


Hello Sanctuary seekers,

Let's talk about Audio and the way our AI sense the world around them through sound.
All AI in After Sanctuary are capable of hearing sounds coming from the environment whether it's a deer hearing a twig snap or an enemy bandit hearing the sound of gunfire.

Lets walk through how this happens.

Firstly, we have a sound manager.
Other classes can ask the sound manager to play a sound at a position in the world, at a certain volume through the audio source, give it a range in the world (how far away the AI has to be before it won't hear the sound), the game object which made the sound, a sound type, a bool which says should the AI react to this sound, is the sound played in a 3d space or 2d and the max range for audio listeners if it is 3d.

At some point, I'll put all this in it's own struct.
It's not quite the top of my to do list just yet.

soundmanager.png

SoundType is an enum and Noise is a struct.

soundtype.png

We have a sound event which AI can hook into

soundevent.png

When we want to make a noise in the game, we do something like this:

soundcall.png

Which calls this method in the sound manager.

soundmethod.png

InternalPlay() instantiates a sound prefab, sets the parameters of the AudioSource that's attached to it, plays the clip then destroys the prefab once the clip has played.

Once i get time ill pool the prefab that is instantiated to save on garbage collection.

The noise sctuct gets passed into the Emit noise which just invokes the OnNoise(n) event that the AI are hooked into.

The AI hears the noise if it's in range and is supposed to react and carries out what ever behaviour is correct according to context.



0 comments

Loading...

Next up

Devlog #2 World streaming.

Short intro of us πŸ’•βœŒοΈ

We're an eletro duo based in Seoul πŸ‡°πŸ‡· Heavily influenced by the 90s.

Our new album #Xennials is all about the nostalgia of that era πŸ’½ CD listenin πŸ“Ÿ beeper beepin πŸ’Ύ floppy disks floppin days 😎

Stream now! 🎧

https://open.spotify.com/album/3YwWhnHWVy5cA8XOpbaGRA?si=8E9awqU…

πŸ’Did you like the game? A demo is available for free on Steam.

✌️ Thanks for playing IndieGameiacs!

βš™οΈ Free Demo: http://bit.ly/UniDuni

πŸ“Ί Full Video: https://youtu.be/5qEbVXg7GaQ

#steam #uniduni #clops #screenshotsaturday

I-Buki

Mio-Da!

Ibuki Mioda!

Back in my art school days I used to ride the 710 COPSA line from Parque Del Plata to Montevideo almost everyday. This is the Marcopolo Viaggio G4 Mercedes Benz model from the late 80s, one of the older bus models that was running on the line.

a drawing I did because I was boredπŸ˜ͺ. But I love how it turned out.😊

A few screenshots of the places you'll cross in the Demo of Blu. You can play it today on #gamejolt !

Our menu, gathered a huge feedback and positive comments among foreign audience, what you say? Game Steam: https://store.steampowered.com/app/1543090/LiBER/

I thought I would do a quick show and tell, with a 2 min video of the start of the game and some of the game elements, after many many months it is really starting to come together, time to start networking https://gamejolt.com/games/Dungeon_fable/490669