How adrienlabayle/sokoban works
This is a small Qt desktop Sokoban game. The workflow starts with the application opening its main window, which loads a level; arrow-key events move the player and push boxes in the map model, and repainting sends the updated map through the game renderer to the screen. The map loader parses text levels, while the model holds terrain and entity positions. Relationships are limited to those visible in the excerpts; the README is empty, and no unsampled capabilities are inferred.
Main entry points: mainwindow.cpp Main window · map.cpp Map state and movement · game.cpp Game facade · display.cpp Map renderer
Components 7
Qt interface
- Qt application
main.cpp - Main window
mainwindow.cpp
Gameplay
- Game facade
game.cpp - Map state and movement
map.cpp - Map renderer
display.cpp
Level loading
- Level parser
Load.cpp
Other components
- Player
Connections 8
- Qt application → Main window: creates
main.cpp - Player → Main window: presses keys
mainwindow.cpp - Main window → Level parser: loads level
mainwindow.cpp - Level parser → Map state and movement: populates
Load.cpp - Main window → Map state and movement: moves player
mainwindow.cpp - Main window → Game facade: requests drawing
mainwindow.cpp - Game facade → Map renderer: delegates drawing
game.cpp - Map renderer → Map state and movement: reads cells
display.cpp