landgreen / n-gon

2-d physics rogue-lite platformer shooter
https://landgreen.github.io/n-gon/
GNU General Public License v3.0
134 stars 193 forks source link

New gun concept: Magnetorheological ferrofluid, or MRFF #268

Closed 3xionDev closed 2 weeks ago

3xionDev commented 1 month ago

An interesting GUNtech idea, though I suppose it wouldn't really be a range weapon in the sense of a projectile.

See, there's something called magnetorheological fluids, which are basically liquids that become extremely viscous or even solid in the presence of a magnetic field. The only problem is that they don't form spikes inline with the field lines like ferrofluids do, which would be cool as hell. So, combine the two ideas, and you get something that could very conceivably be a sci-fi weapon.

Basically, just have m shoot out a jet of black fluid to the cursor, which stays fixed to m housing. The fluid can be flung around like a flail to damage enemies, but it can also be solidified when right mouse is pressed, causing most of the fluid to be drawn to the tip, making the line of liquid that attaches the fluid to m very thin and causing the fluid at the cursor to become sharp, spiky and rigid.

I'm bad at explaining concepts, so I'll draw up something and post it below, but I feel like this could be a really cool gun to play with.

3xionDev commented 1 month ago

mrff-liquid Page 1 when solidified, the line of fluid connecting the "spike ball" to m does greatly reduced damage than it would when not solidified

AnnonymousNerd87 commented 1 month ago

this would be a full on gun, not just guntech

3xionDev commented 1 month ago

wait yeah thats what i meant

AnnonymousNerd87 commented 1 month ago

aw man, I missed my chance to "eeerm akutchuly..."

AnnonymousNerd87 commented 1 month ago

intentionally misspelled

AnnonymousNerd87 commented 1 month ago

I asked an ai to draw a nerdface emoji saying "eeerm akutchuly..." and it drew this Screenshot 2024-06-04 7 44 54 AM

AnnonymousNerd87 commented 1 month ago

wait nevmind it got better

AnnonymousNerd87 commented 1 month ago

Screenshot 2024-06-04 7 47 06 AM

AnnonymousNerd87 commented 1 month ago

AnnonymousNerd87 commented 1 month ago

it's called perchance.org

3xionDev commented 1 month ago

we seem to have diverged from the topic

3xionDev commented 1 month ago

there would be no range cap to how long it can stretch, but the farther it stretches the thinner it gets and the less damage it does, to discourage killing things from across the map

AnnonymousNerd87 commented 1 month ago

"we seem to have diverged from the topic" XD

On Tue, Jun 4, 2024 at 8:02 AM 3xion @.***> wrote:

there would be no range cap to how long it can stretch, but the farther it stretches the thinner it gets and the less damage it does, to discourage killing things from across the map

— Reply to this email directly, view it on GitHub https://github.com/landgreen/n-gon/issues/268#issuecomment-2147764744, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHEAKNGJ7QLKJIOMBW2D6NTZFXJIZAVCNFSM6AAAAABIYSMU6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBXG43DINZUGQ . You are receiving this because you commented.Message ID: @.***>

3xionDev commented 1 month ago

I mean, we somehow devolved from a new gun to ai-generated nerd emojis, so I'd say that's somewhat of a divergence lmao

3xionDev commented 1 month ago

the only problem is that I'm not sure how well fluid physics would work using matter.js without writing a fluid engine manually just for n-gon

3xionDev commented 1 month ago

@landgreen do you think you'd be able to integrate a fluid-like physics system for this? i'd be willing to help.

AnnonymousNerd87 commented 1 month ago

use langton's ant

On Tue, Jun 4, 2024 at 8:15 AM 3xion @.***> wrote:

the only problem is that I'm not sure how well fluid physics would work using matter.js without writing a fluid engine manually just for n-gon

— Reply to this email directly, view it on GitHub https://github.com/landgreen/n-gon/issues/268#issuecomment-2147794108, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHEAKNB7CV4G3H5MLCQDBHLZFXKZDAVCNFSM6AAAAABIYSMU6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBXG44TIMJQHA . You are receiving this because you commented.Message ID: @.***>

AnnonymousNerd87 commented 1 month ago

it can simulate fluids if you code it right

On Tue, Jun 4, 2024 at 8:31 AM Felix Koenig @.***> wrote:

use langton's ant

On Tue, Jun 4, 2024 at 8:15 AM 3xion @.***> wrote:

the only problem is that I'm not sure how well fluid physics would work using matter.js without writing a fluid engine manually just for n-gon

— Reply to this email directly, view it on GitHub https://github.com/landgreen/n-gon/issues/268#issuecomment-2147794108, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHEAKNB7CV4G3H5MLCQDBHLZFXKZDAVCNFSM6AAAAABIYSMU6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBXG44TIMJQHA . You are receiving this because you commented.Message ID: @.***>

