aboutsummaryrefslogtreecommitdiff
path: root/global.h
diff options
context:
space:
mode:
authorGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-03-11 09:44:43 +0000
committerGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-03-11 09:44:43 +0000
commitf4832349efdf06d8a1a410c636045f505efb52f1 (patch)
treef2958f0e6194a46aa890cfe03a09c737a8afdc20 /global.h
parent285f4f3379a68db34eec86cdc5c8d6f3c5597f5e (diff)
downloadbullet-lab-remix-f4832349efdf06d8a1a410c636045f505efb52f1.tar.xz
Complete and fix Supernova, add several interfaces.
Diffstat (limited to 'global.h')
-rw-r--r--global.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/global.h b/global.h
index 07e54d8..8515de7 100644
--- a/global.h
+++ b/global.h
@@ -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;