8Bit on Nostr: Why make functions for everything when you can put everything into setters and ...
Why make functions for everything when you can put everything into setters and getters?
Legitimately all game settings I made so far are applied/read by changing variables.
It looks wonky to read, but it made the settings UI REALLY simple to code.
Published at
2024-12-21 10:50:46Event JSON
{
"id": "10e7acf011e3676e5fac7a9c1f8e8ac35983dcedfc517fc3e7ec8bc83b5c51af",
"pubkey": "ad4a7283879c2927e8546ae65273cfdee982acb9bc646f0014a37d61f899c484",
"created_at": 1734778246,
"kind": 1,
"tags": [
[
"imeta",
"url https://cdn.masto.host/mastodongamedevplace/media_attachments/files/113/690/416/844/060/885/original/3a1d6d9d8a659ae0.png",
"m image/png",
"dim 1013x528",
"blurhash U04VE=^-mmI8%1x]a1M{Mdxuozr^s9%MayR6"
],
[
"proxy",
"https://mastodon.gamedev.place/users/memoriesin8bit/statuses/113690427173557114",
"activitypub"
]
],
"content": "Why make functions for everything when you can put everything into setters and getters?\n\nLegitimately all game settings I made so far are applied/read by changing variables. \nIt looks wonky to read, but it made the settings UI REALLY simple to code.\n\nhttps://cdn.masto.host/mastodongamedevplace/media_attachments/files/113/690/416/844/060/885/original/3a1d6d9d8a659ae0.png",
"sig": "9cfcc14a7aeeeda4016f6a3ebff7b878fe2ec3909ea6a332887223698ec61f8031c6868c5e244c77f5dbe0b58b5cadbe90117dbb0ce73c0b4bc511e03d9ae1e7"
}