Fe₂🦀₃⋅H₂🦀 on Nostr: I'm having to rework my old 2D game code functions and the biggest issue I'm ...
I'm having to rework my old 2D game code functions and the biggest issue I'm encountering is that previously all functions took 1D acceleration vectors for physics updates and now they have to take a 1D vector OR a 2D plane. I'm having to go in and make new types with templates and all the math operators have to treat them both interchangeably.
Honestly debating if it would be easier to just make two versions of each function but that would be

Published at
2025-05-30 21:39:48 UTCEvent JSON
{
"id": "f512731b8b907e821c3a0accb2033f99af3d1913fd8419888938707f37a139ee",
"pubkey": "26976d1f3f3270311c86a59315751d66bd770aa35a929529271fca721afee1af",
"created_at": 1748641188,
"kind": 1,
"tags": [
[
"emoji",
"niggabroken",
"https://clubcyberia.co/emoji/moreniggaemotes/niggabroken.gif"
],
[
"proxy",
"https://clubcyberia.co/objects/6bbde8d1-ea3a-44bd-a0b8-6db634aba264",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.mostr.pub"
]
],
"content": "I'm having to rework my old 2D game code functions and the biggest issue I'm encountering is that previously all functions took 1D acceleration vectors for physics updates and now they have to take a 1D vector OR a 2D plane. I'm having to go in and make new types with templates and all the math operators have to treat them both interchangeably. \n\nHonestly debating if it would be easier to just make two versions of each function but that would be :niggabroken:",
"sig": "ecd4ea3303705cbd0965e9cc8a4746aa25ae1909072b79a9ed989ae73b952037d01fb952b9b00c097f2ea732bd56999868b243de8f779dd4517c6550e7fd5803"
}