Considering I’m still learning all this stuff (let’s pretend life is not a never ending learning process)
Yesterday I learned that “550/413 = 1” and it took a while to find why, until I found a post at the unity3d forum that said something about ‘Integer division’…
‘huh? integer division? what would be so special about it?’
To be short and fast, someone decided that if both operands are an integer, that means you only want the integer part of the division and so the program drops the decimal part of it.
Which is just…counter intuitive, to say the least, especially because when you write ‘screen_ratio = Screen.width / Screen.height’ the last thing on your mind is ‘oh, both operands are integers’
Solution (AFAIK) stick a (float) in there, as in:
Before: screen_ratio = Screen.width / Screen.height;
After: screen_ratio = (float)Screen.width / Screen.height;
So, any progress on the game?
Yes…I’ve been spending hours looking at a big checkered box.
As can be seen, buggy, but it kinda works.
Buggy…sometimes it ‘forgets’ to adjust mouse sensitivity. That and it sometimes zooms into ‘the grey world’ as can be seen in the video (that grey thing is not a video glitch…) the biggest WTF? of that is that not even the crosshair gets rendered…but overall it’s working well enough, so I nominate it as an official Alpha version of the aiming system.