Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-03-29 | Return a reference instead of a pointer in addVehicle() | cflip | |
2022-03-26 | Fix SDL include path in window.cpp | cflip | |
2022-03-26 | Add missing #includes for find_if and ceil | cflip | |
2022-03-26 | Implement sprite depth sorting | cflip | |
This algorithm draws the level in two passes; the ground and rail tiles are drawn first, then the train cars and walls. This method isn't perfect, but it'll do for now. | |||
2022-03-24 | Add a header to the level file format | cflip | |
2022-03-24 | Create new trains on right click instead of moving the existing train | cflip | |
2022-03-24 | Don't create a copy of the train graphics per vehicle | cflip | |
2022-03-24 | Add acceleration/deceleration to the train | cflip | |
2022-03-24 | Add camera panning with arrow keys | cflip | |
2022-03-23 | Automatically copy resources to build directory | cflip | |
2022-03-23 | Simplify track sprite lookup | cflip | |
2022-03-23 | Prevent oversized levels from saving | cflip | |
The current level format uses bytes to store the width and height, so levels that are larger than that are not allowed to be saved. I don't think that the game will need levels larger than 255x255, but if it does then the level format can be updated. | |||
2022-03-23 | Reallocate tilemap on level load | cflip | |
This prevents some issues with loading levels that are larger than the current one. | |||
2022-03-21 | Implement simple level saving and loading | cflip | |
For now, it just reads and writes the width, height, and tile data to 'level.non' | |||
2022-03-21 | Add support for keyboard events in the Window | cflip | |
2022-03-21 | Minor improvements in Window class | cflip | |
* Ensure event callbacks are not null before calling them * Mark shouldClose() as const * Use nullptr instead of NULL | |||
2022-03-21 | Add a basic wall tile | cflip | |
2022-03-06 | Create new tile byte format | cflip | |
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-03 | Keep list of all vehicles in Level class | cflip | |
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-03 | Remove unnecessary method parameter in Train class | cflip | |
2022-02-28 | Quick and simple multi-car train implementation | cflip | |
2022-02-27 | Fix typo in window.cpp | cflip | |
2022-02-27 | Remove unnecessary <cmath> include in util.h | cflip | |
2022-02-27 | Add sprite for east-west moving train car | cflip | |
2022-02-27 | Add highlight on hovered tiles | cflip | |
2022-02-27 | Automatically set train direction on right-click | cflip | |
2022-02-27 | Miscellaneous code cleanup | cflip | |
2022-02-27 | Add ClangFormat configuration | cflip | |
2022-02-27 | Rename TrainCar to Train | cflip | |
Although the name isn't entirely accurate, it looks nicer. | |||
2022-02-27 | Make train movement smoother | cflip | |
2022-01-29 | Initialize member variables | cflip | |
2022-01-29 | Close program on image read failure | cflip | |
2022-01-29 | refactor: 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> |