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.
Pythonで簡単なゲームを作っています。残念ながら、スプライト画像は小さすぎます。スプライト画像 (GrassTile) を 8x8 から 16x16 に増やすにはどうすればよいですか。変換モジュールの使用方法がよくわかりません。
私はこれを試みました
pygame.transform.scale(grasstile, (16, 16), DestSurface = None): return grasstile
そして、無効な構文を取得します
次のように関数を呼び出します。
biggrasstile = pygame.transform.scale(grasstile, (16, 16))
(メソッドの署名をコピーしたようです)