3 ms·
I have a very vivid memory of following a tutorial for Game Maker which guided you through building an Asteroids clone. There was a section on programming the g
by clusmore 4y ago
I have a very vivid memory of following a tutorial for Game Maker which guided you through building an Asteroids clone. There was a section on programming the gun, where you had a variable canShoot which is set to false after each shot and then reset with a timer, to prevent rapid fire shooting. Then as an exercise it asked you to add a second gun with a separate cooldown timer. I remember thinking "okay but what's the name of the second canShoot variable?" and was completely stumped. I gave up and moved on to other things, until a day or so later it occurred to me that the name wasn't relevant, canShoot is not a built-in with magic properties making it suited to this function, and all the other code actually contained the necessary logic.