ほかのところから宣言した座標を呼んでるのになぜかch.x,ch.yに座標が代入されず図が現れません
graph.cpp
extern ch_t ch;
extern int img_ch[12];
extern void first_ini();
void graph_ch(){
DrawRotaGraphF(ch.x+FIELD_X,ch.y+FIELD_Y,1.0f,0.0f,img_ch[5],TRUE);
}
ini.cpp
extern ch_t ch;
void first_ini(){
ch.x=FIELD_MAX_X/2;
ch.y=FIELD_MAX_Y*3/4;
}
load.cpp
LoadDivGraph( "dat/PLAYER00.png" , 12 ,4 , 3, 33, 51, img_ch) ;