You SUCK at blogging consistently….
I know. It’s been several weeks since my last post. Did some soul searching about demos, AI, and the future of GameDev – then got back to work!
I HAVE BIG UPDATES!!!
We have a UI – I’m working on animations now, as a matter of fact.
We have a complete game loop – you can launch the game, navigate through the menus, choose a mode, and play an entire game – brawls, minigames, results…all of it!
I’m aiming to release a local multiplayer demo mid December – with a couple of Network play stress tests in Jan.
BOTS – WITH BRAINS!!
Let’s say I hand you a controller right as Barn Brawl is counting down to start – 3, 2, 1 – the whistle blows and you’re over here saying:
Hey! What do I do?!?!
I’d hurriedly give you a rundown of how to Barn Brawl:
- Till Soil
- Plant Seeds
- Harvest Crops
- Throw Them in the Shipping Bin
- Profit!
Oh yeah…fight – sorry, forgot to mention that one! (Just as I smack you and steal your stuff.)
When I started working on multiplayer game design years ago, I didn’t want to do the usual AI thing – everyone uses NavMesh, a pathfinding solution, and does something like a behavior tree or needs calculation to run a scripted action. It leads to predictable behavior and boring bots that you can trick and beat (unless you program around all of this with endless options, sensors, or “cheating bots” that can see and do things players can’t (Mario Kart, anyone?)
There had to be a better way. So I did what I always do: I looked to the past for inspiration…specifically, a piece of my childhood that I always wanted. A Multitap!
This thing was a miracle of 1980s engineering. It took signals for 4 controllers and routed them through the 2 ports on the front of your NES. You even got turbo toggles for shooter games…GENIUS!
So I designed a system that syncs network transport and controller input the same way the NES Multitap did – but I put 8 controllers into one pipe, added lag compensation (thanks, Photon Fusion!)…and made EVERYONE IN THE GAME use it.
Human players have their controls routed and sent over the network; Bots do the exact same thing…the host receives and handles the input, Fusion does the magic, and everyone sees lag free gameplay. It also means bots are controlled by the host, and host migration happens at the flip of a switch. (but I digress)
So BotBrain is designed to control like a human – next, I gave it “senses” and “personality,” too. Each bot looks around, picks a job, then moves and presses buttons through the same controls you use. Say it spots a loose crop nearby and a ripe one across the field. It weighs what each is worth against how long it’ll take to get paid. If it sees you headed for the same goal, it will even dash to beat you there! If time is running out, it might even try a las tminute hail mary toss toward the Shipping Bin to score a few final points!
My favorite detail is what happens after it presses the button. A bot can walk up to a crop, swing, and miss. It checks whether the harvest actually happened. If it didn’t, it can try a different angle or go find something else to do. That distinction matters when three other farmers are entitled to the very same carrot. We’ve got difficulty levels built in – and I’ve been tuning the bots to beat me (and I made the game!!)
I mentioned personalities, right?? The Farmer has reason to stick around and work the field. The Brawler is happy to pick a fight there. The Thief would prefer a quick payday, especially if somebody else already did the harvesting. I turned on the little labels over their heads during testing so I could tell who was making trouble, and added RNG and odds-based personality selection to keep things interesting. Now the walk to the shipping bin can be the most dangerous part of farming…
Farmer, Troll and Thief
Three personalities in one patch of dirt. The Troll and Thief are on the left, with the Farmer farther up the row.
Minigames!!
I took inspiration from some of my favorite party games for this one – you’re inside a barn factory, with conveyors running down either side of the platform. You can see what the place makes as soon as the machinery hoists the broad side of a barn over your head (it’s really not the broad side, but I love a good pun). The panel has cutouts that you may or may not see depending on the camera angle…the cutouts project shadows onto the floor. Pick a shape, get underneath it, and when the wall comes down your head should poke through the hole (you hope). Easy enough. Now put eight farmers up there and give them permission to shove.
There’s a specially designed BotBrain for this – one that can be a bit “territorial” when it comes to “its space.” The goal is, of course, to survive the drop. As time goes one, walls drop faster, holes get smaller…
So I get shoved off the platform and I just sit there?
Oh, you get a seat – with a cannon attached to it!!! Surviving a drop round earns points. From the sidelines, landing a barrel, crate, or hay bale on somebody earns a point, too. The bot that shoved you out is still up there, by the way.
PetSoccer
I promise I’ll come up with a better name for this one. This one is not as polished…It’s basically Rocket League riding Donkeys right now. Two teams; one giant soccer ball with floaty / bouncy physics. Run into the ball to dribble, dash into it for a harder kick, or dash jump to launch it.
BotBrains will choose between positions based on what’s needed – though I really need to work on their ability to score. Making the ball so floaty messed up the shot prediction and timing…still work to do!
You’ll have to forgive my screenshots here – the camera wasn’t set yet – had it on an ultrawide view so I could see the physics…you can’t even see the Donkeys…they’re cute and animated thanks to the insanely talented Suriyun!
There are some interesting physics working behind the scenes and forces that hit you depending on how many folks are fighting over and hitting the ball. Still working on ways to make this one more fun…also, I hate invisible walls (and this has them for now).
AI on the Blog…
I did want to mention that I used my AI assistant (of course I named him JARVIS) to take screenshots. That matters to some folks, apparently?? I know some folks are staunchly against AI, but in this case, it keeps me from having to stage scenes – I was able to get more pics, video, and content to post for you here – so I think it’s a good thing! I’m still the idiotic human writing this – and creating this wacky game!! 🙂
64 wishlists!
There were 61 outstanding wishlists in my September DevLog. Today there are 64. If one of those is yours, thank you! It means a lot to know somebody wants to play this thing. Wishlist Barn Brawl on Steam!









