Mercurial > projects > openmelee
diff ai.d @ 15:8e6a9e390cba
Added binary win32 demo
author | zzzzrrr <mason.green@gmail.com> |
---|---|
date | Tue, 24 Mar 2009 11:06:16 -0400 |
parents | af1e8620f027 |
children |
line wrap: on
line diff
--- a/ai.d Mon Mar 23 14:06:47 2009 -0400 +++ b/ai.d Tue Mar 24 11:06:16 2009 -0400 @@ -51,7 +51,7 @@ void move(Ship enemy) { - // Ver stupid, elementary AI so far... + // Elementary steering AI steer.update(); bzVec2 st; @@ -79,7 +79,7 @@ } float range = (ship.state.position - enemy.state.position).length; - if(range > 10 && abs(angle) < PI/4) { + if(range > 2 && abs(angle) < PI/4) { ship.thrust(); } }