Skip to content

Commit

Permalink
Add variable to rockmeter that keeps track of the player's instrument
Browse files Browse the repository at this point in the history
  • Loading branch information
erodozer committed Jun 29, 2011
1 parent 1bf46b7 commit 8ebc688
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Rockmeter.py
Expand Up @@ -56,6 +56,7 @@
#variables in the rockmeter.ini for you no longer have to use self
#to refer to theme, instead it has a more friendly and logical setup.
player = None
part = "Guitar" #the player's part/instrument

score = 0 #player's score
streak = 0 #player's streak
Expand Down Expand Up @@ -882,9 +883,10 @@ def updateTime(self):
#this updates all the usual global variables that are handled by the rockmeter
#these are all player specific
def updateVars(self, playerNum):
global score, rock, streak, streakMax, power, stars, partialStars, multiplier, bassgroove, boost, player
global score, rock, streak, streakMax, power, stars, partialStars, multiplier, bassgroove, boost, player, part
scene = self.scene
player = scene.instruments[playerNum]
part = player.__class__.__name__

#this is here for when I finally get coOp worked in
if self.coOp:
Expand Down

0 comments on commit 8ebc688

Please sign in to comment.