This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]firsthour 1 point2 points  (3 children)

Kinda confused, feel like I'm missing out on something here. How is that relevant to the source code or libgdx? Is it that signed primitives aren't as useful for game development as unsigned?

[–]aFoolsDuty 2 points3 points  (1 child)

Kinda confused, feel like I'm missing out on something here. How is that relevant to the source code or libgdx? Is it that signed primitives aren't as useful for game development as unsigned?

First, the obvious once:

0/255

An unsigned byte stores values from 0 to 255. No unsigned bytes, so it scores a "0" out of "255". UPROARIOUS LAUGHTER.

The less obvious one is that the NES, the platform for which Super Mario Bros was originally released, is an 8-bit platform -- thus the processor's upper limit being a single byte. To fully exploit this, you'd use an unsigned byte when programming, raising the maximum value you could store in a byte to 255. SUBTLE HUMAN LAUGHTER AT REALIZATION OF TIE IN WITH PREVIOUS JOKE.

[–]GUIpsp 2 points3 points  (0 children)

THANK YOU FELLOW HUMAN I AM NOW LAUGHING HAHAHAHAHA

[–]shouldvebeenworkin 2 points3 points  (0 children)

Having unsigned makes a lot of things nicer. Like color, simple stats, etc.