SokobanGame.hex (60.5 KB)
!!
!
!
You can use the attached map editor to write your own map. At present, I am making more map enrichment games
The map editor is in a folder on github called “地图编辑器”
When you start the editor, you are prompted to enter the BMP number ↓
/ / 0 - > blank
/ / 1 - > wall
/ / 2 - > player
/ / 3 - > box
/ / 4 - > position
/ / 5 - > in the correct location of the box
// 6-> player standing on the tag
// each map size 16*16 can be added on its own
Enter the level you want to edit in this screen, such as 24↓
Since the map for 24 levels already exists, it will be loaded, and we’ll create a new level demonstration↓
We edited a new level
The “wsad” key controls the direction
“E” key to confirm
The “q” key selection box can refer to the BMP table above
The “o” key exports the archive
( Don’t try to press another key, I won’t say that the editor was changed from my old project, so… )
When you edit, don’t leave the edit area, or you may have an unknown error.
When the map is written, press the “O” key to export it
An option to select open mode will pop up
Select the text editor
Finally, copy and paste the map file to this location in the source code↓
2018/7/10 u8-15:00: add a level, now there are 32 levels
2018/12/30 :
- Game Map Changed from One-Dimensional Array to Two-Dimensional Array
- A key and left key press at the same time to reverse the color of the game screen
- New Cover
- Small menu contrast color
The source code : https://github.com/createskyblue/Sokoban