;
;**************************************************
;pellets.bb
;
;this will handle and setup the various "pellets" that will populate the game.
;these are similar to the little pellets pac man had to eat
;
;;

;author:Christopher Turek
;30 November 2004




;
;
;
;


Global happy1, happy2, happy3, happy4, happy5
Global sad1, sad2, sad3, sad4, sad5
Global flyer1, flyer2, flyer3, flyer4




Function setUpPellets()




	;happy clock faces -- bonus seconds

	
	happy1 = LoadMesh("clock_happy.x")
	happyTex = LoadTexture("clock_happy.jpg")
	EntityTexture happy1, happyTex
	EntityType happy1, HAPPY_1
	RotateEntity happy1, 0, 90, 180
	PositionEntity happy1, -128, -2, 60
	ScaleEntity happy1, .05, .05 , .05
	ShowEntity happy1
	
	
	happy2 = LoadMesh("clock_happy.x")
	EntityTexture happy2, happyTex
	EntityType happy2, HAPPY_2
	RotateEntity happy2, 0, 0, 180
	PositionEntity happy2, -138, -2, -220
	ScaleEntity happy2, .05, .05 , .05
	ShowEntity happy2
	
	
	happy3 = LoadMesh("clock_happy.x")
	EntityTexture happy3, happyTex
	EntityType happy3, HAPPY_3
	RotateEntity happy3, 0, 0, 180
	PositionEntity happy3, -262, -2, -31
	ScaleEntity happy3, .05, .05 , .05
	ShowEntity happy3
	
	
	happy4 = LoadMesh("clock_happy.x")
	EntityTexture happy4, happyTex
	EntityType happy4, HAPPY_4
	RotateEntity happy4, 0, 0, 180
	PositionEntity happy4, -267, -2, 193
	ScaleEntity happy4, .05, .05 , .05
	ShowEntity happy4
	

	happy5 = LoadMesh("clock_happy.x")
	EntityTexture happy5, happyTex
	EntityType happy5, HAPPY_5
	RotateEntity happy5, 0, 0, 180
	PositionEntity happy5, -77, -2, 127
	ScaleEntity happy5, .05, .05 , .05
	ShowEntity happy5
	
	
	
	
	;sad clock faces -- subtracts seconds
	
	
	sad1 = LoadMesh("clock_mad.x")
	sadTex = LoadTexture("clock_mad.jpg")
	EntityTexture sad1, sadTex
	EntityType sad1, SAD_1
	RotateEntity sad1, 0, 90, 180
	PositionEntity sad1, -34, -2, 55
	ScaleEntity sad1, .05, .05 , .05
	ShowEntity sad1
	
	
	sad2 = LoadMesh("clock_mad.x")
	EntityTexture sad2, sadTex
	EntityType sad2, SAD_2
	RotateEntity sad2, 0, 0, 180
	PositionEntity sad2, -137, -2, 99
	ScaleEntity sad2, .05, .05 , .05
	ShowEntity sad2
	
	
	sad3 = LoadMesh("clock_mad.x")
	EntityTexture sad3, sadTex
	EntityType sad3, SAD_3
	RotateEntity sad3, 0, 90, 180
	PositionEntity sad3, -172, -2, 193
	ScaleEntity sad3, .05, .05 , .05
	ShowEntity sad3
	
	
	sad4 = LoadMesh("clock_mad.x")
	EntityTexture sad4, sadTex
	EntityType sad4, SAD_4
	RotateEntity sad4, 0, 0, 180
	PositionEntity sad4, -130, -2, -13
	ScaleEntity sad4, .05, .05 , .05
	ShowEntity sad4
	
	
	sad5 = LoadMesh("clock_mad.x")
	EntityTexture sad5, sadTex
	EntityType sad5, SAD_5
	RotateEntity sad5, 0, 0, 180
	PositionEntity sad5, -77, -2, -26
	ScaleEntity sad5, .05, .05 , .05
	ShowEntity sad5
	
		
	;the 4 map pieces
	
	flyer1 = LoadMesh("flyer1.x")
	flyer1Tex = LoadTexture("flyer1.jpg")
	EntityTexture flyer1, flyer1Tex
	EntityType flyer1, FLYER_1
	RotateEntity flyer1, 0, 90, 180
	ScaleEntity flyer1, .05, .05 , .05
	PositionEntity flyer1, -91, -2, 54
	ShowEntity flyer1
	
	flyer2 = LoadMesh("flyer2.x")
	flyer2Tex = LoadTexture("flyer2.jpg")
	EntityTexture flyer2, flyer2Tex
	EntityType flyer2, FLYER_2
	RotateEntity flyer2, 0, 90, 180
	ScaleEntity flyer2, .05, .05 , .05
	PositionEntity flyer2, -26, -2, -78
	ShowEntity flyer2
	
	flyer3 = LoadMesh("flyer3.x")
	flyer3Tex = LoadTexture("flyer3.jpg")
	EntityTexture flyer3, flyer3Tex
	EntityType flyer3, FLYER_3
	RotateEntity flyer3, 0, 0, 180
	ScaleEntity flyer3, .05, .05 , .05
	PositionEntity flyer3, -140, -2, -106
	ShowEntity flyer3
	
	
	flyer4 = LoadMesh("flyer4.x")
	flyer4Tex = LoadTexture("flyer4.jpg")
	EntityTexture flyer4, flyer4Tex
	EntityType flyer4, FLYER_4
	RotateEntity flyer4, 0, 0, 180
	ScaleEntity flyer4, .05, .05 , .05
	PositionEntity flyer4, -78, -2, -36
	ShowEntity flyer4
	
	

End Function