blob: 796d09508d3e575e59ae3c01b4f114a02edfab42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#include <iostream>
#include <fstream>
#include <math.h>
using namespace std;
int main()
{
ofstream o;
o.open("novaspitter1.txt");
o << "Novaspitter 1\n";
o << "data/images/empty.bmp\n";
o << 8 << '\n';
o << 1 << '\n';
o << 30 << '\n';
int shots = 6;
double T = 0.8;
double duration = 0.0;
double start = 0.7;
double speed = 250;
int Ncircles = 1;
o << shots << endl;
for(int i = 0; i < shots; ++i)
{
o << T << '\n';
o << T - start - ((double) i)/((double) shots)*duration-0.0001 << '\n';
o << "data/projectiles/psi.txt\n";
o << cos(Ncircles*2*M_PI*i/((double) shots))*speed << '\n';
o << sin(Ncircles*2*M_PI*i/((double) shots))*speed;
if(i != shots-1)
o << endl;
}
o.close();
}
|