| python |
import |
|
モジュールをインポトする |
| python |
open() |
入出力関数 |
ファイルを開く |
| python |
read() |
入出力関数 |
ファイルを読み込む |
| python |
close() |
入出力関数 |
ファイルを閉じる |
| python |
y = x.split('\n') |
|
文字列を分割する |
| python |
for i in range(len(y)) |
繰り返し |
繰り返し |
| python |
join() |
配列操作 |
配列を結合する |
| python |
`n` |
|
数値を文字列に変換する |
| python |
rect = Rect(array) |
pygame |
長方形を得る。arrayはx位置、y位置、幅、高さ |
| python |
rect.top |
pygame |
長方形の頂点y座標 |
| python |
rect.bottom |
pygame |
長方形の底辺y座標 |
| python |
rect.left |
pygame |
長方形の左辺x座標 |
| python |
rect.right |
pygame |
長方形の右辺x座標 |
| python |
rect.center |
pygame |
長方形の中央xy座標 |
| python |
rect.clamp_ip |
pygame |
長方形が画面外へはみ出さない |
| python |
rect.size |
pygame |
長方形の幅と高さを配列で得る |
| python |
screen = pygame.display.set_mode |
pygame |
描画領域 |
| python |
screen.blit(array) |
pygame |
描画領域に貼り付ける |
| python |
image.get_rect(array) |
pygame |
画像情報から長方形を得る。 |
| python |
load_image(path) |
pygame |
ファイルパスから画像を読み込む |
| python |
load_sound(path) |
pygame |
ファイルパスから音を読み込む |
| python |
pygame.key.get_pressed() |
pygame |
押されたキーを取得 |
| python |
pygame.mouse.get_pos() |
pygame |
マウスポインタのxy座標を配列で取得 |
command |
tags |
mean |