Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I made a "Jack of All Trades" AI NPC that actually learns how you fight (Playable Browser Prototype)

A topic by ahadprogamer created 1 day ago Views: 59 Replies: 2
Viewing posts 1 to 3
(1 edit)

Imagine a Dynamic NPC That Truly Learns

Let’s say you want an NPC that can talk, navigate, fight, or even become a loyal companion for players—but you don't want to rely on rigid, predictable programming. For my future games, I want to create AI agents that feel entirely natural. I’m moving away from hardcoded NPCs that blindly execute scripts and endlessly repeat the same pre-written lines.

Instead, I am building an AI that dynamically adapts.

Breaking the Predictable Boss Pattern

In most modern games, bosses and NPCs follow strict, hardcoded behavior trees. Once a player observes and memorizes these patterns, the challenge fades. I want the combat in my future games to break this mold. By eliminating recognizable patterns, the enemy stays unpredictable and engaging.

To achieve this, I am developing a smart AI system capable of:

  • Real-time Observation: Analyzing the player's movement and positioning.
  • Adaptive Learning: Dynamically figuring out where, when, and how to counter-attack based on the player's habits.
  • Contextual Evolution: Fighting smarter as the battle progresses, actively learning about its enemy.

Overcoming Hardware Constraints

Building and running a powerful AI model requires massive VRAM and computational power—resources I currently don't have. Despite these hardware limitations, I have managed to scrape together a working prototype that achieves this goal!

Current Prototype Status: Because it is running on limited hardware, it is still a work in progress. It currently suffers from some latency (response delay), and its physical movement is limited to basic navigation. However, the foundational logic is alive and working.

Test the Browser Demo Now!

I have launched a live, browser-based demo featuring this integrated AI so you can experience it firsthand. Because it runs directly in your browser, there is nothing to download.

The AI features a flexible, multimodal communication system. You can mix and match how you interact based on your preferences:

Your Input Response Setting What You Get
Voice (Mic) or Text Text Only Text response
Voice (Mic) Voice TTS Audio voice reply
Text Voice TTS Voice TTS

Watch the Preview

If you prefer not to play the browser demo yourself, I have uploaded a gameplay video below. You can watch the AI in action and judge its current capabilities for yourself!

I would love to hear your feedback, thoughts, or suggestions on how to improve this system!

(+1)

thats really interesting

i made a small mistake here if your input is text and you select voice tts response than you will get voice response not text response basically the response you select you will get the response hope you try it to see.