3xionDev commented 1 month ago

that would be hilarious, but langton's ant would probably be one of the least efficient algorithms for fluid simulation, at least for a game like n-gon

AnnonymousNerd87 commented 1 month ago

yeah, but it has been done for both fluid and gas simulation on a large scale. I mean, in the absolute gem Noita, every single pixel is simulated, including gasses, and through some dark witchcraft, I have never once gotten intense lag, even when using tens of thousands of projectiles and particles. Noita doesn't use langton's ant, but it could.

On Tue, Jun 4, 2024 at 9:36 AM 3xion @.***> wrote:

that would be hilarious, but langton's ant would probably be one of the least efficient algorithms for fluid simulation, at least for a game like n-gon

— Reply to this email directly, view it on GitHub https://github.com/landgreen/n-gon/issues/268#issuecomment-2147962494, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHEAKNF5PBE4SRVEOJLJ4K3ZFXUIZAVCNFSM6AAAAABIYSMU6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBXHE3DENBZGQ . You are receiving this because you commented.Message ID: @.***>

AnnonymousNerd87 commented 1 month ago

plus, its better than bogosorting every pixel of fluid/gas

On Tue, Jun 4, 2024 at 10:50 AM Felix Koenig @.***> wrote:

yeah, but it has been done for both fluid and gas simulation on a large scale. I mean, in the absolute gem Noita, every single pixel is simulated, including gasses, and through some dark witchcraft, I have never once gotten intense lag, even when using tens of thousands of projectiles and particles. Noita doesn't use langton's ant, but it could.

On Tue, Jun 4, 2024 at 9:36 AM 3xion @.***> wrote:

that would be hilarious, but langton's ant would probably be one of the least efficient algorithms for fluid simulation, at least for a game like n-gon

— Reply to this email directly, view it on GitHub https://github.com/landgreen/n-gon/issues/268#issuecomment-2147962494, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHEAKNF5PBE4SRVEOJLJ4K3ZFXUIZAVCNFSM6AAAAABIYSMU6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBXHE3DENBZGQ . You are receiving this because you commented.Message ID: @.***>

3xionDev commented 1 month ago

we wouldn't be truly simulating fluid, which is why I said "fluid-like." what I have in mind is more of a glorified softbody structure. it doesn't flow, but it sort of splatters and squishes when it interacts with a rigidbody and stretches thin when it gets longer. and then, of course, it turns into a rigidbody when it solidifies.

AnnonymousNerd87 commented 1 month ago

maybe use a bunch of softbodies with drone-like ai, drones "splatter" when they hit surfaces

On Tue, Jun 4, 2024 at 11:47 AM 3xion @.***> wrote:

we wouldn't be truly simulating fluid, which is why I said "fluid-like." what I have in mind is more of a glorified softbody structure. it doesn't flow, but it sort of splatters and squishes when it interacts with a rigidbody and stretches thin when it gets longer. and then, of course, it turns into a rigidbody when it solidifies.

— Reply to this email directly, view it on GitHub https://github.com/landgreen/n-gon/issues/268#issuecomment-2148185852, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHEAKNBIBEDQY3YMSITGTHLZFYDTXAVCNFSM6AAAAABIYSMU6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBYGE4DKOBVGI . You are receiving this because you commented.Message ID: @.***>

AnnonymousNerd87 commented 1 month ago

they would be connected and filled with black

On Tue, Jun 4, 2024 at 11:49 AM Felix Koenig @.***> wrote:

maybe use a bunch of softbodies with drone-like ai, drones "splatter" when they hit surfaces

On Tue, Jun 4, 2024 at 11:47 AM 3xion @.***> wrote:

we wouldn't be truly simulating fluid, which is why I said "fluid-like." what I have in mind is more of a glorified softbody structure. it doesn't flow, but it sort of splatters and squishes when it interacts with a rigidbody and stretches thin when it gets longer. and then, of course, it turns into a rigidbody when it solidifies.

— Reply to this email directly, view it on GitHub https://github.com/landgreen/n-gon/issues/268#issuecomment-2148185852, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHEAKNBIBEDQY3YMSITGTHLZFYDTXAVCNFSM6AAAAABIYSMU6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBYGE4DKOBVGI . You are receiving this because you commented.Message ID: @.***>

3xionDev commented 1 month ago

if they were all softbodies, the impact would be absorbed and they wouldn't splatter. plus, drones splatter really violently when they crash. this would just spray off a tiny bit of fluid and bend the stream around the object, sort of like multi-articulated appendages like tentacles do.

AnnonymousNerd87 commented 1 month ago

then softbodies mixed with drones with trails, softbodies for the main body, drones for the tiny bit of fluid

On Tue, Jun 4, 2024 at 12:01 PM 3xion @.***> wrote:

