To counteract the Destroy Powerups feature that we made in the last article, we’ll give the player a Magnet Pickup ability to collect powerups using the ‘C’ key.

Magnet Pickup

After players press the ‘C’ key, if there are powerups in a given radius of the player, the powerups will begin to…

Continuing our theme of adding more behaviors to our enemies, we’ll give our enemies the ability to shoot and destroy power-up collectibles if they are within a given range.

Destroying Powerups

To make our enemies capable of destroying powerups, we need the enemy to detect the powerup and then sequentially shoot lasers…

Ted Lim

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