summaryrefslogtreecommitdiff
path: root/src/train.h
AgeCommit message (Collapse)Author
2022-04-01Add a game timerHEADmastercflip
This adds a delta time that ensures that everything moves at the same speed regardless of framerate or system.
2022-03-26Implement sprite depth sortingcflip
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-24Don't create a copy of the train graphics per vehiclecflip
2022-03-24Add acceleration/deceleration to the traincflip
2022-03-23Automatically copy resources to build directorycflip
2022-03-03Remove unnecessary method parameter in Train classcflip
2022-02-28Quick and simple multi-car train implementationcflip
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-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>