Jump to content

MARKET BRAWL - a 3D musou-style brawler where Granny fights 500 merchants at once (three.js, InstancedMesh)


oreumgames
 Share

Recommended Posts

Hi all,

This one is a crowd brawler about a grandma doing her kimchi shopping. The cabbage costs too much, so she fights her way through eight market alleys with a green onion, a fly swatter and a back scratcher, against 150 to 500 merchants per alley and a shop owner boss at the end of each. The prizes are things like 500 won off cabbage, and the whole run saves her 4,300 won.

MARKET BRAWL crowd

Tech, since this is a dev forum: three.js, no engine on top. The characters are built from primitives in code as clay dolls, no model files. Hundreds of merchants on screen means every merchant type is drawn as InstancedMesh, split into five batches per type so that knocked out ones can drop out cheaply. The first build took about three seconds to start because of how geometry was merged, and fixing the batching brought it down to about one. The battle music is generated in code as Korean trot, and the hit sounds are Web Audio.

MARKET BRAWL tonic shop boss

The hardest sound was the flurry of hits during a special: the hits sounded too weak at first, then the roll was too slow, and it took both fixes before the slaps sounded like a drum roll instead of a typewriter. It runs on PC and on phones held sideways, in six languages, with nothing to install. Feedback is welcome, and thanks for looking.

https://oreumgames.com/en/games/halmae/

Made by a very small indie team in Korea.

Link to comment
Share on other sites

Building the clay dolls from primitives in code is a neat call, no model files to wait on at all. I'm curious how the instanced batches hold up on a mid-range phone when an alley is at full 500 merchant chaos, and whether the bosses stay instanced or switch to normal meshes. The typewriter to drum roll fix for the hit sounds made me laugh, that is exactly the kind of thing you only notice on the third pass. Saving 4,300 won on kimchi cabbage is a great premise.

Link to comment
Share on other sites

Thanks for reading it that closely.

To be honest, the 500 is the total for the alley, not the number on screen at once. Merchants keep pouring in as the others go down, and each merchant type is capped at 44 on screen. Each type is five instanced meshes (body, two arms, two legs), so an alley with two types is about ten draw calls for the whole crowd, however many are standing.

The bosses are not instanced. There is only one at a time, so it is the same doll geometry scaled up as normal meshes, with the prop in its hand as a small group. That made the boss-only moves much easier to animate.

For weaker devices the game measures the frame rate for the first few seconds of a fight. If it is under about 42 fps, it lowers the pixel ratio and halves the shadow map size. I have not measured it on a range of mid-range phones, so if it stutters on yours I would like to hear which one.

And yes, the 4,300 won is the whole point. Glad it landed.


I also have a game coming to Steam on December 17. I would be grateful if you took a look at it too.
https://store.steampowered.com/app/5484800

Link to comment
Share on other sites

Capping each type at 44 on screen is a smart way to keep draw calls flat however big the crowd gets, I had assumed all 500 were standing at once. Dropping the pixel ratio and shadow map after a few seconds of frame rate sampling is a nice cheap fallback too, players won't even notice. Thanks for the detail, and good luck with the launch.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...