generated from sigonasr2/CPlusPlusProjectTemplate
	Build with optimization flags on
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
		
							parent
							
								
									46b113d3bb
								
							
						
					
					
						commit
						79922e43b4
					
				| @ -1,3 +1,5 @@ | |||||||
| build.sh | build.sh | ||||||
| commit.sh | commit.sh | ||||||
|  | lines.sh | ||||||
|  | temp | ||||||
| web.sh | web.sh | ||||||
|  | |||||||
							
								
								
									
										14
									
								
								C++/scripts/lines.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										14
									
								
								C++/scripts/lines.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,14 @@ | |||||||
|  | #Returns the line counts of your project. | ||||||
|  | #C++ | ||||||
|  | shopt -s extglob | ||||||
|  | ls -1 @(*.h|*.cpp) > temp | ||||||
|  | while read a; do | ||||||
|  |   if [ "$a" != "pixelGameEngine.h" ] && [ "$a" != "soundwaveEngine.h" ] && [ "$a" != "splash.h" ]; | ||||||
|  |   then | ||||||
|  |     echo -e "$a\n" >> temp2 | ||||||
|  |   fi | ||||||
|  | done < temp | ||||||
|  | wc -l $(cat temp2) | ||||||
|  | 
 | ||||||
|  | rm temp | ||||||
|  | rm temp2 | ||||||
| @ -1,3 +1,5 @@ | |||||||
| build.sh:530634457ea9041267c05d4ced95eee1  - | build.sh:530634457ea9041267c05d4ced95eee1  - | ||||||
| commit.sh:d03a46e721060c22ccb146e19d27e70a  - | commit.sh:d03a46e721060c22ccb146e19d27e70a  - | ||||||
|  | lines.sh:3b907786f7fc9204025993016c9080de  - | ||||||
|  | temp:d41d8cd98f00b204e9800998ecf8427e  - | ||||||
| web.sh:3dcc2fe7e036359eedd257a864e9a1e1  - | web.sh:3dcc2fe7e036359eedd257a864e9a1e1  - | ||||||
|  | |||||||
							
								
								
									
										0
									
								
								C++/scripts/temp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								C++/scripts/temp
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										4
									
								
								object.h
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								object.h
									
									
									
									
									
								
							| @ -20,7 +20,7 @@ class Object{ | |||||||
| 		vd2d pos; | 		vd2d pos; | ||||||
| 	public: | 	public: | ||||||
| 		int id; | 		int id; | ||||||
| 		Animation*spr; | 		Animation*spr;	 | ||||||
| 		int frameIndex=0; | 		int frameIndex=0; | ||||||
| 		int frameCount=0; | 		int frameCount=0; | ||||||
| 		int animationSpd=12; //How many frames to wait between each frame. Setting to 0 pauses the animation.
 | 		int animationSpd=12; //How many frames to wait between each frame. Setting to 0 pauses the animation.
 | ||||||
| @ -177,6 +177,6 @@ class TrashCan_Obj : public Object{ | |||||||
| 	DynamicObject(TrashCan_Obj) | 	DynamicObject(TrashCan_Obj) | ||||||
| 	Interaction Interact()override{ | 	Interaction Interact()override{ | ||||||
| 		frameIndex=1; | 		frameIndex=1; | ||||||
| 		return {{"You dig around the trash can.","Nope! Just looks like good ol' trash."}};} | 		return {{"You dig around the trash can.","Nope! Just looks like plain ol' trash."}};} | ||||||
| }; | }; | ||||||
| #endif | #endif | ||||||
							
								
								
									
										2
									
								
								sig
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								sig
									
									
									
									
									
								
							| @ -3,7 +3,7 @@ export AUTO_UPDATE=true | |||||||
| source utils/define.sh | source utils/define.sh | ||||||
| 
 | 
 | ||||||
| define PROJECT_NAME "C++ProjectTemplate" | define PROJECT_NAME "C++ProjectTemplate" | ||||||
| define CUSTOM_PARAMS "-std=c++17 -lX11 -lGL -lpthread -lpng -lstdc++fs -lpulse -lpulse-simple" | define CUSTOM_PARAMS "-std=c++17 -lX11 -lGL -lpthread -lpng -lstdc++fs -lpulse -lpulse-simple -O3 -s -DNDEBUG" | ||||||
| define LANGUAGE "C++" | define LANGUAGE "C++" | ||||||
| 
 | 
 | ||||||
| source utils/main.sh | source utils/main.sh | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user