Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
そのため、キーを押したときにサウンドを有効にするのに問題があります。
私がこれまでに持っているのは
if event.type == pygame.key(K_a): self.sound.play()
グローバル名 'K_a' が定義されていないというエラー コードが表示されます。
誰かがこのコードを修正するのを手伝ってくれますか? ありがとう!