ゲームの構造体2

ゲームの構造体(アニメーションなし)

// 移動方向列挙型
struct DISTANCE {
UP = 0x00,
RIGHT = 0x02,
DOWN = 0x04,
LEFT = 0x08,
};

// 画像構造体
struct image {
char filename[256]; // ファイル名
int width; // 幅
int height; // 高さ
};

// スプライト構造体
struct sprite {
bool isAlive; // 表示フラグ
image *img; // 画像構造体
D3DXVECTOR2 point; // 座標
DISTANCE dist; // 移動方向
double scalar; // 移動量
};