えっと
#include "DxLib.h"
int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int){
ChangeWindowMode( TRUE );
DxLib_Init();
int Handle;
Handle = LoadGraph( "画像/キャラクタ00.png" );
DrawGraph( 50, 100, Handle, TRUE );
while( 1 ){
if( CheckHitKey(KEY_INPUT_ESCAPE) == 1 ){
break;
}
}
DxLib_End() ; // DXライブラリ終了処理
return 0 ;
}
#include "DxLib.h"
int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int){
ChangeWindowMode( TRUE );
DxLib_Init();
int x = 50;
int Handle;
Handle = LoadGraph( "画像/キャラクタ01.png" ); // 画像のロード
while( 1 ){
if( ProcessMessage() != 0 ){ // メッセージ処理
break;
}
DrawGraph( x, 100, Handle, TRUE ); //画像の描画
x = x + 2;
Sleep(7);
}
DxLib_End();
return 0;
}