• Register

Demox is to be an action-adventure game in which the player will take on the role of a small demon, forced to destroy the human realm but after several years of fighting finally had enough of it and need to put his best efforts into finding a way back to his beloved underworld.

His demon masters does not take kindly to his actions though, and pits his former allies against him.

  • View media
  • View media
  • View media
  • View media
  • View media
  • View media
Post article RSS Articles

Demox #6: New AI Sensors

News

DYNAMIC POINT SYSTEM BEHAVIOUR

I’ve talked about the DPBS earlier already, if not you can find the post HERE, the AI in Demox will continuously evaluate their current situation and perform actions relevant to the conditions of said situation.
A new behaviour has been added to this system, to equip items found near the AI agent and to throw the equipment if it’s beneficial for the AI agent.

Clip showcasing both new AI hearing sensor, aswell as AI item useage behaviour

A quite simple behaviour but it opens up for more combat challenges, since AI who can collect weapons will increase their damage output. Also, if the AI can throw the weapon they can do so if the player tries to run away from them- giving them a ranged attack opportunity.

SITUATIONAL AWARENESS

Furthermore, I wanted my AI to be a bit more aware of their surroundings, earlier the player could run and jump around right behind the AI and they wouldn’t notice a thing- two new sensors have been implemented, namely, ”Smell Sensor” and ”Sound Sensor”. Two components that simulate exactly what they sound like.

SMELL SENSOR

The Smell sensor is not used by all AI, at first I implemented it only for the Maradeur monster since it has no eyes. Another primary way of detecting hostiles was required so the smell sensor felt appropriate. Recently I’ve also used it for other creatures to some extent.

The way it works is that characters in the game feed the game master logic with some information at regular intervals. First, their own smell– some AI can determine what creature they’re facing by their smell. Second, a value to determine how far the character’s smell can be detected is sent. Information about the current area the character is in is sent aswell and the world position of the character when the smell data was registered.

Area and Character smell volumes

The Maradeur

The idea is that some areas with strong smells should cloak a character’s smell- not completely but for a pre-defined percent of the character’s scent range.

An example is in an area with very strong smells, a character who has a scent range of 8 meters would receive a 75% smell-cloak benefit, resulting in a reduced scent range of 2 meters, therefore making it alot harder for other AI to detect by smell. This can be seen in action in the attached Twitter-post, the red circles represent the player character’s scent range. When entering different area volumes ( colored boxes ) the size of those red circles are reduced.

As can be seen in the video the trail of smell information left behind the player shrink over time.

So in order for the AI smell sensor to make use of this information it must first be collected from the Game Master, all registered smell information is filtered to find only information relevant to the AI, ie. smell data with a location reference within x meters of the AI’s world position.

The ”x meters” is the smell sensors detection range, while the detection range is not printed in the video shown here it can still be noticed since the AI does not have to be inside the red circles to start investigating a smell. This is because only the sensors detection range volume have to intersect with the smell information’s volume, not the character itself.

sa

SOUND SENSOR

The sound sensor was implemented since I found it weird that as the player you could jump and run around right behind an enemy and they’ld be completely clueless about what was going on behind their back. All AI characters in the game now use sound sensors, essentially it work the same way as my smell sensor– characters and actions happening in the game feed the game master with data containers holding information about the sound: noise radius (volume), origin (friendly, wildlife, hostile, combat, environment, unknown) and world position.

The AI regularly check the noises registered within the range that they can hear and depending on how the AI character is set up it will interact with the noise.

Combat sounds will make all combatant characters investigate, while non-combatants will get scared, try to hide, or run away from the sound. Hostile sounds ( primarily monster voices & footsteps ) will agitate friendly AI, and scare most wildlife AI, vice verca for friendly sounds, wildlife sounds ( animal voices & footsteps ) is ignored by friendly AI and agitates some of the hostile AI characters. Environment and unknown-flagged sounds depend alot on what type of sound is registered, but these two sound types are either ignored or investigated.


