Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. function Achievement(name, property, value, text, points){
  2. this.name = name;
  3. this.property = property;
  4. this.value = value;
  5. this.text = text;
  6. }
  7.  
  8. achievements.push(new Achievement("Clicktastic", &numClicks, 1000, "You clicked 1000 times!");
  9.  
  10. for (var i = 0; i < achievements.length; i++){
  11. if (*achievements[i].property >= achievements[i].value){
  12. //deal with earning achievement
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement