| |
"Player movement demo"
|
|
| Total Entries: 1 | pvdhouten Entry: 1 05/18/2002 02:29 PM
| Momevent Demo version WLS.EXE ----------------------------- This program demonstrates the movement of players. Player move according to simple rules. Different types of player use different rules. Each player has it's own attributes such as - maximum vertical speed - maximum horizontal speed - vertical acceleration - horizontal acceleration
This version meant to examine how player moves. The demo prints 3 values next to each player:
number / Player Type / Ball in zone
"Ball in Zone" indicated if the ball is in the zone that was set for a player. For most players the field is divided into three zones: defence, midfield and forward. All players are assigned to each of these zones.
Player types ------------ 0 : Line goalie, only moves vertical. Stays before goal. 1 : Flying golaie, move to the ball when ball comes near goal. 2 : Blocker, only moves vertically at a fixed X-position. 3 : Runner, runs across his wn part of the field, i.e. defence, midfield of forward. 4 : not implemented 5 : not implemented 6 : not implemented 7 : Anticipator , move to location where ball is going to. 8 : Winger, only moves horizontally at a fixed Y-position. 9 : Guard, moves to the ball when the ball enters his (small) zone. 10: not implemented 11: Tracker, tries to follow the ball from behind and catch up to it.
Source code ----------- Take a look at game.bb for more details. Game.bb does not run by itself.
Controls -------- arrows: move map to left and right mouse: hold down left mouse button to move ball and release it esc: quit demo
Goal ---- - To set up a larger number of rules (different player types). - Allow the gamer to manage his own team and select the most efficient line-up. - Computer controlled teams will be managed by an "AutoCoach" which tries to find the best line-up with help of a set of predefined tactics and some optimalisation algorithms.
Suggestions ----------- If you have any questions, suggestions or ideas for new movement rules for the players, please let me know.
|
|
|
|