\subtitle{Procedural Generation}
\date{Tuesday, 15 May 2018}
\usepackage{chronology}
\begin{document}
	
	\begin{frame}
	\titlepage
	\end{frame}

	\begin{frame}{History of Procedural Generation}
		\note{\begin{itemize}}
		\begin{center}
			\begin{chronology}[5]{1975}{2020}{50ex}[\textwidth]
				\uncover<1->{
					\event{1980}{Rogue}	
					\event{1984}{Elite}
					\event{1991}{Civilization}
					\event{1996}{Diablo}
				}
				\uncover<2->{
					\event{2001}{Runescape}
					\event{2006}{Dwarf Fortress}
					\event{\decimaldate{25}{12}{2008}}{Spelunky}
					\event{2011}{Minecraft}
					\event{2014}{Mountain}
				}
			\end{chronology}
		\end{center}
		\note{\item Abbreviated history anyway}
		\note{\item Procedural Generation used to be used due to space constraints}
		\note{\item Nowadays it tends to be to provide more content}
		\uncover<3->{One of the most common uses for procedural generation is levels}
		
		\note{\end{itemize}}
	\end{frame}

	\section{Level Generation}
	% level generation
	
	\begin{frame}
		\frametitle{Examples: Rogue}
		\begin{itemize}
			\item Spawned an entire genre based on procedural generation.
			\item Randomly generated dungeons
		\end{itemize}
	
		\begin{center}
		\includegraphics[width=0.75\linewidth]{rogue}
		\end{center}
	\end{frame}

	\begin{frame}
		\frametitle{Activity}
		
		\begin{block}{Question}
			What methods are commonly used for generating levels?
		\end{block}
	
		\pause
		\begin{itemize}
			\item Binary Space Partitioning
			\item Random walks
			\item Cellular Automata
			\item Answer Set Programming
			\item Noise-based
			\item Grid Based
		\end{itemize}
	\end{frame}

\begin{frame}[fragile]{Cellular Automata}
	
	\begin{itemize}
		\item Some states (2 or more)
		\item You need a rule (eg, if at least 4 of your neighbours are alive, then return alive, else return dead.)
	\end{itemize}
	
\begin{minted}[breaklines]{python}
for tile in grid:
	neighbors = get_alive_neighbours(tile)
	grid[tile] = rule(neighbours)
\end{minted}

\href{https://blog.jrheard.com/procedural-dungeon-generation-cellular-automata}{Demo}
		
\end{frame}

	\begin{frame}
	\frametitle{Grid Based}
	
	\begin{itemize}
		\item Split the map into blocks
		\item Pick (or generate) a template for each block
		\item Place template on grid
	\end{itemize}

	Examples: \gametitle{UFO: Enemy Unknown}, \gametitle{\href{http://tinysubversions.com/spelunkyGen2/}{Spelunky}}
	\end{frame}

	\begin{frame}
	\frametitle{Noise Based}
	
	\begin{itemize}
		\item Generate noise (usually gradient Noise)
		\item Interpret noise as values
		\item Place template on grid
	\end{itemize}
	
	Examples: \gametitle{The Dwarves of Glistenveld}, \gametitle{\href{https://notch.tumblr.com/post/3746989361/terrain-generation-part-1}{Minecraft}}
	\end{frame}

		
	
	\section{Assets}
	% music, units, etc...
	\begin{frame}
		\frametitle{Generating Assets}
		
		\begin{itemize}
			\item Mostly game specific
			\item Not as much available publicly about how these are done.
		\end{itemize}
	\end{frame}
	
	\begin{frame}
		\frametitle{Speedtree}
		
		\begin{itemize}
			\item Used widely by games and film industry
			\item Mixed procedural generation and hand-crafted
		\end{itemize}
	
		\href{https://someuser-321.github.io/TreeGenerator/TreeD.html}{A bit like this...}
	\end{frame}

	\begin{frame}
	\frametitle{Borderlands}
	
	\begin{itemize}
		\item Randomly generated weapons
		\item Over 17,750,000 different combinations
		\item Lots of properties which determines effects
	\end{itemize}
	\end{frame}

	\begin{frame}
	\frametitle{Galactic Arms Race}
	
	\begin{itemize}
		\item Generate Weapons based on particle systems
		\item Based on NEAT evolutionary algorithm
		\item Choices based on what the player does
		\item Adapt to the player's experience based on usage
	\end{itemize}
	\end{frame}

	\begin{frame}
	\frametitle{Papers, Please}
	
	\begin{itemize}
		\item Procedural generated people with procedurally generated documents
		\item Gameplay dependant on unpredictability
		\item Hand crafted story elements
	\end{itemize}
	\end{frame}
	
	\section{Full Games}
	% games by angelina
	
	\begin{frame}{Full Games}
		\begin{itemize}
			\item What about games?
			\item We can try and generate those to
			\item Try to evolve games that need skill
			\item \url{http://www.gamesbyangelina.org/games/}
		\end{itemize}
	\end{frame}
	
\end{document}