summaryrefslogtreecommitdiff
path: root/data/weapons/creator.cpp~
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2015-12-08 11:54:23 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2015-12-08 11:54:23 +0100
commit34a2dd53faf6c829fc25e3e7e96e55c789578f97 (patch)
tree11f292b19f1590c282b8a33e37e9eb9b118b7ef7 /data/weapons/creator.cpp~
parente3a66514d57ff4acf2f02df7d86bd2cf8be0e730 (diff)
downloadRCade-34a2dd53faf6c829fc25e3e7e96e55c789578f97.tar
RCade-34a2dd53faf6c829fc25e3e7e96e55c789578f97.tar.gz
RCade-34a2dd53faf6c829fc25e3e7e96e55c789578f97.tar.bz2
RCade-34a2dd53faf6c829fc25e3e7e96e55c789578f97.tar.xz
RCade-34a2dd53faf6c829fc25e3e7e96e55c789578f97.zip
Cleanup
Diffstat (limited to 'data/weapons/creator.cpp~')
-rw-r--r--data/weapons/creator.cpp~34
1 files changed, 0 insertions, 34 deletions
diff --git a/data/weapons/creator.cpp~ b/data/weapons/creator.cpp~
deleted file mode 100644
index 796d095..0000000
--- a/data/weapons/creator.cpp~
+++ /dev/null
@@ -1,34 +0,0 @@
1#include <iostream>
2#include <fstream>
3#include <math.h>
4
5using namespace std;
6
7int main()
8{
9 ofstream o;
10 o.open("novaspitter1.txt");
11 o << "Novaspitter 1\n";
12 o << "data/images/empty.bmp\n";
13 o << 8 << '\n';
14 o << 1 << '\n';
15 o << 30 << '\n';
16 int shots = 6;
17 double T = 0.8;
18 double duration = 0.0;
19 double start = 0.7;
20 double speed = 250;
21 int Ncircles = 1;
22 o << shots << endl;
23 for(int i = 0; i < shots; ++i)
24 {
25 o << T << '\n';
26 o << T - start - ((double) i)/((double) shots)*duration-0.0001 << '\n';
27 o << "data/projectiles/psi.txt\n";
28 o << cos(Ncircles*2*M_PI*i/((double) shots))*speed << '\n';
29 o << sin(Ncircles*2*M_PI*i/((double) shots))*speed;
30 if(i != shots-1)
31 o << endl;
32 }
33 o.close();
34}