Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

This feedback means a lot coming from the maker of that insane submarine racer game (like how did you even get the competing AI to work? Was it a preplanned route or was it an actual ML model that you trained?) Just don't look at the spaghetti code for my game, and you'll be fine...


1.6k lines of JS in a single file ;(

(+1)

Spaghetti code is the bane of us all, and I would think that mine is just as bad if not worse!!

Yeah the AI is actually really simple, its just the same code as the player sub, but it follows a "target point" instead! This target point is just a PathFollow3D node(what it does is pretty self-explanatory, it follows a path). As the AI gets closer to the target point, it moves further along the path, and the cycle continues!!

The reason it doesn't just move along a path is cause I wanted it to be a bit dynamic if the player sub crashes into it(wobbles and eventually re-aligns itself).

I thought about godot rl-agents for actually training it, but the last time I checked(a few years back tbf), it wasn't as stable and you would have to ask players to run python in their terminal which was ABSOLUTELY not game jam friendly!