this post was submitted on 07 Jul 2025
1473 points (99.1% liked)

Microblog Memes

8493 readers
3017 users here now

A place to share screenshots of Microblog posts, whether from Mastodon, tumblr, ~~Twitter~~ X, KBin, Threads or elsewhere.

Created as an evolution of White People Twitter and other tweet-capture subreddits.

Rules:

  1. Please put at least one word relevant to the post in the post title.
  2. Be nice.
  3. No advertising, brand promotion or guerilla marketing.
  4. Posters are encouraged to link to the toot or tweet etc in the description of posts.

Related communities:

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] jsomae@lemmy.ml 91 points 4 days ago (7 children)

Shout out to Castlevania II, where you can hold anywhere from 0 to 256 laurels. Yes, you read that right -- 256, not 255. I inspected RAM to double check. It's a 16-bit word on an 8-bit system with a maximum value of 0x100. They could have used 8 bits instead of 16. But no, they really did choose this arbitrary number.

[–] AnarchistArtificer@slrpnk.net 36 points 4 days ago

"I inspected RAM to double check."

That's an unhinged level of commitment. Respect — I dig it

[–] JackbyDev@programming.dev 9 points 4 days ago (1 children)

I hate this. I love this.

If I ever make a game I might put stuff like this in it.

[–] ouRKaoS@lemmy.today 1 points 3 days ago

Having made a few games back in the day, this isn't something you add on purpose, this is something that you screwed up, are going to "fix later", then realize it's too much hassle to rewrite 45% of your code and you just raise the minimum spec requirements a bit to compensate.

[–] Nalivai@discuss.tchncs.de 8 points 4 days ago (2 children)

Maybe they keep some other data in the same space using bitmask?

[–] jsomae@lemmy.ml 32 points 4 days ago (1 children)

plausible, but my experience from dissecting these kinds of games is that they tend not to be as space efficient as you'd think they could be if they were the kaze emanuar type. The fact that they opted to have 257 distinct values for the laurels suggests to me that they weren't prioritizing space efficiency.

My best (wildly speculative) guess is that a designer, knowing 256 is a common limit, wasn't thinking carefully and said the maximum value should be 256 (instead of 255), and then an overly pedantic coder implemented this to the letter while rolling their eyes.

[–] chimp@sh.itjust.works 13 points 4 days ago

Currently in the industry - it's exactly this. It's a communication issue between the programming team and other teams, where designers freely speak for design, artists freely speak for art, etc. but it's much harder for programmers to speak for implementation since it's usually in reference to somebody else's work, and when designers get offended or defensive or dismissive of the non-designer requesting 256 be changed to 255, then it stops being worth it.

For example, we made an absolutely mint UI backend, it was data driven with editors so anyone could whip up a new UI for the next feature without needing programmers. The design team were like "damn, I hear how complicated this thing was to build, so let's make the programmers lives easier by not using it and only asking for simple bespoke stuff". Telling them "the investment has already been paid for so please use it" was tantamount to telling them how to do their job while being ungrateful they had considered us, furthering the communication breakdown.

Yes I'm bitter and tired. It's easier to use a short for 256 instead of arguing to have my opinion considered

[–] jj4211@lemmy.world 2 points 3 days ago

Even if true, 256 would be a waste of the range. 255 would make sense if trying to stay in one byte, using a whole different data type to get one extra bit just to hold 256 instead of saying "screw it, let's go to 511" even while using other bits.

It's just a very weird thing to do to pick 256 as a value limit back in those days (also oddly specific now, but for different reasons)

[–] Uruanna@lemmy.world 5 points 4 days ago

Sounds like such a flex move

[–] humorlessrepost@lemmy.world 5 points 4 days ago (2 children)

It also has the second best NES soundtrack, after The Guardian Legend.

[–] RizzRustbolt@lemmy.world 3 points 4 days ago

In the top ten, with Blaster Master, and Batman.

[–] jsomae@lemmy.ml 2 points 4 days ago

I've never given TGL a proper listen, though I have the game for NES. Thanks for the recommendation!

[–] SonOfAntenora@lemmy.world 3 points 4 days ago

Read it in the (old) avgn voice...

[–] josefo@leminal.space 1 points 3 days ago (1 children)

how can you hold 0 laurels? that's different from not having laurels?

[–] jsomae@lemmy.ml 3 points 3 days ago

the number of laurels in your inventory is stored as an integer from 0 to 256.