An RTS style game?
Been making a weird game with chef, forgot to deploy it for a while, but basically you gotta buy cells to increase your energy generation, and use energy to buy more cells, except every time your cell cost keeps getting exponentially higher. You lose if you cant buy a new cell within 10 seconds. The aim of the game is to get the other person to go bankrupt in a way.
If you wanna try playing it lol: https://chef-rts.dracodev.me/
11 Replies
Looks cool, is the repo private? Would love to see how it's build
Yep, here it is: https://github.com/Draco1js/chef-rts
GitHub
GitHub - Draco1js/chef-rts
Contribute to Draco1js/chef-rts development by creating an account on GitHub.
I will say tho, there's probably better more optimal ways to make games with convex like this 😅

This was just from running maybe 4-5 games with alot of clicking
Again, this was made with chef, more to check out how something like this would even work, building it by hand would definitely be more optimal, and there's probably alot of de-duplication that is needed judging by the insane number of calls here
ai is likely to just use the .filter a bit too much, sometimes it will use one index but not a multiple field index unless it has one in the existing code to reference etc. Games need the most optimization.
True
@Tiger 🐅 does this help?
Interesting
yeah crazy how unscalable code ai will generate. here is my convex.mdc - a production-grade template i'll announce soon
imma look at this soon
im building with convex, by writing convex code
btw