diff options
Diffstat (limited to 'samples/99_genre_arcade/twinstick/app/main.rb')
| -rw-r--r-- | samples/99_genre_arcade/twinstick/app/main.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/99_genre_arcade/twinstick/app/main.rb b/samples/99_genre_arcade/twinstick/app/main.rb index 2ce1d50..4edef92 100644 --- a/samples/99_genre_arcade/twinstick/app/main.rb +++ b/samples/99_genre_arcade/twinstick/app/main.rb @@ -64,7 +64,7 @@ def move_enemies args theta = Math.atan2(enemy.y - args.state.player.y, enemy.x - args.state.player.x) # Convert the angle to a vector pointing at the player dx, dy = theta.to_degrees.vector 5 - # Move the enemy towards the player + # Move the enemy towards thr player enemy.x -= dx enemy.y -= dy end |
