#include "DxLib.h"

#include "Game.h"

// ゲームのエントリーポイント
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
    ChangeWindowMode(TRUE);
    SetGraphMode(640, 480, 32);

    if (DxLib_Init() == -1)
        return -1;

    SetDrawScreen(DX_SCREEN_BACK);

    // ゲームを初期化し、メインループを開始する
    Game game;
    if (!game.Initialize())
    {
        DxLib_End();
        return -1;
    }

    game.MainLoop();

    DxLib_End();
    return 0;
}
