Compare commits

..

2 Commits

Author SHA1 Message Date
e20bb1538e structure changes + typos 2025-01-14 16:48:18 +01:00
7b07969489 small changes 2025-01-14 16:38:04 +01:00

View File

@ -83,11 +83,15 @@ Realization: doing it right the first time is better than fixing it later.
And no, don't "just start programming because the architecture will solve itself later" And no, don't "just start programming because the architecture will solve itself later"
\end{frame} \end{frame}
\section{Learnings}
\begin{frame}[allowframebreaks, fragile]{Spaghetti, an example} \begin{frame}[allowframebreaks, fragile]{Spaghetti, an example}
\begin{itemize} \begin{itemize}
\item Original Ticket:\enquote{attackspeed stat needs reimplementation} \item Original Ticket: \enquote{Attack speed stat needs reimplementation}
\item Step one, make it so Stateffects are not hardcoded in Engine
\framebreak \framebreak
Step one, make it so Stateffects are not hardcoded in Engine
\begin{minted}[linenos,autogobble,samepage=false,breaklines]{c++} \begin{minted}[linenos,autogobble,samepage=false,breaklines]{c++}
void chickengame::pickupables::movementSpeedEffect(Entity* player) void chickengame::pickupables::movementSpeedEffect(Entity* player)
{ {
@ -97,7 +101,8 @@ void chickengame::pickupables::movementSpeedEffect(Entity* player)
\framebreak \framebreak
\item Step two \dots uh oh how do i manage a stateffects life cycle? Step two \dots uh oh how do i manage a stateffects life cycle?
\begin{minted}[linenos,autogobble,samepage=false,breaklines]{c++} \begin{minted}[linenos,autogobble,samepage=false,breaklines]{c++}
void StatEffectsComponent::update() void StatEffectsComponent::update()
{ {
@ -121,7 +126,7 @@ void StatEffectsComponent::modifyStatDur(Stats stat, int duration, int value)
\framebreak \framebreak
\item Step three \dots oh no why are stat numbers hardcoded in the engine? Step three \dots oh no why are stat types hardcoded in the engine?
\begin{minted}[linenos,autogobble,samepage=false,breaklines]{c++} \begin{minted}[linenos,autogobble,samepage=false,breaklines]{c++}
void StatEffectsComponent::modifyStatValue(Stats stat, int modifier) void StatEffectsComponent::modifyStatValue(Stats stat, int modifier)
@ -152,7 +157,6 @@ void chickengame::pickupables::movementSpeedEffect(Entity* player)
\end{minted} \end{minted}
\end{frame} \end{frame}
\section{Learnings}
\subsection{Project environment} \subsection{Project environment}
\begin{frame}{Baby's first \texttt{CMakeLists.txt}} \begin{frame}{Baby's first \texttt{CMakeLists.txt}}