mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-03-04 09:11:27 +01:00
intro: fix moving animation speed to be independent of viewport size
This commit is contained in:
parent
e4553576ce
commit
145727658f
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ void Gamestate_Logic(struct Game *game, struct IntroResources* data) {
|
|||
data->anim += 1.0/20.0;
|
||||
if (data->in_animation) {
|
||||
int old = data->position%game->viewport.width;
|
||||
data->position -= 10;
|
||||
data->position -= game->viewport.width*0.0078125 > 1 ? game->viewport.width*0.0078125 : 1;
|
||||
if (data->position%game->viewport.width>old) {
|
||||
data->in_animation = false;
|
||||
FillPage(game, data, data->page+1);
|
||||
|
|
Loading…
Add table
Reference in a new issue