mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +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
@@ -7365,8 +7365,6 @@ int Game::get_timestep(void)
|
||||
{
|
||||
switch (gamestate)
|
||||
{
|
||||
case EDITORMODE:
|
||||
return 24;
|
||||
case GAMEMODE:
|
||||
return get_framerate(slowdown);
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user