贪吃蛇小游戏代码C++编写面向对象设计
代码不长,仅供参考,借鉴来的,小游戏, CSnakeGame::CSnakeGame(IGraphicOut * const pGO) : IActionHandler(pGO), m_xSize(15), m_ySize(15), m_xPos(m_xSize/2), m_yPos(m_ySize/2), m_xPosBody(m_xPos+1), m_yPosBody(m_yPos), m_curDir(left), m_score(12345), m_timerCount(0), m_mouse
下载地址
用户评论