Permalink
Browse files

shut up

  • Loading branch information...
2 parents 67e1f1e + 17369f3 commit 9021efd96081ee3dd37caa1aeddfe4a662811ecf unknown committed Apr 1, 2012
Showing with 8 additions and 11 deletions.
  1. +8 −11 hugs.js
View
19 hugs.js
@@ -175,9 +175,9 @@ function initialize(){
}
};
- game.highMoodMark = 80;
+ game.highMoodMark = 70;
game.goal = 60;
- game.lowMoodMark = 70;
+ game.lowMoodMark = 60;
game.mood = 'happy'; // On of happy or sad.
@@ -559,7 +559,7 @@ function initialize(){
enemy.targetY = 0;
//Default Enemy starting state
- enemy.fuzzies = 60 + Math.random() * 20;
+ enemy.fuzzies = 50 + Math.random() * 40;
enemy.health = 100;
enemy.state = 'wandering';
enemy.aggroRadius = 20;
@@ -593,25 +593,25 @@ function initialize(){
}
//Enemy Irritated state
- if(enemy.fuzzies <= 70 && enemy.fuzzies > 25)
+ if(enemy.fuzzies <= 80 && enemy.fuzzies > 50)
{
enemy.setImage('./assets/fluff2.png', 80, 80);
}
//Enemy Happy state
- if(enemy.fuzzies > 70)
+ if(enemy.fuzzies > 80)
{
enemy.setImage('./assets/fluff.png', 80, 80);
}
//Enemy Angry State
- if(enemy.fuzzies < 25)
+ if(enemy.fuzzies <= 50)
{
enemy.setImage('./assets/fluff3.png', 80, 80);
}
//When an enemy fights
- if(enemy.fuzzies <= 70){
+ if(enemy.fuzzies <= 50){
enemy.state = 'fighting';
}
else{
@@ -664,10 +664,7 @@ function initialize(){
if(dx*dx+dy*dy <= 35*35 && enemy.attackTimer <= 0){
enemy.fightTarget.health -= 10;
- enemy.fuzzies -= 5;
-
-
-
+ enemy.fuzzies -= 10;
//alert(enemy.fightTarget.health);
enemy.attackTimer = 1.5;
if(Math.random() > 0.5)

0 comments on commit 9021efd

Please sign in to comment.