今回はちょっと実用処理から離れてPythonでゲームを作ってみよう。Pythonにはさまざまなライブラリが用意されており、その中にはゲーム開発に特化したライブラリもある。今回はPyGameと呼ばれるライブラリの使い方を紹介する。PyGameで迷路ゲームを作って ...
pygameは今までもゲーム作成のメインのモジュールとして使って来ました。その経験はあるのですが、今回も最初からという気持ちでサンプルゲームをお願いしたら、チュートリアルをやりなさいというアドバイスをもらったので、今回はチュートリアルの ...
〜ゲーム作り専用の道具箱を手に入れる〜 これまでのシリーズでは、画面に文字を出したり(print)、 キーボードから入力したり(input)して、 文字ベースのプログラム を作ってきました。 ここからは、 「画面に絵が出て、キーでキャラクターが動く ...
Python is well known as one of the most beginner-friendly and flexible programming languages. But while Python has a fantastic onboarding experience for even the least experienced new programmers, it ...
Python is an excellent language for rapid application development and prototyping. With Pygame, a wrapper built around SDL, the same can be true for games. In addition, because its built on top of ...
screen.draw.text("Hallo!", (WIDTH // 2 - 50, 80), color="white", fontsize=50) screen.draw.text("Das sind Formen!", (WIDTH // 4, HEIGHT - 50), color="pink", fontsize=25) ...