ゲームの構造体
ゲームの構造体
// 画像構造体
struct image {
char[256] filename; // ファイル名
int width; // 幅
int height; // 高さ
int size; // 1コマの幅
int frame; // フレーム数
};
// スプライト構造体
struct sprite {
image *img; // 画像構造体
D3DXVECTOR2 point; // 座標
bool isAlive; // 表示フラグ
double angle; // 移動角度
double scalar; // 移動量
};