PatrolTeam / PatrolGameProject

Moon Patrol is a tiny JavaScript game created for the Practice in Video Games course at New Bulgarian University
http://www.savov.work/game
0 stars 1 forks source link

Improve Flying enemy logic #67

Open dvp-petrov opened 6 years ago

dvp-petrov commented 6 years ago

Flying Enemy Type 1: Randomize end point on the screen. Flying Enemy Type 2: Randomize flying speed (the effect would be: slower enemies would shoot more bullets).

Flying Enemy Type 1: Staticly flying in the air, NOT moving by its own. Always appear right-to-left. There might be optimal reachable point for this enemy. Shoot abilities: 2 types

Flying Enemy type 2: Dynamically flying enemy ship, moving on its own. Randomly decided way of appear. Supports both: left-to-right and right-to-left. Shoot abilities: 2 types

Both the flying enemies have logic in common: Random chance to stay on the scene. This is decided with the enemy generator. Type 1 enemy could go to current point and stay there, or could continue sliding with the game scene speed and disappear from the scene. Type 2 enemy could disappear also, or change orientation when reaches the scene end. (E.G. it is generated with left-to-right direction, it reaches the right end of the scene, then it turns back and becomes right-to-left direction enemy. This continues until the player succeed in killing the enemy).