GameDevHQ Crash Course Day#7 More Power never hurt anyone right?

Jason Dixon
Mar 18, 2021

--

Beginning 2D space Shooter-Power to the Powerups

Today went over adding some more power ups to the game before this I had a triple shot and a shield power up, so what else could a space shooter need? well to start with a Speed Booster is always a good idea, but with the increasing amount of power ups having separate scripts for essentially the same object seems silly, so lets combine them all into a single script.

switch powerups

There we go, now that we have a switch statement for it we can expand our list of power ups as far as we want with little extra work comparatively.

So we have speed what else could we want? I have some ideas but will need some more time to build on them, so next time!

--

--

No responses yet