Dark Bit Factory & Gravity
PROGRAMMING => General coding questions => Topic started by: va!n on December 05, 2021
-
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 )
-
i changed the idea a bit, so i finally created and released this 140 char DWITTER entry...
https://www.dwitter.net/d/24500
-
That looks quite effective.
-
thanks