# Sokoban using C++ and EasyX **Repository Path**: Hachiroku_86/sokoban ## Basic Information - **Project Name**: Sokoban using C++ and EasyX - **Description**: Sokoban using C++ and EasyX - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2024-04-19 - **Last Updated**: 2026-04-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: EasyX, Cpp ## README # README 面向对象开发的一个小作业,使用任意面向对象语言开发一个推箱子游戏 实现了一些基本功能,比如步数记录,返回开始界面,选择关卡,充值关卡,撤销上一步以及等等。 我选用了C++并使用了EasyX的简易图形库。 需要源代码和Text文件夹(其实就是素材文件夹)在同一个路径下才能正确加载。 实际有6关,但第0关只是开始界面的一个预览地图,本来还想写一个彩蛋,可惜还是败给了懒惰。 程序逻辑其实还有bug,要抄作业的可别用我的移动逻辑(笑). 程序素材来自网络,心海像素小人来自米游社,连接如下:https://www.miyoushe.com/ys/article/8756462 The program only supports keyboard direction key input, such as up, down, left, and right. If it cannot be moved, please click the program window to bring it into focus and try again. A small object-oriented development assignment, to create a Sokoban game using any object-oriented language. Some basic features have been implemented, such as step counting, returning to the start screen, level selection, level resetting, undoing the last move, etc. I chose to use C++ and utilized the EasyX simple graphics library. The source code and the Text folder (essentially the assets folder) need to be in the same path to load correctly. There are actually 6 levels, but level 0 is just a preview map on the start screen. I originally wanted to include an Easter egg, but laziness got the better of me. The program logic actually has bugs, so those looking to copy my homework shouldn't use my movement logic (laughs). The program assets are from the internet, and Kokomi's pixel character is from the MiHoYo community, available at: https://www.miyoushe.com/ys/article/8756462.