Everything is ready in the main menu, just replace your graphics and your new main menu is ready. It handles the click and touch events, control sound on/off of the game.
Enemies movement is totally base on the sprites. Showing enemies in the game with a specific pattern
var xPos : float;
var yPos : float;
private var pattern = [1,3,2,1,0,1,2,3,0,3,0,2,1,2,3,0,1,2,3,0,3,2,1,3,2,1,0,3,2,1,0,2,3,1,2,3,0,1,0,3];
you can set the X and Y positions in the xPos and yPos arrays according to your requirement.The pattern array will show the enemies to different positions.
When enemy shoot the health of the player will be decrease on every shoot.
When Player touch on the enemy the death animation of the enemy will be played and score will be adde.
When player touch on any enemy it will detect the collision with the enemy using 2D ray Cast.
Score will be added on every enemy death. Each levels manage high scores using the PlayerPrefs
Auto Play Reload Animation.
Gun will be move on dragging the finger on the screen.
We use the pieces of background on the main background image and assign it the Texture layer. And
assign the enemies and gun Sprites layer.
Using two cameras One is Main camera and second is Camera. Assign the Main camera culling mask
EVERY THING and to Camera only TEXTURES and SPRITES which will create effect of enemies moving
behind the pillars or walls.
for support you can contact me at [email protected]