diff options
author | 2014-03-11 09:44:43 +0000 | |
---|---|---|
committer | 2014-03-11 09:44:43 +0000 | |
commit | f4832349efdf06d8a1a410c636045f505efb52f1 (patch) | |
tree | f2958f0e6194a46aa890cfe03a09c737a8afdc20 /global.h | |
parent | 285f4f3379a68db34eec86cdc5c8d6f3c5597f5e (diff) | |
download | bullet-lab-remix-f4832349efdf06d8a1a410c636045f505efb52f1.tar.xz |
Complete and fix Supernova, add several interfaces.
Diffstat (limited to 'global.h')
-rw-r--r-- | global.h | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -105,7 +105,7 @@ public: bulletdir.y=sin(rad); dist=1; } -}bullet[10000]; +}bullet[20000]; /*Something about bullets: //bullettype: //1: player dir-based green bullet @@ -209,12 +209,12 @@ struct Target//An annoying circle void TargGoto(vector2d pos) { double curspd=0.01f; - if (GetDist(pos,targpos)>1)curspd=0.02f;else targpos=pos; - if (GetDist(pos,targpos)>2)curspd=0.1f; - if (GetDist(pos,targpos)>5)curspd=0.5f; - if (GetDist(pos,targpos)>10)curspd=0.75f; - if (GetDist(pos,targpos)>20)curspd=1.0f; - if (GetDist(pos,targpos)>30)curspd=2.0f; + if (GetDist(pos,targpos)>1)curspd=0.25f;else targpos=pos; + if (GetDist(pos,targpos)>2)curspd=0.5f; + if (GetDist(pos,targpos)>5)curspd=1.0f; + if (GetDist(pos,targpos)>10)curspd=2.0f; + if (GetDist(pos,targpos)>20)curspd=3.0f; + if (GetDist(pos,targpos)>30)curspd=4.0f; if (GetDist(pos,targpos)>40)curspd=5.0f; targdir.x=targpos.x-pos.x; targdir.y=targpos.y-pos.y; |