diff options
| -rw-r--r-- | .gitignore | 8 | ||||
| -rw-r--r-- | README.md | 14 | ||||
| -rw-r--r-- | main.adb | 11 | ||||
| -rw-r--r-- | snake.gpr | 7 | ||||
| -rw-r--r-- | vendor/.keep | 0 |
5 files changed, 40 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..281a754 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +*.o +*.ali +b__* +*.bexch +main +vendor/* +!vendor/.keep +auto.cgpr diff --git a/README.md b/README.md new file mode 100644 index 0000000..18b3a28 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# Snake + +Snake Game in Ada, This is SDL version of a TP on [openclassrooms](https://openclassrooms.com/fr/courses/900279-apprenez-a-programmer-avec-ada/2144821-tp-le-jeu-du-serpent). + +# Usage + +`> gprbuild && ./main` + +# Dependencies + +I use the [sdlada bindings](https://github.com/Lucretia/sdlada). +Follow the install steps on the [README](https://github.com/Lucretia/sdlada#building). + +The compiled library should go in ./vendor/sdlada/. diff --git a/main.adb b/main.adb new file mode 100644 index 0000000..4105856 --- /dev/null +++ b/main.adb @@ -0,0 +1,11 @@ +with Ada.Text_IO; +use Ada.Text_IO; + +with SDL; + +procedure Main is +begin + if not SDL.Initialise then + Put("Error"); + end if; +end Main; diff --git a/snake.gpr b/snake.gpr new file mode 100644 index 0000000..59af38e --- /dev/null +++ b/snake.gpr @@ -0,0 +1,7 @@ +with "./vendor/sdlada/share/gpr/sdlada.gpr"; + +project Snake is + for Source_Dirs use ("./"); + for Source_Files use ("main.adb"); + for Main use ("main.adb"); +end Snake; diff --git a/vendor/.keep b/vendor/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/vendor/.keep |
