summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-03-21Implement simple level saving and loadingcflip
For now, it just reads and writes the width, height, and tile data to 'level.non'
2022-03-21Add support for keyboard events in the Windowcflip
2022-03-21Minor improvements in Window classcflip
* Ensure event callbacks are not null before calling them * Mark shouldClose() as const * Use nullptr instead of NULL
2022-03-21Add a basic wall tilecflip
2022-03-06Create new tile byte formatcflip
Track tiles now have their direction information stored in the high 4 bits of the tile byte, creating a clearer separation between the type of tile and other persistent data. This will make the code more managable for adding new tile types and with the new macros and enums the code is much easier to read and understand.
2022-03-03Keep list of all vehicles in Level classcflip
Newly created vehicles are now to be added to the Level, which automatically updates and renders them. This infrastructure will be needed for depth sorting and eventually level saving.
2022-03-03Remove unnecessary method parameter in Train classcflip
2022-02-28Quick and simple multi-car train implementationcflip
2022-02-27Fix typo in window.cppcflip
2022-02-27Remove unnecessary <cmath> include in util.hcflip
2022-02-27Add sprite for east-west moving train carcflip
2022-02-27Add highlight on hovered tilescflip
2022-02-27Automatically set train direction on right-clickcflip
2022-02-27Miscellaneous code cleanupcflip
2022-02-27Add ClangFormat configurationcflip
2022-02-27Rename TrainCar to Traincflip
Although the name isn't entirely accurate, it looks nicer.
2022-02-27Make train movement smoothercflip
2022-01-29Initialize member variablescflip
2022-01-29Close program on image read failurecflip
2022-01-29refactor: adjust the project infra. (#1)Jun Zhang
* refactor: adjust the project infra. This patch adds cmake build system to the project, and adjust infrastructure stuff. Signed-off-by: Jun Zhang <jun@junz.org> * fix: remove compiler flags that only exist in GCC. Signed-off-by: Jun Zhang <jun@junz.org>