といった、アクションゲームの基本を作ってきましたね! 超いい感じです(*^^*) アイテムも Rect(四角形) で管理します。 「当たったかどうか」を調べたいものは、すべて Rect にすると扱いやすい というのが、pygameの基本です。 という方法で「消えた ...
今回はちょっと実用処理から離れてPythonでゲームを作ってみよう。Pythonにはさまざまなライブラリが用意されており、その中にはゲーム開発に特化したライブラリもある。今回はPyGameと呼ばれるライブラリの使い方を紹介する。PyGameで迷路ゲームを作って ...
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 ...
Windows Python 3.11.2 SDL 2.0.22 pygame-ce 2.1.3 import pygame import sys mainClock = pygame.time.Clock() pygame.init() pygame.display.set_caption('testing, use arrow keys to move') screen_width = ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する