feat(game): now creating punching bag prop in play()
This commit is contained in:
		
							parent
							
								
									c1e100211e
								
							
						
					
					
						commit
						73cd7c5f96
					
				|  | @ -1,9 +1,20 @@ | ||||||
| #include "program.h" | #include "program.h" | ||||||
|  | #include "shape.h" | ||||||
| #include "Player.h" | #include "Player.h" | ||||||
|  | #include "Prop.h" | ||||||
| 
 | 
 | ||||||
| static | static | ||||||
| void play() { | void play() { | ||||||
|     SpawnPlayer(ZeroVector); |     SpawnPlayer(ZeroVector); | ||||||
|  |     SpawnProp(MakeVector(2.f, 0.f), | ||||||
|  |         sprite_from_spritesheet(spritesheet_load("assets/bag.png", IVectorFrom(512)), 0), | ||||||
|  |         shape_new((Vector[]){ | ||||||
|  |             MakeVector(-0.25, -0.1), | ||||||
|  |             MakeVector(0.25, -0.1), | ||||||
|  |             MakeVector(0.25, 0.0), | ||||||
|  |             MakeVector(-0.25, 0.0) | ||||||
|  |         }, 4) | ||||||
|  |     ); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| static | static | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Sara
						Sara