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

请问怎么发射子弹呢 #2

Open
yanmengyi opened this issue Sep 2, 2021 · 1 comment
Open

请问怎么发射子弹呢 #2

yanmengyi opened this issue Sep 2, 2021 · 1 comment

Comments

@yanmengyi
Copy link

这个游戏真好啊
就是我太菜了

@wLuobaiw
Copy link

if key_pressed[pygame.K_j]:
if not myTank_T1.bullet.life and myTank_T1.bulletNotCooling:
fire_sound.play()
myTank_T1.shoot()
myTank_T1.bulletNotCooling = False
这一段是源码里面p1的射击条件
应该是按“j”键

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

No branches or pull requests

2 participants