mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Add interpolation to tile tools
This uses DDA (https://w.wiki/6RSQ) to draw a line between the previous frame's mouse position, and the current frame's mouse position. This means that there will no longer be gaps in lines of tiles if you move your mouse fast enough (which is actually rather slow, so it gets annoying quickly). The editor's timestep is no longer hardcoded to 24, as I assume that was only done so there would be less gaps in lines of tiles drawn. With interpolation, that is no longer an issue, so I've removed the editor's special case for the timestep.
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
6cae666c76
commit
d152730510
@@ -195,6 +195,7 @@ public:
|
||||
std::string filename;
|
||||
std::string loaded_filepath;
|
||||
|
||||
int old_tilex, old_tiley;
|
||||
int tilex, tiley;
|
||||
int keydelay, lclickdelay;
|
||||
bool savekey, loadkey;
|
||||
|
||||
Reference in New Issue
Block a user