Home

Excel Tower Defense

%3CLINGO-SUB%20id%3D%22lingo-sub-283795%22%20slang%3D%22en-US%22%3EExcel%20Tower%20Defense%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-283795%22%20slang%3D%22en-US%22%3E%3CP%3EHere's%20an%20updated%20version%20of%20my%20Excel%20Tower%20Defense%20game%20as%20mentioned%20in%20the%20recent%20Excel%20AMA%20on%20Reddit.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EBackstory%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EShortly%20before%20Office%202010%20shipped%2C%20the%20Excel%20test%20team%20was%20instructed%20to%20take%20a%20couple%20days%20to%20make%20solutions%20that%20could%20stress%20test%20some%20of%20the%20new%20features.%20Because%20I%20enjoy%20playing%20tower%20defense%20style%20games%20I%20decided%20to%20make%20one%20in%20Excel%20using%20a%20mixture%20of%20many%20of%20the%20new%20features%20in%20that%20release%20(Slicers%2C%20cross-sheet%20dependent%20Conditional%20Formatting%2C%20the%20AGGREGATE%20function%2C%20and%20Sparklines).%20As%20an%20added%20challenge%20given%20my%20familiarity%20with%20calc%20in%20Excel%2C%20I%20wanted%20to%20see%20how%20much%20of%20the%20game%20could%20be%20written%20without%20using%20any%20macros.%3CBR%20%2F%3E%20%3CBR%20%2F%3EI%20spent%20roughly%204%20work%20days%20making%20the%20first%20playable%20version%2C%20including%20significant%20time%20spent%20discovering%2C%20reporting%2C%20and%20working%20around%20a%20number%20of%20product%20bugs%20along%20the%20way%20so%20that%20I%20could%20complete%20the%20game%20and%20also%20get%20the%20product%20bugs%20fixed%20before%20shipping.%20After%20the%20initial%20version%20was%20up%20and%20running%2C%20I%20gave%20it%20another%208-16%20hours%20of%20hobby%20time%20adding%20features%20and%20fixing%20bugs%20in%20my%20solution%2C%20such%20as%20adding%20localizability%20and%20making%20mouse%20UI%20more%20robust.%20In%20the%20years%20since%20then%2C%20I%E2%80%99ve%20probably%20only%20looked%20at%20it%20for%20an%20hour%20or%20so%20per%20year%2C%20fixing%20small%20issues%20and%20adding%20support%20for%20sheet%20zoom%20levels%20and%20non%2096dpi%20Monitors.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDue%20to%20the%20internal%20popularity%2C%20one%20of%20our%20PMs%20at%20the%20time%20offered%20to%20write%20up%20a%20blog%20post%20about%20it%20and%20another%20Missile%20Command%20game%20created%20by%20a%20coworker%20around%20the%20same%20time.%20You%20can%20find%20that%20blog%20post%20at%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fblog%2F2010%2F07%2F27%2Fhow-its-made-tower-defense-a-game-in-excel-2010%2F%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fmicrosoft-365%2Fblog%2F2010%2F07%2F27%2Fhow-its-made-tower-defense-a-game-in-excel-2010%2F%3C%2FA%3E.%20Since%20the%20images%20appear%20broken%20you%20may%20have%20more%20success%20reading%20this%20copy%20from%20archive.org%20(%3CA%20href%3D%22https%3A%2F%2Fweb.archive.org%2Fweb%2F20100730035318%2Fhttp%3A%2F%2Fblogs.msdn.com%3A80%2Fb%2Fexcel%2Farchive%2F2010%2F07%2F27%2Fhow-it-s-made-tower-defense-a-game-in-excel-2010.aspx%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fweb.archive.org%2Fweb%2F20100730035318%2Fhttp%3A%2F%2Fblogs.msdn.com%3A80%2Fb%2Fexcel%2Farchive%2F2010%2F07%2F27%2Fhow-it-s-made-tower-defense-a-game-in-excel-2010.aspx%3C%2FA%3E).%20We%20also%20published%20a%20couple%20YouTube%20videos%20going%20behind%20the%20scenes%20of%20how%20they%20work.%20The%20video%20for%20Tower%20Defense%20can%20be%20found%20at%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DSFzi0Xs5_vw%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DSFzi0Xs5_vw%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EWhile%20you%20may%20notice%20that%20the%20file%20contains%20macros%2C%20these%20are%20only%20used%20to%20enable%20mouse%20UI%20(hover%20and%20click).%20To%20play%20the%20game%20without%20enabling%20macros%2C%20simply%20Unhide%20the%20%E2%80%9CGame%E2%80%9D%20sheet%20and%20then%20after%20switching%20to%20it%2C%20use%20the%20keyboard%20to%20select%20cells.%20Pressing%20F9%20to%20recalculate%20will%20trigger%20the%20next%20frame%2C%20treating%20the%20active%20cell%20as%20a%20mouse%20click.%20For%20best%20results%2C%20please%20make%20sure%20to%20close%20any%20other%20books%20before%20opening%20this%20one%20and%20don%E2%80%99t%20open%20any%20other%20books%20at%20the%20same%20time.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-283795%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%20Desktop%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EShow%20and%20Tell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Nathan Shomber
Microsoft

Here's an updated version of my Excel Tower Defense game as mentioned in the recent Excel AMA on Reddit.

 

Backstory:

Shortly before Office 2010 shipped, the Excel test team was instructed to take a couple days to make solutions that could stress test some of the new features. Because I enjoy playing tower defense style games I decided to make one in Excel using a mixture of many of the new features in that release (Slicers, cross-sheet dependent Conditional Formatting, the AGGREGATE function, and Sparklines). As an added challenge given my familiarity with calc in Excel, I wanted to see how much of the game could be written without using any macros.

I spent roughly 4 work days making the first playable version, including significant time spent discovering, reporting, and working around a number of product bugs along the way so that I could complete the game and also get the product bugs fixed before shipping. After the initial version was up and running, I gave it another 8-16 hours of hobby time adding features and fixing bugs in my solution, such as adding localizability and making mouse UI more robust. In the years since then, I’ve probably only looked at it for an hour or so per year, fixing small issues and adding support for sheet zoom levels and non 96dpi Monitors.

 

Due to the internal popularity, one of our PMs at the time offered to write up a blog post about it and another Missile Command game created by a coworker around the same time. You can find that blog post at https://www.microsoft.com/en-us/microsoft-365/blog/2010/07/27/how-its-made-tower-defense-a-game-in-e.... Since the images appear broken you may have more success reading this copy from archive.org (https://web.archive.org/web/20100730035318/http://blogs.msdn.com:80/b/excel/archive/2010/07/27/how-i...). We also published a couple YouTube videos going behind the scenes of how they work. The video for Tower Defense can be found at: https://www.youtube.com/watch?v=SFzi0Xs5_vw

While you may notice that the file contains macros, these are only used to enable mouse UI (hover and click). To play the game without enabling macros, simply Unhide the “Game” sheet and then after switching to it, use the keyboard to select cells. Pressing F9 to recalculate will trigger the next frame, treating the active cell as a mouse click. For best results, please make sure to close any other books before opening this one and don’t open any other books at the same time.

To play the game, download the file here: http://blogs.msdn.com/b/excel/archive/2010/06/23/excel-2010-games-missile-command-and-tower-defense.aspx