if they were all softbodies, the impact would be absorbed and they wouldn't splatter. plus, drones splatter really violently when they crash. this would just spray off a tiny bit of fluid and bend the stream around the object, sort of like multi-articulated appendages like tentacles do.

— Reply to this email directly, view it on GitHub https://github.com/landgreen/n-gon/issues/268#issuecomment-2148207691, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHEAKNBRU3I36IMKMKQBTH3ZFYFJLAVCNFSM6AAAAABIYSMU6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBYGIYDONRZGE . You are receiving this because you commented.Message ID: @.***>

3xionDev commented 1 month ago

and that is too overly complicated and not modular enough. this thing needs to be able to move quickly and also have some wobble to it. literally all it needs to be is a softbody tentacle. no need for creating different drone variants, mini-softbodies, etc just for this

AnnonymousNerd87 commented 1 month ago

well you said softbodies wouldn't work

On Tue, Jun 4, 2024 at 1:15 PM 3xion @.***> wrote:

and that is too overly complicated and not modular enough. this thing needs to be able to move quickly and also have some wobble to it. literally all it needs to be is a softbody tentacle. no need for creating different drone variants, mini-softbodies, etc just for this

— Reply to this email directly, view it on GitHub https://github.com/landgreen/n-gon/issues/268#issuecomment-2148343368, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHEAKNFJJQBV3XUXIO3CK4DZFYN6DAVCNFSM6AAAAABIYSMU6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBYGM2DGMZWHA . You are receiving this because you commented.Message ID: @.***>

3xionDev commented 1 month ago

I said a group of softbodies wouldn't work because the combined number of drones would distribute the impact across more area and mute the splash. A single, large softbody would probably work because it's affecting the whole structure at once.

AnnonymousNerd87 commented 1 month ago

ich bin kruger als du. You don't know how soft bodies work, a softbody cannot be singular, because a softbody is made of many rigidbodies which affect each other to varying degrees, some bending more than others, all influencing each other.

On Tue, Jun 4, 2024 at 1:29 PM 3xion @.***> wrote:

I said a group of softbodies wouldn't work because the combined number of drones would distribute the impact across more area and mute the splash. A single, large softbody would probably work because it's affecting the whole structure at once.

— Reply to this email directly, view it on GitHub https://github.com/landgreen/n-gon/issues/268#issuecomment-2148363736, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHEAKNACLGLNSQT4TDSYMITZFYPRTAVCNFSM6AAAAABIYSMU6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBYGM3DGNZTGY . You are receiving this because you commented.Message ID: @.***>

4kh00 commented 1 month ago

Would this be an ammo weapon, an energy weapon, or something else?

AnnonymousNerd87 commented 1 month ago

I feel like this would be energy, for the magnetic fields, because you don't have to keep pumping out more fluid, you just need to control the field

On Tue, Jun 4, 2024 at 2:10 PM 4kh00 @.***> wrote:

Would this be an ammo weapon, an energy weapon, or something else?

— Reply to this email directly, view it on GitHub https://github.com/landgreen/n-gon/issues/268#issuecomment-2148421329, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHEAKNDW3GECVY3P3MNNP3DZFYUK3AVCNFSM6AAAAABIYSMU6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBYGQZDCMZSHE . You are receiving this because you commented.Message ID: @.***>

4kh00 commented 1 month ago

Yes. Maybe hitting a mob drains energy, or amount of fluid scales with energy?

AnnonymousNerd87 commented 1 month ago

sounds good to me, what does exion think

On Tue, Jun 4, 2024 at 2:20 PM 4kh00 @.***> wrote:

Yes. Maybe hitting a mob drains energy, or amount of fluid scales with energy?

— Reply to this email directly, view it on GitHub https://github.com/landgreen/n-gon/issues/268#issuecomment-2148434685, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHEAKNCUILPCY6BHPGPCWKLZFYVRFAVCNFSM6AAAAABIYSMU6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBYGQZTINRYGU . You are receiving this because you commented.Message ID: @.***>

3xionDev commented 1 month ago

a softbody is made of many rigidbodies which affect each other to varying degrees, some bending more than others, all influencing each other.

I know this, I'm saying that we can't have a big mass of softbodies comprising the final structure, it would be ideal to have a singular softbody comprising the final thing. I refer to softbody as a singular entity because it's simply easier to write "single softbody" than to say "multiple rigid-and-softbody structures combined into the final shape"

3xionDev commented 1 month ago

I feel like this would be energy, for the magnetic fields, because you don't have to keep pumping out more fluid, you just need to control the field

Actually, I was thinking both. Ammo would not specifically be needed to use the gun, and it would mainly be energy consumed to use it, but ammo would increase the amount of fluid available to use and decrease the stream's damage dropoff with distance, essentially extending the fluid's range. to prevent this from getting out of hand we'd either have to add an ammo cap or add a range cap.

