Browse Source

Add custom keybindings to bosshrush

Mario Forzanini 2 years ago
parent
commit
da821317af
1 changed files with 2 additions and 1 deletions
  1. 2 1
      bossrush.cpp

+ 2 - 1
bossrush.cpp

@@ -57,7 +57,8 @@ int main(int argc,char** argv)
 	int refresh_time=100;          				//how long the program waits before refreshing the screen
 	int chflag=0;						//cheat flag: 0=normal, 1=cheats allowed.
 	int num=0;
-	int commands[CMD_NUM]={'a','d','w','s','p',' ','l','m','q'};
+	int commands[CMD_NUM];
+	read_commands(commands); //0:left,1:right,2:up,3:down,4:pause,5:shoot1,6:shoot2,7:mute,8:quit
 	
 	WINDOW *Score,*BossHP;