[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/vr/ - Retro Games

Search:


View post   

>> No.3636880 [View]
File: 82 KB, 1920x1080, Screenshot_Doom_20161125_224041.png [View same] [iqdb] [saucenao] [google]
3636880

Okay dumb DECORATE math question here:
I'm trying to spawn a ring of x projectiles, x being any possible number (below 360). But sometimes it appears as if it's missing out on spawning projectiles or my math is dumb.

If you replace [n] with say 10 or 4 it works perfectly fine. but if you use something like 11 it starts getting funky. Is it due to 360 not dividing cleanly?
here's the code:
http://pastebin.com/QDWcHPfV

Navigation
View posts[+24][+48][+96]