aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-03-30 13:42:44 +0000
committerGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-03-30 13:42:44 +0000
commit6f6d2d2b4612869aa3b9be0af9a8e1d76182a8dc (patch)
tree70dd8e32f268f4e9c2e92e0967c78e77c7d67d81
parenta54a466252f41004b5199995f9bfda8072f7f09a (diff)
downloadbullet-lab-remix-6f6d2d2b4612869aa3b9be0af9a8e1d76182a8dc.tar.xz
Modify level density test, fix stubbed HGE::System_Launch.
-rwxr-xr-xCHANGELOG.TXT4
-rw-r--r--hge/system.cpp4
-rw-r--r--levels.h17
3 files changed, 20 insertions, 5 deletions
diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT
index caf8588..94242b2 100755
--- a/CHANGELOG.TXT
+++ b/CHANGELOG.TXT
@@ -12,8 +12,10 @@ Pre-Released versions:
Bump version!
New assessment level "density test"...
New assessment level "pinball"...
+Improve density test.
Add screen shot. Press S for a screen shot.
Fix the upside down screen shot output.
+Fix stubbed HGE::System_Launch.
0.9.0-0_PR (b78)
First two assessment levels.
@@ -49,7 +51,7 @@ Add command line argument support. Use "--help" for usage.
Add freetype support to hge. It's still pretty buggy. (and make
the executable extremely big!)
Add experimental support for cross compiling with mingw-w64.
-(Mingw-w64 build might be the official build in the future.)
+(Mingw-w64 build *will* be the official build in the future.)
Fix blinking HangUpText.
Fix crashes in mingw-64 build.
Change numeric characters to monospace.
diff --git a/hge/system.cpp b/hge/system.cpp
index b7c112c..b914566 100644
--- a/hge/system.cpp
+++ b/hge/system.cpp
@@ -636,7 +636,9 @@ bool CALL HGE_Impl::System_Launch(const char *url)
CFRelease(cfurl);
return (err == noErr);
#else
- STUBBED("launch URL");
+ //STUBBED("launch URL");
+ char command[1024];sprintf(command,"xdg-open %s",url);
+ system(command);
return false;
#endif
}
diff --git a/levels.h b/levels.h
index c1a6343..58f0344 100644
--- a/levels.h
+++ b/levels.h
@@ -3865,7 +3865,8 @@ void Levelm2Part14()
}
}
}
-int resvpos;
+int resvpos,rpbcnt;
+double delx;
void Levelm2Part15()
{
frameleft=Infinity;
@@ -3882,7 +3883,7 @@ void Levelm2Part15()
if (towcnt!=0)return ClearAll(false);
if(Current_Position==1)
{
- ++part;tbrk=asssrd1=avacurbrk=0;resvpos=re.NextInt(0,49);
+ ++part;tbrk=asssrd1=avacurbrk=0;resvpos=re.NextInt(0,49);rpbcnt=0;
}
}
void Levelm2Part16()
@@ -3892,11 +3893,21 @@ void Levelm2Part16()
if(tbrk<0)
{
tbrk=0.1-0.05*(assetime/120.0f);if(tbrk<0.05)tbrk=0.05;
+ if(re.NextInt(0,100)==37&&!rpbcnt)
+ {
+ rpbcnt=6;int oldrp=resvpos;
+ for(resvpos=re.NextInt(0,49);abs(resvpos-oldrp)>20||abs(resvpos-oldrp)<5;resvpos=re.NextInt(0,49));
+ delx=re.NextDouble(300,650);
+ }
for(int i=0;i<50;++i)
{
if(abs(i-resvpos)>2)
- CreateBullet2(810,12*i,1+3*assetime/180.0f,0,true);
+ {
+ int pnt=CreateBullet2(810,12*i,1+3*assetime/180.0f,0,true);
+ if(rpbcnt>0)bullet[pnt].limpos=vector2d(delx,12*i);
+ }
}
+ if(rpbcnt)--rpbcnt;
if(resvpos==0)resvpos+=re.NextInt(0,1);
else if(resvpos==49)resvpos+=re.NextInt(-1,0);
else resvpos+=re.NextInt(-1,1);