summaryrefslogtreecommitdiff
path: root/application.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'application.cpp')
-rw-r--r--application.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/application.cpp b/application.cpp
index 75fbb44..c2f5f71 100644
--- a/application.cpp
+++ b/application.cpp
@@ -24,10 +24,10 @@ class BulletPattern1 : public BulletPattern {
int j = 0;
for(float i = 0; i < M_PI; i += 0.1, j++) {
- bullets[j*4] = 50.0 + sinf(!reverse ? M_PI_2 + i : M_PI - i + M_PI_2) * 9;
- bullets[j*4 + 1] = 80 + cosf(M_PI_2 + i) * 10;
- bullets[j*4 + 2] = sinf(!reverse ? M_PI_2 + i : M_PI - i + M_PI_2) / 150.0;
- bullets[j*4 + 3] = -0.01;
+ bullets[j*4] = 0.5 + sinf(!reverse ? M_PI_2 + i : M_PI - i + M_PI_2) * 0.09;
+ bullets[j*4 + 1] = 0.8 + cosf(M_PI_2 + i) * 0.1;
+ bullets[j*4 + 2] = sinf(!reverse ? M_PI_2 + i : M_PI - i + M_PI_2) / 15000.0;
+ bullets[j*4 + 3] = -0.0001;
}
};
void update(unsigned int time, unsigned int step) {
@@ -55,10 +55,10 @@ class BulletPattern2 : public BulletPattern {
int k = 0;
for(int j = 0; j < 8; j++) {
for(float i = 0; i < M_PI; i += 0.1, k++) {
- bullets[k*5] = 50.0 + sinf(j % 2 ? M_PI_2 + i : M_PI - i + M_PI_2) * 9;
- bullets[k*5 + 1] = 80 + cosf(M_PI_2 + i) * 10;
- bullets[k*5 + 2] = sinf(j % 2 ? M_PI_2 + i : M_PI - i + M_PI_2) / 150.0;
- bullets[k*5 + 3] = -0.01;
+ bullets[k*5] = 0.5 + sinf(j % 2 ? M_PI_2 + i : M_PI - i + M_PI_2) * 0.09;
+ bullets[k*5 + 1] = 0.8 + cosf(M_PI_2 + i) * 0.1;
+ bullets[k*5 + 2] = sinf(j % 2 ? M_PI_2 + i : M_PI - i + M_PI_2) / 15000;
+ bullets[k*5 + 3] = -0.0001;
bullets[k*5 + 4] = base + j * 400 + i * 100;
}
}