Reloading!

Okay, so I implemented a reload system shortly after the last article and I have a few other things planned out that I wanna get learned and implemented, above I have the variables set-up for the ammo and reloading system, and I’ve prepped my method to be called and I named it _basiclaserReloading:

We have our true-false check to see if we’re reloading or not, we’ve got our timer going off and counting down to simulate reloading, and we’ve got our ammo refreshing if we hit 0 (zero). We just need to add a line of code in our _firingBasicLaser method:

Alright, now we test!

Barrel Roll? Okay, that might be put off for a bit but we’ll eventually make cube do a barrel roll!

--

--

--

If ambition and practicality amalgamated, it would be me! I am here to climb the mountains of my ambition and catalog my journey so that someone can be changed!

Recommended from Medium

Stellar Unveils 2022 Roadmap to Expand DeFi through MoneyGram Using Smart Contracts

Stellar XLM

Just cool down there tiger

What Should I Do If Windows Doesn’t See The Second Hard Disk?

Monitoring Kubernetes

Setting up the System so that it can ping to Google but not to Facebook from same.

LOL … printers suck!!!

Mobile UI Test Roadmap — Part I

Why I struggle with GraphQL

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
Andrew Lengen

Andrew Lengen

If ambition and practicality amalgamated, it would be me! I am here to climb the mountains of my ambition and catalog my journey so that someone can be changed!

More from Medium

How To Overcome Impostor Syndrome

6 Ways to Be an Advocate for Women of Color in the Workplace

FreedomFox//Fox2: A word to the WWISE

Alarm Fatigue: Blizzard Weekend in Rhode Island