3xionDev commented 1 month ago

the whole concept is that ammo would not be required to use the gun, and that the gun would have a moderate damage range without any ammo, just that ammo allows more fluid to be supplied, allowing the fluid to be thicker over longer distances

AnnonymousNerd87 commented 1 month ago

Maybe just make it like harpoon, with bonuses for ammo but the main requirement is energy

On Tue, Jun 4, 2024 at 2:43 PM 3xion @.***> wrote:

the whole concept is that ammo would not be required to use the gun, and that the gun would have a moderate damage range without any ammo, just that ammo allows more fluid to be supplied, allowing the fluid to be thicker over longer distances

— Reply to this email directly, view it on GitHub https://github.com/landgreen/n-gon/issues/268#issuecomment-2148464294, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHEAKNBMVLRCP3L4LUAACODZFYYJTAVCNFSM6AAAAABIYSMU6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBYGQ3DIMRZGQ . You are receiving this because you commented.Message ID: @.***>

AnnonymousNerd87 commented 1 month ago

it uses ammo but when you stop the fluid returns to you and refunds it

On Tue, Jun 4, 2024 at 2:50 PM Felix Koenig @.***> wrote:

Maybe just make it like harpoon, with bonuses for ammo but the main requirement is energy

On Tue, Jun 4, 2024 at 2:43 PM 3xion @.***> wrote:

the whole concept is that ammo would not be required to use the gun, and that the gun would have a moderate damage range without any ammo, just that ammo allows more fluid to be supplied, allowing the fluid to be thicker over longer distances

— Reply to this email directly, view it on GitHub https://github.com/landgreen/n-gon/issues/268#issuecomment-2148464294, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHEAKNBMVLRCP3L4LUAACODZFYYJTAVCNFSM6AAAAABIYSMU6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBYGQ3DIMRZGQ . You are receiving this because you commented.Message ID: @.***>

4kh00 commented 1 month ago

That is in like with what I'd think

kgurchiek commented 1 month ago

That gun sounds really fun and cool, if it isn't added I might make a mod for it

3xionDev commented 1 month ago

it uses ammo but when you stop the fluid returns to you and refunds it

yes, that's the idea

3xionDev commented 1 month ago

That gun sounds really fun and cool, if it isn't added I might make a mod for it

huge w

creator1116 commented 1 month ago

maybe this could be a foam upgrade

AnnonymousNerd87 commented 1 month ago

sounds great, foam needs more giant death tentacles to spice things up

On Wed, Jun 5, 2024 at 8:23 AM Dragon Fire @.***> wrote:

maybe this could be a foam upgrade

— Reply to this email directly, view it on GitHub https://github.com/landgreen/n-gon/issues/268#issuecomment-2150346831, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHEAKNG52UUTCHA3U7ESAMLZF4UOLAVCNFSM6AAAAABIYSMU6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJQGM2DMOBTGE . You are receiving this because you commented.Message ID: @.***>

AnnonymousNerd87 commented 1 month ago

(exion this would be a good time to close this issue)

On Wed, Jun 5, 2024 at 8:33 AM Felix Koenig @.***> wrote:

sounds great, foam needs more giant death tentacles to spice things up

On Wed, Jun 5, 2024 at 8:23 AM Dragon Fire @.***> wrote:

maybe this could be a foam upgrade

— Reply to this email directly, view it on GitHub https://github.com/landgreen/n-gon/issues/268#issuecomment-2150346831, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHEAKNG52UUTCHA3U7ESAMLZF4UOLAVCNFSM6AAAAABIYSMU6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJQGM2DMOBTGE . You are receiving this because you commented.Message ID: @.***>

kgurchiek commented 1 month ago

I'd wait for landgreen to respond first

Masbirb commented 1 month ago

We could make this be part of the only current death tentacles, extruder. Energy that you gain over max results in a ball forming around you then when you use your field you either fire a ton of extruder tentacles, a large extruder tentacle, or a extruder tentacle that randomly forks based on which one was easiest to code

AnnonymousNerd87 commented 1 month ago

I'm not going to speak for him, but landgreen works tons, both on teaching and this indie side project, so these giant tentacle monsters should be confined to mods for now.

On Wed, Jun 5, 2024 at 8:37 AM Cornbread2100 @.***> wrote:

I'd wait for landgreen to respond first

— Reply to this email directly, view it on GitHub https://github.com/landgreen/n-gon/issues/268#issuecomment-2150377441, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHEAKNFPIGH2P27673XZCODZF4WDBAVCNFSM6AAAAABIYSMU6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJQGM3TONBUGE . You are receiving this because you commented.Message ID: @.***>

3xionDev commented 3 weeks ago

(exion this would be a good time to close this issue)

I'm going to wait until there is some correspondence from landgreen. I will determine when I will close the issue.