Skip to content

Commit

Permalink
restored got a pistol aimed at your heart sign
Browse files Browse the repository at this point in the history
  • Loading branch information
maryrosecook committed Feb 15, 2011
1 parent 1a0d9ee commit b1396d8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions game/ai.js
Expand Up @@ -25,8 +25,8 @@ Engine.initObject("AIComponent", "LogicComponent", function() {

notifyIncoming: function(ordinance) {
if(ordinance.shooter != this.host)
if(!this.field.collider.objectAtLeastDistanceAway(this.host, ordinance, ordinance.safeDistance))
this.reactToBeingUnderFire();
if(!this.field.collider.objectAtLeastDistanceAway(this.host, ordinance, ordinance.safeDistance))
this.reactToBeingUnderFire();
},

notifySound: function(soundMaker) {
Expand Down
2 changes: 1 addition & 1 deletion game/collider.js
Expand Up @@ -87,7 +87,7 @@ Engine.initObject("Collider", "Base", function() {
},

objectAtLeastDistanceAway: function(obj1, obj2, distance) {
if(obj1.getPosition().dist(obj2.getPosition()) >= distance)
if(obj1.getPosition().dist(obj2.getPosition()) > distance)
return true;
else
return false;
Expand Down
2 changes: 1 addition & 1 deletion resources/level1.js
Expand Up @@ -145,7 +145,7 @@
sprite: { bitmapImage: "closestlight.png", sprites: { "main": { "f" : [0, 0, 227, 304] } } }
},
{
name: "signpistol", x: 7500, y: 95, scrollAttenuation: -1.6, zIndex: 2001,
name: "signpistol", x: 3400, y: 95, scrollAttenuation: -1.6, zIndex: 2001,
sprite: { bitmapImage: "signpistol.png", sprites: { "main": { "f" : [0, 0, 380, 394] } } }
},
{
Expand Down

0 comments on commit b1396d8

Please sign in to comment.