aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-03-25 13:12:49 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2024-03-25 13:12:49 +0100
commit01b49f4b85cd5a84c48f9da0ebd4fcda20f2e97e (patch)
treed53e25df4c77ddc534cc0bd112f494139d35c7aa
parentd46b83b8f07d3ddbb9ea7ea4ca8339ea15128477 (diff)
downloadsnake-01b49f4b85cd5a84c48f9da0ebd4fcda20f2e97e.tar.gz
snake-01b49f4b85cd5a84c48f9da0ebd4fcda20f2e97e.zip
add make target to download the GraphicsAndGames files
-rw-r--r--Makefile7
-rw-r--r--README.md7
2 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index d36209d..d9b1d3c 100644
--- a/Makefile
+++ b/Makefile
@@ -5,9 +5,14 @@ JAVA_OBJ = $(JAVA_SRC:.java=.class)
javac $<
.PHONY: snake
-snake: $(JAVA_OBJ)
+snake: Zeichenfenster.java $(JAVA_OBJ)
java Snake
+Zeichenfenster.java:
+ curl -O "https://informatikschulbuch.de/wp-content/daten/Informatik3/Vorlagen/Kapitel4/BlueJ_Java/GraphicsAndGames_BlueJ_Java.zip"
+ unzip GraphicsAndGames_BlueJ_Java.zip
+ mv GraphicsAndGames_BlueJ_Java/*.java .
+
.PHONY: clean
clean:
rm -f *.class
diff --git a/README.md b/README.md
index bcf4fcb..09abce1 100644
--- a/README.md
+++ b/README.md
@@ -1,13 +1,14 @@
-# Snake - simples Snake Spiel basierend auf der GraphicsAndGames
+# Snake - simples Snake Spiel basierend auf GraphicsAndGames
## Requirements
* Java
-* A copy of [GraphicsAndGames](https://informatikschulbuch.de/wp-content/daten/Informatik3/Vorlagen/Kapitel4/BlueJ_Java/GraphicsAndGames_BlueJ_Java.zip)
+* Eine Kopie des [GraphicsAndGames](https://informatikschulbuch.de/wp-content/daten/Informatik3/Vorlagen/Kapitel4/BlueJ_Java/GraphicsAndGames_BlueJ_Java.zip) Quellcodes.
## Usage
-Simply the `Snake.java` into the GraphicsAndGames BlueJ Projekt.
+Das enthaltene Makefile downloadet und extrahiert GraphicsAndGames automatisch.
+Alternativ kann auch die `Snake.java` in das extrahierte GraphicsAndGames BlueJ Projekt kopiert werden.
## License