Tuesday, December 8, 2015

Revisiting an older project

View post on imgur.com


As I was looking through some of my older projects I ended up digging up my shooting game.  As I was playing around in the scene I got the urge to add shooting options.  When I originally did the project I didn't have multiple weapons.  When I was re looking through the project I thought it would be the perfect opportunity to implement cleaner code.  A project I had done in the past had weapon toggling, but the code was incredibly redundant.  This was my chance to create the code I had been thinking about for the past few nights that would do the same job but be easier on the eyes review.  Currently I have weapon toggling, each weapon has it's own cool down before it can be used again and ammo.  With the new code its also easier to add more weapons without having to edit the script.  It was a very enjoyable night of coding, hopefully I can make time to keep adding to it. Maybe more weapons, enemies, and other things soon.

0 comments:

Post a Comment

Powered by Blogger.