diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-03-16 19:41:28 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-03-16 19:41:28 +0100 |
commit | a7552770f8d98f8993c56d592a59b9963eb6e51f (patch) | |
tree | 7cfa9a44bc59389c87a56f7e5799cb3b5d753967 /src/system.cc | |
parent | 9a85bff309dc6a3dba630e049d9846df2a81ff7d (diff) |
more natural speed semantic (speed++ -> animation is faster)
Diffstat (limited to 'src/system.cc')
-rw-r--r-- | src/system.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/system.cc b/src/system.cc index e0765c2..9e36c0a 100644 --- a/src/system.cc +++ b/src/system.cc @@ -82,11 +82,11 @@ void System::loadPattern_buf(uint8_t *pattern) active_anim.length += pattern[1]; if (active_anim.type == AnimationType::TEXT) { - active_anim.speed = (pattern[2] & 0xf0) + 15; + active_anim.speed = 250 - (pattern[2] & 0xf0); active_anim.delay = (pattern[2] & 0x0f ) << 4; active_anim.direction = pattern[3] >> 4; } else if (active_anim.type == AnimationType::FRAMES) { - active_anim.speed = ((pattern[2] & 0x0f) << 4) + 15; + active_anim.speed = 250 - ((pattern[2] & 0x0f) << 4); active_anim.delay = (pattern[3] & 0x0f) << 2; active_anim.direction = 0; } |