提交 ec6376d8 编写于 作者: 开发游戏的老王's avatar 开发游戏的老王

17.让数据说话(显示分数)

上级 2501e15a
{
"node_id": "game-7df8a8f6fdf24ddc975506a798dafa00",
"keywords": [],
"children": [],
"export": [
"learn.json"
],
"keywords_must": [],
"keywords_forbid": [],
"group": 0
}
\ No newline at end of file
{
"type": "code_options",
"author": "hello_tute",
"source": "learn.md",
"notebook_enable": false,
"exercise_id": "7e055dcee08f4bf28216e61ce67d3abb"
}
\ No newline at end of file
# 让数据说话(显示分数)
请先阅读本节讲义⬇
[《让数据说话(显示分数)》](https://orzgame.blog.csdn.net/article/details/105123050)
在FlappyBird游戏中,当小鸟顺利通过一对水管子之间的空隙,则视为得1分,那么触发得分的逻辑应该放在哪个函数中?
## 答案
`_on_body_exited`
## 选项
### A
`_ready`
### B
`_process`
### C
`_on_body_enter`
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册