Update usage and gitignore to not exlude code folders
This commit is contained in:
		
							parent
							
								
									24e17450aa
								
							
						
					
					
						commit
						dbfd932a64
					
				
					 3 changed files with 81 additions and 78 deletions
				
			
		
							
								
								
									
										7
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							|  | @ -1,6 +1,5 @@ | |||
| build | ||||
| maps | ||||
| ttrts | ||||
| build/ | ||||
| maps/ | ||||
| *.user | ||||
| *.sublime* | ||||
| .idea | ||||
| *.idea | ||||
|  |  | |||
							
								
								
									
										26
									
								
								USAGE.txt
									
										
									
									
									
								
							
							
						
						
									
										26
									
								
								USAGE.txt
									
										
									
									
									
								
							|  | @ -8,22 +8,24 @@ SYNOPSYS | |||
| 	ttrts [OPTIONS...] MAPFILE | ||||
| 
 | ||||
| DESCRIPTION | ||||
| 	ttrts is a tiny terminal based RTS where that uses text files as order lists to control it's units. | ||||
| 	ttrts is a tiny terminal based RTS where that uses text | ||||
| 	files as order lists to control it's units. | ||||
| 
 | ||||
| 	This means that any user, program or cat that can read and write to text files can play the game. | ||||
| 	This means that any user, program or cat that can read | ||||
| 	and write to text files can play the game. | ||||
| 
 | ||||
| USAGE | ||||
| 	When invoked, ttrts will set up a full game and output a single file representing the current gamestate into a local directory called ttrts_{GAME_NAME}. | ||||
| 	When invoked, ttrts will set up a full game and output a | ||||
| 	single file representing the current gamestate into a  | ||||
| 	local directory called ttrts_{GAME_NAME}. | ||||
| 
 | ||||
| 	This file can be read in and interpretted by human, robot, or cat. | ||||
| 	ttrts will wait for orders files to be placed in it's current working directory. | ||||
| 	This file can be read in and interpretted by human, robot | ||||
| 	or cat. ttrts will wait for orders files to be placed in  | ||||
| 	it's current working directory. | ||||
| 
 | ||||
| 	File name formats: | ||||
| 	  gamestate   Turn_{TURN_NUMBER}.txt | ||||
| 	  orders      Turn_{TURN_NUMBER}_Team_{TEAM_NUMBER}.txt | ||||
| 
 | ||||
| 	Once orders have been set for each player taking part, ttrts consumes order files, | ||||
| 	calculates new game state and outputs a new file. | ||||
| 	Once orders have been set for each player taking part  | ||||
| 	ttrts will calculate the new game state and output a new  | ||||
| 	gamestate file for the next turn. | ||||
| 
 | ||||
| 	This process repeats until a winner is chosen! | ||||
| 
 | ||||
|  | @ -39,7 +41,7 @@ GAMESTATE FILE FORMAT | |||
| 	   SIZE:[{X},{Y}] | ||||
| 	   TURN:{TURN_NUMBER} | ||||
| 	   ~~~~ | ||||
| 		UNIT:{UNIT_ID} tm:{TEAM_NUMBER} vs:{VISUAL} dr:{DIRECTION(NESW)} ps:[{X},{Y}] | ||||
| 	   UNIT:{ID} tm:{TEAM} vs:{VIS} dr:{DIR(NESW)} ps:[{X},{Y}] | ||||
| 	   ... | ||||
| 
 | ||||
