#include "DxLib.h"
#include "a.h"
void Draw();
void Load();
int huragu=1;
int caunto=2;
// WinMain関数
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow )
{
ChangeWindowMode( TRUE ) ;
DxLib_Init();
while(!ProcessMessage() && !ClearDrawScreen()){
if(caunto==!huragu){
Load();
huragu=caunto;
};
Draw();
WaitTimer( 20 ) ;
}
// DXライブラリ使用の終了処理
DxLib_End() ;
// ソフトの終了
return 0 ;
}
#include "Dxlib.h"
#include "a.h"
void Draw();
void Load();
a1 a[2]={
{0,0,"aaa.png"},
{0,0,"bbb.png"}
};
void Load(){
for(int i=0; i<2 ; i++){
kyara[i].hand=LoadGraph(a[i].name);
};
}
void Draw(){
for(int i=0; i<2 ; i++){
DrawGraph(a[i].x,a[i].y,a[i].hand,TRUE);
};
}
コンパイルエラーはでないのですが画像が表示されず黒い画面のままです
自分はif文が書かれている部分がおかしいのかなと思ってのですが分かりません
画像データがある位置はデバッグファイルの中なのであっていると思うのですが