From f4832349efdf06d8a1a410c636045f505efb52f1 Mon Sep 17 00:00:00 2001 From: "chirs241097@gmail.com" Date: Tue, 11 Mar 2014 09:44:43 +0000 Subject: Complete and fix Supernova, add several interfaces. --- global.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'global.h') 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; -- cgit v1.2.3