d.cpp

来自「推箱子的程序是用来解释一种推箱子的技术的源代码的一个创意」· C++ 代码 · 共 37 行

CPP
37
字号
   {
      man [ i ].x += po.x * 100;
      man [ i ].y += po.y * 100;
     }

     Polyline ( hdc, man, 5);


    }
    void MoveCoordinate ( HDC hdc, int cxClient, int cyClient)
    {
     SetMapMode ( hdc, MM_ISOTROPIC);
     SetWindowExtEx ( hdc, 1500, 1500, NULL);
        SetViewportExtEx (hdc, cxClient , cyClient, NULL) ;
      SetViewportOrgEx ( hdc, cxClient / 10, cyClient / 10 , NULL);
    }

    LRESULT CALLBACK WinProc ( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
    {
     static int   cxClient, cyClient;
     static int   cxChar, cxCaps, cyChar;

     static int   iLevel; // 关
     static int   iNum; // 统计步数
     static BOOL   fPass;  // 过关
     static BOOL   bMan;


     static struct PointSex *pLevelMap; // 每一关的地图链表
     struct PointSex   *pPS0, *pPS1;  // 每一关的地图链表

     static struct Points *pDest, *pBox;
     static struct Points *pPs2;



⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?