#include "DxLib.h"
int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int){
ChangeWindowMode(TRUE),DxLib_Init(),SetDrawScreen(DX_SCREEN_BACK);
int music=LoadSoundMem("ファイル//music.mp3");
int picture=LoadGraph("ファイル//picture.bmp");
int count=0;
int gray=GetColor(128,128,128);
PlaySoundMem(music,DX_PLAYTYPE_BACK);
while( ScreenFlip()==0 && ProcessMessage()==0 && ClearDrawScreen()==0 ){
DrawGraph(0,0,picture,FALSE);
for(int i=0;i<100;i++)DrawLine(241,460-225*i+count*225/60,640,460-225*i+count*225/60,gray);
count++;
if(CheckHitKey(KEY_INPUT_ESCAPE)==1)break;
}
DxLib_End();
return 0;
}
メモリも足りているとは思うのですが…
DrawLineの方も表示が遅いです