Compare commits
2 Commits
1c281a8526
...
e20bb1538e
| Author | SHA1 | Date | |
|---|---|---|---|
| e20bb1538e | |||
| 7b07969489 |
14
slides.tex
14
slides.tex
@ -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"
|
||||
\end{frame}
|
||||
|
||||
\section{Learnings}
|
||||
\begin{frame}[allowframebreaks, fragile]{Spaghetti, an example}
|
||||
\begin{itemize}
|
||||
\item Original Ticket:\enquote{attackspeed stat needs reimplementation}
|
||||
\item Step one, make it so Stateffects are not hardcoded in Engine
|
||||
\item Original Ticket: \enquote{Attack speed stat needs reimplementation}
|
||||
|
||||
\framebreak
|
||||
|
||||
Step one, make it so Stateffects are not hardcoded in Engine
|
||||
|
||||
\begin{minted}[linenos,autogobble,samepage=false,breaklines]{c++}
|
||||
void chickengame::pickupables::movementSpeedEffect(Entity* player)
|
||||
{
|
||||
@ -97,7 +101,8 @@ void chickengame::pickupables::movementSpeedEffect(Entity* player)
|
||||
|
||||
\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++}
|
||||
void StatEffectsComponent::update()
|
||||
{
|
||||
@ -121,7 +126,7 @@ void StatEffectsComponent::modifyStatDur(Stats stat, int duration, int value)
|
||||
|
||||
\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++}
|
||||
void StatEffectsComponent::modifyStatValue(Stats stat, int modifier)
|
||||
@ -152,7 +157,6 @@ void chickengame::pickupables::movementSpeedEffect(Entity* player)
|
||||
\end{minted}
|
||||
\end{frame}
|
||||
|
||||
\section{Learnings}
|
||||
\subsection{Project environment}
|
||||
|
||||
\begin{frame}{Baby's first \texttt{CMakeLists.txt}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user