10 Commits

Author SHA1 Message Date
Julia09055x
668860a6a0 quadratisches SDL-Fenster öffnet sich 2023-12-09 15:45:06 +01:00
jonny_jr9
6b29f1360f Fix typos in snake.c - compiles now
- use global variable 'game' from game.h instead of declaring new one
- fix typo wrong variables
- correct move out of map boundary
2023-12-03 21:58:21 +01:00
Hanse-14
dd918c9dec Add functions in snake.c
snakeInit(), snakeGrow(), snakeMove(), snakeSetDir(), snakeIsAlive(),
snakeSetHeadPos()
2023-12-02 13:51:06 +01:00
Julia09055x
b4150a839d Render window 2023-11-23 16:55:16 +01:00
jonny_jr9
d94eed0136 Implement input.c
- Implement input handling in input.c
  - test successful
- Add missing function showPauseScreen to menu.h/c
2023-11-11 14:32:47 +01:00
jonny_jr9
061b4431c7 Implement game.c, food.c and map.c
- Implemented the functions in the above files
 - game and map are partially tested
 - food is extensively tested using the created test-function
- Also added DELAY(ms) macro to common.c
2023-11-11 11:14:38 +01:00
jonny_jr9
71c054f092 Add common.h with LOG macro, Add '#pragma once'
- add conditional logging macro in common.h
- add '#pragma once' to every header file
- fix typo in food.h
2023-11-10 14:38:14 +01:00
jonny_jr9
3e40be47cf Update module structure: Add map.c
=> global config and game struct changed
=> some functions were dropped/moved
- Outsourced data types and functions to map.c / map.h
- Update function and module diagram
- Adjust custom data types in source code
2023-11-10 12:46:00 +01:00
Julia09055x
d92175317d Update all header files 2023-11-09 15:13:10 +01:00
jonny_jr9
7309707a97 Change folder structure (Add folders: src, include)
Add src folder for all .c and include folder .h files
=> clearer structure, no documents mixed into code files
2023-11-08 20:41:21 +01:00