summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/main.cpp b/main.cpp
index 95ab127..5ee222c 100644
--- a/main.cpp
+++ b/main.cpp
@@ -72,50 +72,6 @@ class BulletPattern1 : public BulletPattern {
}
};
-void create_pattern1(unsigned int base) {
- for(int j = 0; j < 8; j++) {
- for(float i = 0; i < M_PI; i += 0.1) {
- bullets_queue.push(BulletAdder(base + j * 400 + (unsigned int)(i*100),
- Bullet(
- Vector3(50.0 + sinf(j % 2 ? M_PI_2 + i : M_PI - i + M_PI_2) * 9, 80 + cosf(M_PI_2 + i) * 10, 0),
- Vector3(sinf(j % 2 ? M_PI_2 + i : M_PI - i + M_PI_2) / 150.0, -0.01, 0),
- 5)));
- }
- }
-}
-
-void create_pattern2(unsigned int base) {
-
-}
-
-void create_pattern2_2(unsigned int base) {
- for(float i = 0; i < M_PI * 64; i += 0.1) {
- bullets_queue.push(BulletAdder(base + (unsigned int)(i*40),
- Bullet(
- Vector3(50.0 + cosf(i) * 5,
- 50.0 + sinf(i) * 5, 0),
- Vector3(cosf(i + i / 50.0) / 100.0, sinf(i + i / 50.0) / 100.0, 0),
- 5)));
- }
-}
-
-void create_pattern3(unsigned int base) {
- for(float i = 0; i < 101; i++) {
- bullets_queue.push(BulletAdder(base + i,
- Bullet(
- Vector3(i, 90.0 - sinf(i), 0),
- Vector3(cosf(i) / 100.0, (-5.0 + sinf(i)) / 200.0, 0),
- 5)));
- }
-}
-
-void create_bullets() {
- //create_pattern1(50);
- //create_pattern2(9000);
- //create_pattern3(12000);
- //create_pattern2_2(100);
-}
-
bool fullscreen = false;
void toggle_fullscreen() {
fullscreen = !fullscreen;
@@ -157,8 +113,6 @@ int main(int, char**) {
glShadeModel(GL_SMOOTH);
- create_bullets();
-
std::vector<BulletPattern*> patterns;
patterns.push_back(new BulletPattern());