Skip to content

Commit

Permalink
Add another solution to soccer.md (#502)
Browse files Browse the repository at this point in the history
Because I don't like solutions that override functions, even though they are unambiguously valid and it's the level author's duty to prevent them. Let's show a slightly less cheaty way it can be done.
  • Loading branch information
pppery committed Apr 10, 2023
1 parent 15aee1d commit e9afc7f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions solutions/bonus/soccer.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ Redefine the enemy players' and goalie's movement function and score a goal usin
moveEnemyPlayer = function(){}
moveGoalie = function(){}
```
## Pppery: Block the Goalie
```
map.placeObject(41, 13, "block");
```
Move the ball in one direction to force to goalie to commit to that side, then move the ball in the other direction and kick it. Eventually the enemyPlayers will move out of the way.

0 comments on commit e9afc7f

Please sign in to comment.