The video to the left display a Maradeur trying to investigate the sound sources created by the player character.

That's about all regarding the new sensors, but as a bonus I'm throwing in a sketch. I've been scribbling some on the story and world background during the summer, including various human and monster races, more on that in a post coming in the future though!

c zulmundMonk

Demox #Vacation

Demox #Vacation

News 1 comment

Per usual during the summer I'm alot less productive with my projects, and this year is no different- but...

Demox #5 - Destruction

Demox #5 - Destruction

News 5 comments

For those of you who’ve either played my previous game or have seen my previous dev logs regarding Demox, it should come as no surprise that there is...

Demox #4 - Water Behaviour

Demox #4 - Water Behaviour

News 4 comments

Welcome back to another log entry of Demox! Today I’m going to talk about the work I’ve done for water interaction.

Demox #3 - AI Introduction

Demox #3 - AI Introduction

News

Welcome back for another Demox log entry!This time I’m going to talk some more about the AI for the game and what I aim to achieve- or atleast what...

Post comment Comments
booman
booman - - 3,651 comments

A new game??? Awesome! I was hoping you would create something fresh and new.
Keep up the hard work... following now!
Are you planning to release a Linux version just like Loot Burn Kill Repeat?

Reply Good karma Bad karma+2 votes
Kakburk Creator
Kakburk - - 61 comments

Hello again! Thanks for the follow, and it's nice to see you lurking around my pages again ;)
Considering how, more or less, effortless it was to build a Linux version I see no reason not to. ( So yes, there'll be a Linux version ^__^)

Reply Good karma+2 votes
booman
booman - - 3,651 comments

I was just surprised to find your new game... I just stumbled on it. You may want to advertise it on your Loot Burn Kill Repeat page. You will gain more watchers.

I'll post it on Reddit as well.
I love your development style and sci-fi/horror based games.
Keep up the amazing work!

Reply Good karma Bad karma+2 votes
Kakburk Creator
Kakburk - - 61 comments

I know '._. Marketing my projects is sort of my achilles heel, I'm having a hard time finding time to advertise- but I try to do it as often as possible But needless to say, there's a whole lot of room for improvements xD

Thanks! And thanks for helping me out! :)

Reply Good karma+2 votes
booman
booman - - 3,651 comments

No problem as always. I love RPGs and top-down action games... horror themes are always welcome as well!

Keep developing and let me know if you need a tester for your Linux ports.

Reply Good karma Bad karma+2 votes
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account:

X

Latest posts from @crumblingames

Adding some basic mechanics, such as reloading :) #indiegamedev #gamedev #indiegames #animation #lowpoly T.co

Jan 7 2023

New small LBKR (spin-off) side-project. #indiegame #IndieGameDev #gamedevelopment #lowpoly #videogames T.co

Jan 6 2023

Solotility 1.3.118 update released. #indiegamedev #indiedev Lootburnkillrepeat.wordpress.com

Sep 19 2022

v1.3.108 of Solotility just released! #indiedev #indiegamedev Lootburnkillrepeat.wordpress.com

Jul 7 2022

New version of Solotility available now #indiegamedev #solodev Lootburnkillrepeat.wordpress.com

May 29 2022

Update released for Solotility :) #indiedev Lootburnkillrepeat.wordpress.com

Dec 21 2021

New version of Solotility available! #indiedev #programing #coding #indiegamedev Lootburnkillrepeat.wordpress.com

Nov 12 2021

So, apparently slope-sliding is a thing so I decided to add it to Demox :P #indiegamedev #indiegames #videogamesT.co

Nov 5 2021

Some early work from the first map of Demox. #indiegamedev #indiegames #Blender3d #b3d #madewithunity #unity3d T.co

Nov 2 2021

Might need to study foxes, I'm not convinced that this is a behaviour common to them... #indiegamedev #indiegamesT.co

Oct 26 2021