main.cpp 560 B

123456789101112131415161718192021
  1. #include "..\public.h"
  2. #include "windows.h"
  3. int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow){
  4. ChangeWindowMode(true);
  5. if (DxLib_Init() == -1){
  6. MessageBoxA(0,"Failed to initialized DxLib!","Error",MB_ICONERROR);
  7. return -1;
  8. }
  9. if (SetDrawScreen(DX_SCREEN_BACK)!=0){
  10. MessageBoxA(0, "Failed to initialized DxLib!", "Error", MB_ICONERROR);
  11. return -1;
  12. }
  13. while(ProcessMessage() == 0 && ClearDrawScreen() == 0){
  14. LoadGraphScreen(0, 0, "Res\\swzry.png", true);
  15. ScreenFlip();
  16. }
  17. DxLib_End();
  18. return 0;
  19. }