66-Boss behavior — Spawn UFOs

This is the final post of the core behaviors for this game. In this post, the boss will spawn UFOs that shoot at the player at a certain interval. The UFOs will move randomly on the screen and attack the players. A maximum of 6 UFOs will coexist; if there are less than 6 UFOs, the boss will continue to spawn new ones. When destroyed, the UFO will grant the player 50 points.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
YShu

YShu

Technologist and Unity developer