Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

shut up

  • Loading branch information...
commit 9021efd96081ee3dd37caa1aeddfe4a662811ecf 2 parents 67e1f1e + 17369f3
unknown authored

Showing 1 changed file with 8 additions and 11 deletions. Show diff stats Hide diff stats

  1. +8 11 hugs.js
19 hugs.js
@@ -175,9 +175,9 @@ function initialize(){
175 175 }
176 176 };
177 177
178   - game.highMoodMark = 80;
  178 + game.highMoodMark = 70;
179 179 game.goal = 60;
180   - game.lowMoodMark = 70;
  180 + game.lowMoodMark = 60;
181 181
182 182 game.mood = 'happy'; // On of happy or sad.
183 183
@@ -559,7 +559,7 @@ function initialize(){
559 559 enemy.targetY = 0;
560 560
561 561 //Default Enemy starting state
562   - enemy.fuzzies = 60 + Math.random() * 20;
  562 + enemy.fuzzies = 50 + Math.random() * 40;
563 563 enemy.health = 100;
564 564 enemy.state = 'wandering';
565 565 enemy.aggroRadius = 20;
@@ -593,25 +593,25 @@ function initialize(){
593 593 }
594 594
595 595 //Enemy Irritated state
596   - if(enemy.fuzzies <= 70 && enemy.fuzzies > 25)
  596 + if(enemy.fuzzies <= 80 && enemy.fuzzies > 50)
597 597 {
598 598 enemy.setImage('./assets/fluff2.png', 80, 80);
599 599 }
600 600
601 601 //Enemy Happy state
602   - if(enemy.fuzzies > 70)
  602 + if(enemy.fuzzies > 80)
603 603 {
604 604 enemy.setImage('./assets/fluff.png', 80, 80);
605 605 }
606 606
607 607 //Enemy Angry State
608   - if(enemy.fuzzies < 25)
  608 + if(enemy.fuzzies <= 50)
609 609 {
610 610 enemy.setImage('./assets/fluff3.png', 80, 80);
611 611 }
612 612
613 613 //When an enemy fights
614   - if(enemy.fuzzies <= 70){
  614 + if(enemy.fuzzies <= 50){
615 615 enemy.state = 'fighting';
616 616 }
617 617 else{
@@ -664,10 +664,7 @@ function initialize(){
664 664
665 665 if(dx*dx+dy*dy <= 35*35 && enemy.attackTimer <= 0){
666 666 enemy.fightTarget.health -= 10;
667   - enemy.fuzzies -= 5;
668   -
669   -
670   -
  667 + enemy.fuzzies -= 10;
671 668 //alert(enemy.fightTarget.health);
672 669 enemy.attackTimer = 1.5;
673 670 if(Math.random() > 0.5)

0 comments on commit 9021efd

Please sign in to comment.
Something went wrong with that request. Please try again.