\documentclass[dvipsnames,final]{beamer}

\usepackage{magica-common}

\title{To The Stars Battle Diagrams \\ I.1 A Wish}
\author{Leni Aniva}
\date{08 July 2023}

\begin{document}

\frame{\titlepage}

\begin{frame}
	\frametitle{I.1.931 - 1109}

	\begin{tikzpicture}
		\path[use as bounding box] (-5.5,-4) rectangle (5.5,3);
		% Background
		\filldraw[pavement] (-6,-1) rectangle (5.5,1);
		\filldraw[pavement] (-6,1) rectangle (-5,3);
		\only<1-3>{
		\pic at (1,2) {Magica object turbine};
		}
		\pic at (-1,2) {Magica object turbine};
		\pic at (-3,2) {Magica object turbine};
		\pic at (3,2) {Magica object solarpanel};
		\pic at (4.1,2) {Magica object solarpanel};
		\draw[material railing] (-4.5,1.2) -- (-4.5,3);

		\only<1>{
		\Magica[ShizukiR](1,-.5)
		\Annotate($(char)+(1,1)$){Shizuki R.}
		\Civilian(0.3,-.5)
		\Annotate($(char)+(-1,1)$){Simona}
		\Demon[semitransparent](2.4,1)
		}
		\only<2>{
			\Magica[ShizukiR](0.7,0)
			\Civilian(0,0.3)
			\MilActivity[faction=hostile,main=explosion] (2,-1)
		}
		\only<3>{
			\Magica[ShizukiR](-0.4,0)
			\Civilian(-0.1,0.3)
		}
		\only<4>{
			\Magica[ShizukiR](-4,2.8)
			\Civilian(-4,3.2)
			\MilActivity[faction=hostile,main=explosion] (1,2)
		}

		\only<2>{
		\Demon(2,1)
		\Demon[semitransparent](2.6,1)
		\Demon[semitransparent](3.4,1.2)
		\MilLand[faction=hostile,
			main=demon,
			echelon=squad] (3,-3)
		}
		\only<3>{
		\Demon(1.5,1)
		\Demon(2.1,1)
		\Demon(2.9,1.2)
		\MilLand[faction=hostile,
			main=demon,
			echelon=squad] (2.5,-2)
		}
		\only<4>{
		\Demon(1.1,1.1)
		\Demon(1.8,1)
		\Demon(2.4,1.2)
		\MilLand[faction=hostile,
			main=demon,
			echelon=squad] (2,-2)
		}
	\end{tikzpicture}
\end{frame}

\begin{frame}
	\frametitle{I.1.931 - 1109}
	\begin{tikzpicture}
		%\path[use as bounding box] (-5.5,-4) rectangle (5.5,3);
		% Background
		\filldraw[pavement] (2,-1) rectangle (4,6);
		\filldraw[pavement] (4,-1) rectangle (7,-.2);
		\pic at (5.8,1) {Magica object turbine};
		\draw[material railing] (4.5,0)  -- (4.5,6);
		\draw[material wall]
			(0,2) -- (-1,2) -- (-1,-1)
			(1.8,-1) -- (1.8,2) -- (1,2);
		\draw[material wall] (1.8,2.6) --  ++(0,1.5) -- ++(-1.5,0) -- ++(0,-1.5) -- cycle;

		\only<1>{
		\Magica[ShizukiR](3.8,0.5)
		\Civilian(3.8,0.2)
		}
		\only<2>{
		\Magica[ShizukiR](3.2,1.5)
		\draw[material laser] (char) -- (6,4);
		\Civilian(3.3,1.2)
		}
		\only<3>{
		\Magica[ShizukiR](0.9,2.3)
		\Civilian(1.2,2.3)
		}
		\only<4>{
		\Magica[ShizukiR](1,0.3)
		\draw[material laser] (char) -- (-.5,4.4);
		\Civilian(1.2,0.5)

		\Demon (-.2,4.6);
		\Demon (-.5,4.4);
		\Demon (-1,3.5);
		\Demon (1.7,2.2);
		}
		\only<5>{
		\Magica[TomoeM](0.7,0.9) {Tomoe M.}

		\coordinate (emit) at (char.north);
		\coordinate (centre) at (0.7,0.8);
		\Demon ($(-.2,4.6)!.1!(centre)$);
		\draw[material bullet] (emit) -- (char);
		\Demon ($(-.5,4.4)!.1!(centre)$);
		\draw[material bullet] (emit) -- (char);
		\Demon ($(-1,3.5)!.1!(centre)$);
		\draw[material bullet] (emit) -- (char);
		\Demon ($(1.7,2.2)!.1!(centre)$);
		\draw[material bullet] (emit) -- (char);
		}
		\onslide<6>{
		\Magica[TomoeM](0.7,0.9)
		}
		\onslide<5->{
		\Magica[ShizukiR](1,0.3)
		\Civilian(1.2,0.5)
		}
		\MilLand[faction=hostile,
			main=demon,
			echelon=squad] (7,5)
		\MilLand[faction=hostile,
			main=demon,
			echelon=squad] (6,4)
	\end{tikzpicture}
\end{frame}

\end{document}
