Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
manwe150
5mo ago
0 comments
Share
Dividing by 5 or 2, respectively, are integers, if the game developers wanted them to be. More so because the actual units of ammo need to be integers if they are to render as full bullets each
0 comments
default
newest
oldest
shultays
5mo ago
Or more generalized "ammo += (maxAmmo * percentageToFill) / 100"
j
/
k
navigate · click thread line to collapse