前回の記事でクラス化を考えてみました。今回はクラスを実装し、作りながらクラス構造も変えていきました。 いきなりですが改造した結果 前回からだいぶ改造しています。小出しにするつもりが大幅に変えてしまいました。。。改造したコードはこんな ...
今回はちょっと実用処理から離れてPythonでゲームを作ってみよう。Pythonにはさまざまなライブラリが用意されており、その中にはゲーム開発に特化したライブラリもある。今回はPyGameと呼ばれるライブラリの使い方を紹介する。PyGameで迷路ゲームを作って ...
前回の記事でpygameを使って画面を出しましたが、今回はキャラクターを画面上に置いてみます。 画面にプレーヤーとして赤い四角、ゴールとして青い四角を置いてみます。ついでにキャラクターを配置する位置は画面サイズに依存するので、画面サイズを ...
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 absolutely fantastic language for tossing bits of data around and gluing different software components together. But eventually you may find yourself looking to make a program with an ...
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 ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する