More Patterns

What am I even doing?

squares

squares

STOP

STOP

Well that was kind of fun.  It’s something like this… I realize it’s not at all useful without context but deal with it

if (timer [5] == 0) {
timer [5] = 1;
} else {
timer [5] = 0;
}
for(int i = 0; i < sides; i++) {
float sideOffset = ((float)i/(float)sides) * 360;

for(float j = 1; j < segs; j++) {
float segOffset = ((float)j / (float)segs) * sideSize;
float segOffsetRadian = segOffset * (Mathf.PI / 180f);
bg.CreateSpeedShot((int)timer [5],epos,ppos,speeds,times,sideOffset + segOffset, spd / Mathf.Cos (segOffsetRadian));
bg.CreateSpeedShot((int)timer [5],epos,ppos,speeds,times,sideOffset – segOffset, spd / Mathf.Cos (segOffsetRadian));
}
}

Bullets radiate in a circle around a source; their speeds are adjusted so they come to form a polygonal shape.  The number of sides and number of bullets per side is arbitrary.  I should make something like that Mystic Square spell from IN.  Or even super hexagon type thing.  Is it bad if I admit to copying? It’s more like inspiring really

Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s