Switch Statement to the Rescue

How does this even work?

We looked at Creating a Modular Powerup System in the previous article as we progress through the 2D Space Shooter for GameDevHQ. The script for the powerups called a single method on the player class and had no definition of how the player was actually impacted by collecting the powerup on the screen.

Today we will talk about the magic behind making that happen. As previously mentioned I deviated a bit from…

--

--

--

Turning my passion for video games and 11 years of software development experience into a focus on video game development using Unity3D.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Make a Custom Hook in React | Tekolio

Flutter Apps With AWS Amplify Backend: Part 3 — Analytics

[Kducato Voting Event] Winner Announcement

Replacing AWS Application Load Balancers with Envoy and Rotor

Building a Google Cloud solution using Infrastructure-as-code — Part 1 Configuring GitLab with…

[LC Walkthrough] 669. Trim a Binary Search Tree

Finding a grocery delivery slot, the smart way

Go get private repository on Gitlab

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
James West

James West

Turning my passion for video games and 11 years of software development experience into a focus on video game development using Unity3D.

More from Medium

Unique Types of Body Settings in Virtual Cameras

Indy Pro ’22: Distance System

Cinemachine: How to create Camera Shake on Unity Cameras

Back to Scale 1