1 coin base = 65536 in memory
10 coin base = 256 in memory
100 coin base = 1 in memory
math operations:
256^N
1 coin = 256^2
10 coins = 256^1
100 coins = 256^0
🦊
1 coin base = 65536 in memory
10 coin base = 256 in memory
100 coin base = 1 in memory
math operations:
256^N
1 coin = 256^2
10 coins = 256^1
100 coins = 256^0
🦊
for 100 coins, the value in memory is 1.
if you have 1 coin, it will save the value 1 in memory, and 2 coins will be the value 2 in memory.
and finally, if you have 101 coins, the value will be 100 coins (1) + 1 coin (65536) = 65537 in memory. (4/?)
for 100 coins, the value in memory is 1.
if you have 1 coin, it will save the value 1 in memory, and 2 coins will be the value 2 in memory.
and finally, if you have 101 coins, the value will be 100 coins (1) + 1 coin (65536) = 65537 in memory. (4/?)
the answer is, that the number 65536 (value of 1 single coin) is actually 256*256 (value of 10 coins in memory by the power of two), the logical answer is that... (3/?)
the answer is, that the number 65536 (value of 1 single coin) is actually 256*256 (value of 10 coins in memory by the power of two), the logical answer is that... (3/?)
if you have 10 coins = 256, if you have 20 coins = 512, and so on.
what if you have 11? it is 10 (256) + 1 (65536), making it 65792 registered in the game memory... (2/?)
if you have 10 coins = 256, if you have 20 coins = 512, and so on.
what if you have 11? it is 10 (256) + 1 (65536), making it 65792 registered in the game memory... (2/?)
Ads is weird, use adblock guys.
Now I need a shower after that website, I feel dirty.
Ads is weird, use adblock guys.
Now I need a shower after that website, I feel dirty.