The Battle for Wesnoth is an open source, turn-based strategy game with a high fantasy theme. It features both singleplayer and online/hotseat multiplayer combat.
Explore the world of Wesnoth and take part in its many adventures! Embark on a desperate quest to reclaim your rightful throne... Flee the Lich Lords to a new home across the sea... Delve into the darkest depths of the earth to craft a jewel of fire itself... Defend your kingdom against the ravaging hordes of a foul necromancer... Or lead a straggly band of survivors across the blazing sands to confront an unseen evil.
The choice is up to you...
").appendTo("#showcase");var p=e("#screenshots-scrollarea");var g,w,b=false,y=300,L=50,k=854,T=480;var I=e("#showcase-current"),S,j,E,W;function C(r){if(r=o.length||r==w){return}var n=p.find("a")[r],s=o[r];switch(s.type){case"pic":if(s.type!==g){I.html("");S=I.find("#showcase-loading");W=I.find("a")}j=W.children();E=e("
!["+s.alt+"]()
");E.prependTo(W);E.on("load",(function(){b=true;S.hide();W.attr("href",s.href);j.fadeOut(y,(function(){j.remove();j=E=null}))}));b=false;E.attr("src",s.embed);setTimeout((function(){if(!b){S.fadeIn(L)}}),100);break;case"vyt":curScreenshot=newScreenshot=null;if(s.type===g){I.find("iframe").attr("src",s.embed)}else{I.html("")}break;default:curScreenshot=newScreenshot=null;I.html("
:(")}p.find("a").not(n).removeClass("current");e(n).toggleClass("current");g=s.type;w=r}p.children().each((function(t){e(this).click((function(){C(t);return false}))}));C(0);var X=e("#screenshots-strip"),D=e("#screenshots-left"),O=e("#screenshots-right");var x=-1,Q=1,q=100,z=100,A=250,B,F;function G(){if(B!==undefined){B=clearInterval(B)}return false}function H(t){var r=e(),n=e(),s=p.scrollLeft(),a=p[0].scrollWidth-p[0].clientWidth;if(s=a){r=r.add(O);if(F==Q){G()}}else{n=n.add(O)}if(r){r.fadeOut(t)}if(n){n.fadeIn(t)}}H(0);function J(e){p.animate({scrollLeft:p.scrollLeft()+q*e},{duration:80,complete:function(){H(A)}})}function K(e){F=e;J(e);B=setInterval(J,z,e);return false}D.add(O).click((function(){return false}));D.mousedown((function(){return K(x)}));O.mousedown((function(){return K(Q)}));D.add(O).mouseup((function(){return G()}));D.add(O).mouseleave((function(){return G()}));var M=X.get(0),N=[],P,R=0,U=20;function V(e){P=false;for(var t=0;t