In this week, I start build the interactive
prototype III, the idea is to improve the game experience by adding some new
game features, because from last two prototypes, only few people felt excited
about gameplay, even the novel physical input can surprise users, but the
actual gameplay still a bit boring, also some feedback mentioned that the
difficulty not suitable for everyone, so some new selectable gameplays may help
to fix these issues.
For the new features, there are two new
difficulties level which are “Easy” and “hard”, and the original game become
“Normal” level, so user can switch each difficulty level by click correspond
buttons. For the “Easy” difficulty level, I simply reduce the number of key
combination, there are two directions only require one button press, but two
players still share two same buttons.
For
the “hard” difficulty level, I replace the score counter with a timer, the time
start at 100. When the game began, the timer also start countdown, then when
Pac-man eat one Pac-dot which worth one point, the enemy’s time will minus one,
when eat one Pac-dot which worth five point, the enemy’s time will minus five. The
player who run out of time first will lose the game.
In order to switch between three different difficulty levels , i create a "enum" to declare an enumeration, include beginner, intermediate and hard.
After click related button, then the script will switch the scene to the correspond difficulty scene.

Here are two different key combination sets:
Issue:
when i switch to the beginner difficulty level, the intermediate difficulty level key combination still working, i found the issue is because two different levels share same keys for move UP and Down, when i click the key combination A+S, the key A also clicked. so i add a code to avoid this problem, add (!(input.GetKey.A)) to avoid the issue that press A and S at same time .![]() |
| Add ! to avoid the issue |



没有评论:
发表评论