Skip to content

Commit

Permalink
В описании исправлен пример использования класса Level
Browse files Browse the repository at this point in the history
  • Loading branch information
dfitiskin committed Jan 9, 2018
1 parent 4da569a commit 76b9b32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ const bronzeCoin = new MyCoin('Бронза');
const player = new Actor();
const fireball = new Actor();

const level = new Level(undefined, [ goldCoin, bronzeCoin, player, fireball ]);
const level = new Level(grid, [ goldCoin, bronzeCoin, player, fireball ]);

level.playerTouched('coin', goldCoin);
level.playerTouched('coin', bronzeCoin);
Expand Down

0 comments on commit 76b9b32

Please sign in to comment.