問題タブ [pygame2]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - pygameで衝突を検出するにはどうすればよいですか?
以下のクラスを使用して、箇条書きのリストとスプライトのリストを作成しました。弾丸がスプライトと衝突したかどうかを検出し、そのスプライトと弾丸を削除するにはどうすればよいですか?
python - この DeprecationWarning を修正する方法
DeprecationWarning: 整数が必要です (float 型を取得しました)。を使用した整数への暗黙的な変換
int
は非推奨であり、Python の将来のバージョンで削除される可能性があります。
win.blit(playerStand, (x, y))
DeprecationWarning: 整数が必要です (float 型を取得しました)。を使用した整数への暗黙的な変換
int
は非推奨であり、Python の将来のバージョンで削除される可能性があります。
win.blit(walkLeft[animCount // 5], (x, y))