[b36] emotes and particle effects still jitter

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
tiger_eye
Perspiring Physicist
Posts: 889
Joined: Thu Feb 17, 2011 5:20 am

[b36] emotes and particle effects still jitter

#1 Post by tiger_eye »

As the subject says, emotes and particle effects still "jitter", as was happening here:

http://forums.te4.org/viewtopic.php?f=42&t=25407

tiger_eye
Perspiring Physicist
Posts: 889
Joined: Thu Feb 17, 2011 5:20 am

Re: [b36] emotes and particle effects still jitter

#2 Post by tiger_eye »

Fix is attached. Also fixes the jittery/uneven map scrolling that Ido Y. mentioned in the roguelike radio interview with DarkGod.

I was poking around the core map code making changes for hex grids, and I figured I could give this another look. This patch is a little more than two lines ;-)
Attachments
smooth_map_scrolling.txt
(5.97 KiB) Downloaded 107 times
darkgod wrote:OMFG tiger eye you are my hero!

tiger_eye
Perspiring Physicist
Posts: 889
Joined: Thu Feb 17, 2011 5:20 am

Re: [b36] emotes and particle effects still jitter

#3 Post by tiger_eye »

Fixed/improved a couple more things: When the map is smaller than the viewport in a dimension, the map will remain centered (instead of going back and forth). 0 smooth creature movement is handled properly.

Two files are attached:

"smooth_map_scrolling2-incremental.txt", which assumes the patch in the previous post has already been applied.

"smooth_map_scrolling2-full.txt", which includes the changes from the previous post.
Attachments
smooth_map_scrolling2-incremental.txt
(2.44 KiB) Downloaded 85 times
smooth_map_scrolling2-full.txt
(7.79 KiB) Downloaded 87 times
darkgod wrote:OMFG tiger eye you are my hero!

Post Reply