hi guys,
i am trying to code something that looks like a smooth scrolling floor-casting effect (just only horizinal stripes).
seems i have problems with the mod operator and atm no idea, how to calculate the correct rect-high (should be smaller, yet more far away from the eye)
any idea, how to solve this problem? thanks
// t == timer
for (int i = 7; i > 0; --i)
drawRect( 0, 60+pow(i,2) - t*9 % 10, 150, i )