Page 1 of 1

Animated Nukes

Posted: Mon Apr 27, 2020 9:54 pm
by NotAnyoneSpecial
Is it currently possible to implement short animation sequences like in civ2 for the nuke event rather than just the static image overlay? And if not is this planned in the roadmap somewhere?

Re: Animated Nukes

Posted: Fri Jun 24, 2022 9:53 pm
by Elefant
This would probably be one of the easiest ways to get into the Freeciv code. There already is an animation for an explosion in the game engine, and a while back, some one made a animated graphic, which can be found on the wiki.
Here is a feature request for this.
https://osdn.net/projects/freeciv/ticket/44774

Re: Animated Nukes

Posted: Fri Jun 24, 2022 9:59 pm
by Elefant
Looks like someone tried to or did this a while ago.
https://www.hostedredmine.com/issues/700707

Re: Animated Nukes

Posted: Mon Jun 27, 2022 2:33 am
by cazfi
Elefant wrote: Fri Jun 24, 2022 9:53 pm This would probably be one of the easiest ways to get into the freeciv code.
Not to stop anyone from trying, but don't assume that all freeciv coding would be too hard to you if it turns out too hairy to get all the right parts of the layers above the animated one to repaint correctly when you draw "below" them.
Well, assuming you don't just dismiss all the partial refresh stuff and force redraw of absolutely everything (all layers and entire screen) for each frame. Which probably wouldn't be a big issue for most users in 202x.

Re: Animated Nukes

Posted: Mon Jun 27, 2022 3:11 pm
by Elefant
From what I can tell, the changes would only be in one file and the explosion animation has all the code needed to do it. It should just be a matter of copy and paste.
Well, assuming you don't just dismiss all the partial refresh stuff and force redraw of absolutely everything (all layers and entire screen) for each frame. Which probably wouldn't be a big issue for most users in 202x.
If this wouldn't be a problem, maybe it should be done, so that animated unit and tile extras could be added, and to get rid of the trail some units leave when they move?