#2
by peot » 7年前
こんな感じですか?
コード:
#include <DxLib.h>
int WINAPI WinMain( HINSTANCE, HINSTANCE, LPSTR, int )
{
ChangeWindowMode( true );
if( DxLib_Init() == -1 ){ return -1; }
SetDrawScreen( DX_SCREEN_BACK );
int count = 0;
int cycle10 = 0;
int cycle8 = 0;
int cycle6 = 0;
while( ProcessMessage() == 0 && !CheckHitKey( KEY_INPUT_ESCAPE ))
{
ClearDrawScreen();
cycle10 = ( count % 240 ) / 24;//10コマアニメ
cycle8 = ( count % 240 ) / 30;//8コマアニメ
cycle6 = ( count % 240 ) / 40;//6コマアニメ
DrawFormatString( 150, 150, 0xffffff, "%d, %d, %d", cycle10, cycle8, cycle6 );
ScreenFlip();
++count;
}
DxLib_End();
return 0;
}
こんな感じですか?
[code]
#include <DxLib.h>
int WINAPI WinMain( HINSTANCE, HINSTANCE, LPSTR, int )
{
ChangeWindowMode( true );
if( DxLib_Init() == -1 ){ return -1; }
SetDrawScreen( DX_SCREEN_BACK );
int count = 0;
int cycle10 = 0;
int cycle8 = 0;
int cycle6 = 0;
while( ProcessMessage() == 0 && !CheckHitKey( KEY_INPUT_ESCAPE ))
{
ClearDrawScreen();
cycle10 = ( count % 240 ) / 24;//10コマアニメ
cycle8 = ( count % 240 ) / 30;//8コマアニメ
cycle6 = ( count % 240 ) / 40;//6コマアニメ
DrawFormatString( 150, 150, 0xffffff, "%d, %d, %d", cycle10, cycle8, cycle6 );
ScreenFlip();
++count;
}
DxLib_End();
return 0;
}
[/code]