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

How to configure API Key in AWS API Gateway.

How to setup an open source Data Science environment with Python and R. Part 1/2

Author Power BI Reports on Real-Time ServiceNow Data

CloudFormation Guard (cfn-guard):

Explain Interfaces in Golang with an example

Getting Started With Azure CLI on Windows 11

Complicated Concepts

My Ingress dilemma…..

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

Excerpt of CC’s Journal

Moving the dial on disability inclusion

SMART PEOPLE OF EUROPE UNITE

A Grief Observed