Update README.md
This commit is contained in:
parent
aabcf9a3cd
commit
45bad37220
1 changed files with 9 additions and 6 deletions
|
@ -2,16 +2,19 @@
|
||||||
|
|
||||||
# Exercise: Add Clyde as a Ghost
|
# Exercise: Add Clyde as a Ghost
|
||||||
|
|
||||||
## Background:
|
## Background: Clyde
|
||||||
|
|
||||||
We have three ghosts within the project. Blinky, Inky and Pinky. But Clyde is missing. Implement Clyde and their
|
We have three ghosts within the project. Blinky, Inky and Pinky. But Clyde is missing. Implement Clyde and their
|
||||||
behavior.
|
behavior.
|
||||||
|
|
||||||
Clyde always chases PacMan so the only thing you should need is where PacMan is currently located. But Clyde also has
|
Clyde chases PacMan so you need to know where PacMan is currently located. But Clyde gets scared and runs back to its scatter target when PacMan gets too close (less than 8 the size of a cell).
|
||||||
the scatter behavior as the other ghosts.
|
Clyde also has the scatter and eyes behaviors as the other ghosts.
|
||||||
|
|
||||||
Where are the graphics for Clyde in the assets file and how can we make sure the ghost will be correctly rendered?
|
|
||||||
|
|
||||||
## Exercise
|
## Exercise
|
||||||
|
|
||||||
1.
|
1. Clyde should inherit from Ghost
|
||||||
|
2. Make simple implementations of the functions to make it compile
|
||||||
|
3. Clyde should start at Position { x = 15.5, y = 14 }
|
||||||
|
4. Clydes sprite is the orange one. Where are the graphics for Clyde in the assets file and how can we make sure the ghost will be correctly rendered?
|
||||||
|
5. Clydes scatter target is { x = 0, y = 30 }
|
||||||
|
6. Clyde always targets its scatter target, unless PacMan is further than 8 tiles away
|
||||||
|
|
Loading…
Reference in a new issue