Animated Nukes

What would you like to see in Freeciv? Do you have a good idea what should be improved or how?
Post Reply
NotAnyoneSpecial
Posts: 19
Joined: Wed Feb 27, 2013 10:08 am

Animated Nukes

Post 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?
Elefant
Hardened
Posts: 212
Joined: Sat May 28, 2022 3:55 am

Re: Animated Nukes

Post 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
Last edited by Elefant on Tue Aug 09, 2022 2:54 am, edited 2 times in total.
Civ 3 tileset: viewtopic.php?t=92953
3d Irrlicht desktop client development: viewtopic.php?t=92289&start=20
Elefant
Hardened
Posts: 212
Joined: Sat May 28, 2022 3:55 am

Re: Animated Nukes

Post by Elefant »

Looks like someone tried to or did this a while ago.
https://www.hostedredmine.com/issues/700707
Civ 3 tileset: viewtopic.php?t=92953
3d Irrlicht desktop client development: viewtopic.php?t=92289&start=20
cazfi
Elite
Posts: 3069
Joined: Tue Jan 29, 2013 6:54 pm

Re: Animated Nukes

Post 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.
Elefant
Hardened
Posts: 212
Joined: Sat May 28, 2022 3:55 am

Re: Animated Nukes

Post 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?
Civ 3 tileset: viewtopic.php?t=92953
3d Irrlicht desktop client development: viewtopic.php?t=92289&start=20
Post Reply