| ORDER FILE FORMAT | ||||
|  |  | |||
|  | @ -14,22 +14,24 @@ static const char* sk_usage = | |||
| "\tttrts [OPTIONS...] MAPFILE\n" | ||||
| "\n" | ||||
| "DESCRIPTION\n" | ||||
| 		"\tttrts is a tiny terminal based RTS where that uses text files as order lists to control it's units.\n" | ||||
| "\tttrts is a tiny terminal based RTS where that uses text\n" | ||||
| "\tfiles as order lists to control it's units.\n" | ||||
| "\n" | ||||
| 		"\tThis means that any user, program or cat that can read and write to text files can play the game.\n" | ||||
| "\tThis means that any user, program or cat that can read\n" | ||||
| "\tand write to text files can play the game.\n" | ||||
| "\n" | ||||
| "USAGE\n" | ||||
| 		"\tWhen invoked, ttrts will set up a full game and output a single file representing the current gamestate into a local directory called ttrts_{GAME_NAME}.\n" | ||||
| "\tWhen invoked, ttrts will set up a full game and output a\n" | ||||
| "\tsingle file representing the current gamestate into a \n" | ||||
| "\tlocal directory called ttrts_{GAME_NAME}.\n" | ||||
| "\n" | ||||
| 		"\tThis file can be read in and interpretted by human, robot, or cat.\n" | ||||
| 		"\tttrts will wait for orders files to be placed in it's current working directory.\n" | ||||
| "\tThis file can be read in and interpretted by human, robot\n" | ||||
| "\tor cat. ttrts will wait for orders files to be placed in \n" | ||||
| "\tit's current working directory.\n" | ||||
| "\n" | ||||
| 		"\tFile name formats:\n" | ||||
| 		"\t  gamestate   Turn_{TURN_NUMBER}.txt\n" | ||||
| 		"\t  orders      Turn_{TURN_NUMBER}_Team_{TEAM_NUMBER}.txt\n" | ||||
| 		"\n" | ||||
| 		"\tOnce orders have been set for each player taking part, ttrts consumes order files,\n" | ||||
| 		"\tcalculates new game state and outputs a new file.\n" | ||||
| "\tOnce orders have been set for each player taking part \n" | ||||
| "\tttrts will calculate the new game state and output a new \n" | ||||
| "\tgamestate file for the next turn.\n" | ||||
| "\n" | ||||
| "\tThis process repeats until a winner is chosen!\n" | ||||
| "\n" | ||||
|  | @ -39,21 +41,21 @@ static const char* sk_usage = | |||
| "\n" | ||||
| "GAMESTATE FILE FORMAT\n" | ||||
| "\tName\n" | ||||
| 		"\t\tTurn_{TURN_NUMBER}.txt\n" | ||||
| "\t   Turn_{TURN_NUMBER}.txt\n" | ||||
| "\tContents\n" | ||||
| 		"\t\t===== {GAME_NAME} =====\n" | ||||
| 		"\t\tSIZE:[{X},{Y}]\n" | ||||
| 		"\t\tTURN:{TURN_NUMBER}\n" | ||||
| 		"\t\t~~~~\n" | ||||
| 		"\t\tUNIT:{UNIT_ID} tm:{TEAM_NUMBER} vs:{VISUAL} dr:{DIRECTION(NESW)} ps:[{X},{Y}]\n" | ||||
| 		"\t\t...\n" | ||||
| "\t   ===== {GAME_NAME} =====\n" | ||||
| "\t   SIZE:[{X},{Y}]\n" | ||||
| "\t   TURN:{TURN_NUMBER}\n" | ||||
| "\t   ~~~~\n" | ||||
| "\t   UNIT:{ID} tm:{TEAM} vs:{VIS} dr:{DIR(NESW)} ps:[{X},{Y}]\n" | ||||
| "\t   ...\n" | ||||
| "\n" | ||||
| "ORDER FILE FORMAT\n" | ||||
| "\tName\n" | ||||
| 		"\t\tTurn_{TURN_NUMBER}_Team_{TEAM_NUMBER}.txt\n" | ||||
| "\t    Turn_{TURN_NUMBER}_Team_{TEAM_NUMBER}.txt\n" | ||||
| "\tContents\n" | ||||
| 		"\t\tORDER:{ORDER_CHAR} id:{UNIT_ID}\n" | ||||
| 		"\t\t...\n" | ||||
| "\t    ORDER:{ORDER_CHAR} id:{UNIT_ID}\n" | ||||
| "\t    ...\n" | ||||
| "\n" | ||||
| "ORDERS\n" | ||||
| "\tF   - Move unit forward one space\n" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue