You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include "engine/ticks.hpp" |
|
|
|
#include <cstdint> |
|
|
|
#include <SDL.h> |
|
|
|
namespace devilution { |
|
|
|
uint32_t GetAnimationFrame(uint32_t frames, uint32_t fps) |
|
{ |
|
return (SDL_GetTicks() / fps) % frames; |
|
} |
|
|
|
} // namespace devilution
|
|
|