From f381cd2c7414e218db5d676cf6d6669e1853c258 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 13 Jul 2024 11:49:39 +0200 Subject: improve space inavders material --- Info/9/3/SpaceInvaders/img/greenfoot_buttons.png | Bin 2173 -> 0 bytes Info/9/3/SpaceInvaders/img/screenshot.jpg | Bin 0 -> 71259 bytes Info/9/3/SpaceInvaders/img/space-invaders.png | Bin 11288 -> 6784 bytes Info/9/3/SpaceInvaders/modellierung_handout.tex | 17 +++++++++++------ Info/9/3/SpaceInvaders/slides.md | 2 +- latex/images/greenfoot_buttons.png | Bin 0 -> 6292 bytes 6 files changed, 12 insertions(+), 7 deletions(-) delete mode 100644 Info/9/3/SpaceInvaders/img/greenfoot_buttons.png create mode 100644 Info/9/3/SpaceInvaders/img/screenshot.jpg create mode 100644 latex/images/greenfoot_buttons.png diff --git a/Info/9/3/SpaceInvaders/img/greenfoot_buttons.png b/Info/9/3/SpaceInvaders/img/greenfoot_buttons.png deleted file mode 100644 index 8aab0fc9..00000000 Binary files a/Info/9/3/SpaceInvaders/img/greenfoot_buttons.png and /dev/null differ diff --git a/Info/9/3/SpaceInvaders/img/screenshot.jpg b/Info/9/3/SpaceInvaders/img/screenshot.jpg new file mode 100644 index 00000000..4e461d59 Binary files /dev/null and b/Info/9/3/SpaceInvaders/img/screenshot.jpg differ diff --git a/Info/9/3/SpaceInvaders/img/space-invaders.png b/Info/9/3/SpaceInvaders/img/space-invaders.png index a80c4fd2..1d65f6f6 100644 Binary files a/Info/9/3/SpaceInvaders/img/space-invaders.png and b/Info/9/3/SpaceInvaders/img/space-invaders.png differ diff --git a/Info/9/3/SpaceInvaders/modellierung_handout.tex b/Info/9/3/SpaceInvaders/modellierung_handout.tex index a35bfaa1..7414c73f 100644 --- a/Info/9/3/SpaceInvaders/modellierung_handout.tex +++ b/Info/9/3/SpaceInvaders/modellierung_handout.tex @@ -11,18 +11,23 @@ \begin{defbox}{Klassenkarte $\Rightarrow$ Code} \iftoggle{lehrerversion}{\iftrue}{\iffalse} \begin{tabular}{p{0.5\textwidth} p{0.5\textwidth}} -\vspace{0.01cm} +\vspace{0.1cm} \begin{tikzpicture} -\begin{class}[text width=4cm]{Lazer}{0, 0} +\begin{class}[text width=4cm]{Laser}{0, 0} \attribute{x} \attribute{y} \attribute{geschwindigkeit} \operation{bewegen()} \end{class} + +\draw[->] (Laser) edge[above, red] node {1.} ($(Laser.north east) + (1, 0)$); +\draw[->] (Laser) edge[above, blue] node {2.} ($(Laser.east) + (1, 0)$); +\draw[->] (Laser) edge[above, teal] node {3.} ($(Laser.south east) + (1, 0)$); \end{tikzpicture} & +\vspace{-0.25cm} \begin{minted}[]{java} -public class Lazer +public class Laser { int x; int y; @@ -42,10 +47,10 @@ public class Lazer \section*{Schritte} \begin{enumerate}[itemsep=0.2cm] -\item Klasse mithilfe des \gap{{\Huge Klassennamen}} definieren. -\item Attribute mit geeigneten \gap{{\Huge Datentypen}} deklarieren. +\item \textcolor{red}{Klasse} mithilfe des \gap{{\Huge Klassennamen}} definieren. +\item \textcolor{blue}{Attribute} mit geeigneten \gap{{\Huge Datentypen}} deklarieren. \vspace{0.3cm} -\item Methoden mit geeignetem \iflehrer{{\Huge Rückgabetyp und Parametern}}{\ruletoend{0.1pt}} \\ +\item \textcolor{teal}{Methoden} mit geeignetem \iflehrer{{\Huge Rückgabetyp und Parametern}}{\ruletoend{0.1pt} \\} definieren. \end{enumerate} diff --git a/Info/9/3/SpaceInvaders/slides.md b/Info/9/3/SpaceInvaders/slides.md index b6eb5141..c72a461e 100644 --- a/Info/9/3/SpaceInvaders/slides.md +++ b/Info/9/3/SpaceInvaders/slides.md @@ -99,7 +99,7 @@ Damit Grennfoot ein Objekt etwas tun lassen kann, muss es ein `Actor` *sein*. ## Greenfoot und die geheimnisvollen Knöpfe -![](img/greenfoot_buttons.png){.center} +![](greenfoot_buttons.png){.center} ### Act diff --git a/latex/images/greenfoot_buttons.png b/latex/images/greenfoot_buttons.png new file mode 100644 index 00000000..410b26b1 Binary files /dev/null and b/latex/images/greenfoot_buttons.png differ -- cgit v1.2.3