[ 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.

/jp/ - Otaku Culture

Search:


View post   

>> No.44908679 [View]
File: 174 KB, 383x449, abandoned_project_50_or_so.png [View same] [iqdb] [saucenao] [google]
44908679

>>44899426
>attempt
Yep, that's definitively the word.
I have very basic math knowledge and meh coding skills, but it also depends a bit on what you want to make.

I guess random patterns inside a square or a line would be the easiest to make defining min-max positions and using rng.

For circular patterns the easiest way imo is to have the variables position, spawnpoints, rotation: were you iterate spawnpoints in a for loop and then rotate the position by i*rotation to get the spawn position of each bullet.
Afterwards you can figure out how to center and aim it, add another value like spin to rotate the pattern over time, add functions that change the spin over time.

Spawning "invisible enemies" and shooting from there is also very helpful for patterns, just remember to check if they attract homing shots to not have the cranberry trap problem.

Depending on what your using instead of having a function like rotate(vector) you can just look up some code for it and copy paste it, as long as you know what the code does you don't have to understand every single line.

I might not be too reliable but if you have any doubts or if my explanation was too vague feel free to ask.
And remember: We conjure the spirits of computers with our spells.

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