📄 readme.txt
字号:
===============================================================================
Data Structures For Game Programmers
Ron Penton
Game Demonstration 18-1
===============================================================================
This demonstration shows you how to use a finite state machine AI.
This demo is somewhat complex.
- You are the black square
- The Defenders are the green squares
- The Attackers are the red squares
- The Health is the blue squares.
- The defenders can never leave the dark grey circle
- The attackers can go anywhere
- The range of sight for the AI's is the light grey circle around each AI
- The big red bar on the left is your health.
- When you die, you respawn at the lower right hand of the screen.
- The green and red bars at the top-left are the AI's healths. When they drop
to zero, the AI dies.
- Use the arrow keys to move around
- moving on top of health will give you full Health again.
- Moving into the visual range of an AI will send a "See Enemy" event to that AI.
- Standing within 8 pixels of an enemy puts you into "Attack" mode, where you
and the enemy attack each other automaticall every second.
- When an AI kills you, and has low health, it will find the nearest health, then
run back to protect the base.
- When a defender AI leaves the dark grey circle, a "Out Of Bounds" event is sent
to it, so it knows to return to the base.
- Defender AI's will only get health within the dark grey defense zone; defense is
more important to them than self-preservation.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -