Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change an experience medicine which can move if someone was too close… #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jokerknife
Copy link
Collaborator

change an experience medicine which can move if someone was too close to it

@Jokerknife Jokerknife requested a review from CCisGG May 14, 2018 06:14
@CCisGG
Copy link
Owner

CCisGG commented May 15, 2018

如果改了药丸的code的话,所有的药丸都会同步被改掉,那么我们应该考虑是否所有的“药丸”都有这种玩家接近就会逃跑的性质。一般来说应该不是这样的,药丸只要具有简单的补血功能就可以,会跑的药丸也许可以成为药丸中某种特殊药丸。所以这里特殊药丸应该新建一个class,然后继承Medicine类,之后就可以随便发挥啦。

Copy link
Owner

@CCisGG CCisGG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

新建一个class,继承Medicine,然后把这个新的“特殊药丸”code附着到游戏里的药丸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants