This website requires JavaScript.
c8e02c208e
Merge branch 'dev' - Restart Option added
main
V1.1
jonny
2024-05-05 19:51:22 +02:00
1eb795f959
Change key event 'q' pressing 'q' while playing current game will be closed and leaderboard would be shown
Hanse-14
2024-05-05 19:35:47 +02:00
274c9354b0
Add blinking 'ENTER' at the end of the leaderboard by pressing 'ENTER' game can be restarted
Hanse-14
2024-05-05 13:29:44 +02:00
4cf3cf73a4
Merge branch 'dev' - Game fully functional
V1.0
jonny_jr9
2024-01-07 22:18:02 +01:00
7ec022dd2b
Update Readme: Add install section
jonny_jr9
2024-01-07 22:17:32 +01:00
33247f8a5b
Adjust volume of crash and portal sounds
jonny_jr9
2024-01-07 21:47:26 +01:00
32a0b44f0d
Fix LOGE macro (disable color on win), Fix map size "empty"
jonny-vb
2024-01-07 12:28:59 -08:00
797805b5e4
gitignore: ignore *.bin files (player_scores.bin)
jonny_l480
2023-12-22 13:43:24 +01:00
fcea6f57ab
Fix deadlock on sound error (mutex not released)
jonny_l480
2023-12-22 13:34:51 +01:00
a0622fff1e
Add LOGE(), Optimize logging
jonny_l480
2023-12-22 13:31:24 +01:00
119f9a106d
Fix compiler errors and warnings, Cleanup main.cpp
jonny_l480
2023-12-22 11:40:40 +01:00
04d45c7988
Merge branch 'dev' of https://github.com/Jonny999999/snake-pp into dev
Hanse-14
2023-12-21 10:24:30 +01:00
f01630fe67
Change scores in leaderboard to 10
Hanse-14
2023-12-21 10:19:48 +01:00
f6ba560da3
Fix: entering long numbers in preferences is no longer allowed
Hanse-14
2023-12-20 17:21:13 +01:00
6ae1bdbfd7
minor change: remove print line debugging
Hanse-14
2023-12-20 17:03:14 +01:00
1f4abeaa00
fix change direction into itself #7
Hanse-14
2023-12-20 16:57:29 +01:00
1a9a348793
fix scoreboard
Hanse-14
2023-12-20 16:35:25 +01:00
0999c5888e
Add CPack for creating releases for windows (zip)
jonny-vb
2023-12-19 09:44:54 -08:00
778c69f67a
Change file strcture: Add assets folder
jonny-vb
2023-12-19 09:40:39 -08:00
4ea40d99d2
Fix delay after crash (play crash sound async)
jonny_l480
2023-12-18 14:13:42 +01:00
747b949218
Add pause function - press 'p' or 'space' for pause+ - it goes on with pressing any key
Hanse-14
2023-12-18 07:44:03 +01:00
18feb2ec62
Add Leaderboard - it is only possible to close with clicking on 'X' with mouse
Hanse-14
2023-12-18 07:22:01 +01:00
b5e85de24c
Add module 'files' - write score after death - read a number of scores
Hanse-14
2023-12-18 04:47:44 +01:00
7acb37824e
Minor fixes
Hanse-14
2023-12-18 03:16:36 +01:00
f6619d1289
Add difficulty level and start map - game speed(cycleDurationMs) and food placement depend on difficulty level - start map would be chosen at the beginning - switching maps and game speed(cycleDurationMs) is not available during playing
Hanse-14
2023-12-18 01:42:13 +01:00
b0bf7e3d62
Merge branch 'dev' of https://github.com/Jonny999999/snake-pp into dev
Hanse-14
2023-12-18 00:06:31 +01:00
0590a782b8
Add input functions - user must enter nickname - user must enter difficulty level - user must enter map
Hanse-14
2023-12-18 00:06:28 +01:00
8465c16b47
Update Readme: Add image, Optimize links
jonny_jr9
2023-12-17 22:54:32 +01:00
14a66b8e27
Fix bugged tail element at 0,0 when first eaten
jonny_jr9
2023-12-17 19:40:42 +01:00
854fd96de3
Merge branch 'dev' - Sound effects work
jonny_jr9
2023-12-17 16:06:21 +01:00
5c72303409
Fix segfault on linux (use SDL2_ttf)
jonny_jr9
2023-12-17 14:21:39 +01:00
c94f205e47
Add support for difficulty-level 1-3 (food placement)
jonny_jr9
2023-12-17 12:42:44 +01:00
814cee7ba1
Fix Windows no output, Fix Linux ttf undefined errors (cmake)
jonny_jr9
2023-12-17 10:56:10 +01:00
a7714ec15f
Add setting and info screen - setting screen is only implemented, without features - info screen is completed currently
Hanse-14
2023-12-17 02:42:10 +01:00
c10481021f
Add start start screen - many updates in some files
Hanse-14
2023-12-17 00:44:43 +01:00
965372c7bf
Fix warnings in input.c, map.c (const char, sqrt)
jonny-vb
2023-12-15 03:32:47 -08:00
8f9e555a73
update CMakeLists.txt
Hanse-14
2023-12-15 12:00:36 +01:00
d7c929985f
update README.md
Hanse-14
2023-12-15 11:56:58 +01:00
5b581dc031
Add SDL_ttf - change .gitignore - change README.md
Hanse-14
2023-12-15 11:53:14 +01:00
6b4bcb09a8
Fix segfault sound-thread (mutex), Add Portal sound
jonny_jr9
2023-12-15 00:01:22 +01:00
52c0838dec
Add playSoundAsync() -> Fixes game delay
jonny_jr9
2023-12-14 21:24:49 +01:00
9c1ca72321
Add sounds when food eaten, FIXME: adds unwanted delay
jonny_jr9
2023-12-14 20:29:03 +01:00
bc363a9f8b
Add playSound(), Reduce debug output - sound on collide works
jonny_jr9
2023-12-14 18:39:20 +01:00
0371e7f7e8
Add: snake cannot move into opposite direction
Hanse-14
2023-12-14 17:16:29 +01:00
05289068a7
neue Kommentare und Ton mit Windows.h erzeugt (wird abgespielt!), geht nur bei Windows
Julia09055x
2023-12-14 11:00:48 +01:00
e342478695
Ton abspielen
Julia09055x
2023-12-14 10:47:44 +01:00
dc9c21a708
Merge branch 'dev' - Game runs (without menu)
jonny_jr9
2023-12-14 08:26:23 +01:00
5cd0f41123
Quit game when collided
jonny_l480
2023-12-13 17:40:54 +01:00
eac493e412
Spielzyklus in main mit GET_TIME_MS() realisiert
Julia09055x
2023-12-13 09:16:05 +01:00
aaf4eb398a
Fix bug 'negative values' in GET_TIME_MS()
jonny_jr9
2023-12-12 17:12:07 +01:00
d8952223f4
Add macro GET_TIME_MS() (windows + linux support)
jonny_jr9
2023-12-12 16:51:30 +01:00
aa242676e9
Test: clocks_per_sec
Julia09055x
2023-12-12 16:35:12 +01:00
5c99e2ac79
main: delay und processInput in jedem Schleifendurchlauf
Julia09055x
2023-12-12 13:10:09 +01:00
c461b2af84
game.renderer und wondow.renderer
Julia09055x
2023-12-12 11:56:33 +01:00
4f51654b72
main mit now-Funktion (lt.Flowchart) und globale Variablen aus game für window und renderer
Julia09055x
2023-12-12 11:56:08 +01:00
9cd6704057
Prevent deadlock in menu (while not implemented)
jonny_jr9
2023-12-12 10:00:14 +01:00
4159d4ff17
Update flowchart, Add global SDL variables
jonny_jr9
2023-12-12 09:52:08 +01:00
cc4f8f169f
Add map rotate and speed change via keys (1, 2 , m)
jonny_l480
2023-12-11 12:47:46 +01:00
9afeb85635
Add startposition in mid of map
Hanse-14
2023-12-11 12:45:47 +01:00
8a574acc05
Augen: Position korrigiert
Julia09055x
2023-12-11 11:19:44 +01:00
49a86bc2f6
Food und Collisions haben Rahmen
Julia09055x
2023-12-11 11:16:15 +01:00
286011928e
Snake hat Augen
Julia09055x
2023-12-11 11:02:13 +01:00
4c9b7cdb6b
Portal-Farben angepasst, damit man zsmgehörige Portale erkennt
Julia09055x
2023-12-11 10:29:23 +01:00
5a14a05d60
Merge branch 'dev' of https://github.com/Jonny999999/snake-pp into dev
Julia09055x
2023-12-10 21:05:13 +01:00
2d953e1e1b
Snake hat Tail und Farben angepasst
Julia09055x
2023-12-10 21:05:11 +01:00
f5a7a90168
Add defaultMap config option
jonny_jr9
2023-12-10 20:58:18 +01:00
72ca020f27
Fix 'redefinition error' on win. - compiles, runs
jonny_jr9
2023-12-10 18:14:24 +01:00
ac5873c9e7
Fix bug SDL-window freezing on windows
jonny_jr9
2023-12-10 18:03:02 +01:00
abad211084
Crash-Test mit auskommentiertem Code
Julia09055x
2023-12-10 17:34:16 +01:00
a56c78e1ee
Merge branch 'testing' into dev
jonny_jr9
2023-12-10 17:05:29 +01:00
e66567d232
Snake bewegt sich, Fenster wird mit Portal und Food erstellt
Julia09055x
2023-12-10 16:52:20 +01:00
859b4c99b2
Add default config values, Update px size on map load
jonny_jr9
2023-12-09 18:28:39 +01:00
92c47929b3
Erstellt verschiedene Bausteine auf dem SDL-Fenster
Julia09055x
2023-12-09 17:42:22 +01:00
668860a6a0
quadratisches SDL-Fenster öffnet sich
Julia09055x
2023-12-09 15:45:06 +01:00
655657ab43
Fix snakeSetHeadPos() - Head position will be updated in tail[][] array
Hanse-14
2023-12-07 16:16:29 +01:00
ae7469f291
add function snakeUpdateHeadPos() write content of snakeSetHeadPos() in snakeUpdateHeadPos() snakeSetHeadPos() set head-position via transfer parameters
Hanse-14
2023-12-07 15:52:41 +01:00
3c0f837daa
Add new map "empty", Increase game speed
jonny_jr9
2023-12-04 23:12:33 +01:00
cf92191177
Fix #2 random segfault after growing
jonny_jr9
2023-12-04 22:58:08 +01:00
ad1dd7f5c3
Add tests, Disable collision - Game runs in console!
jonny_jr9
2023-12-03 22:16:55 +01:00
6b29f1360f
Fix typos in snake.c - compiles now
jonny_jr9
2023-12-03 21:58:21 +01:00
529b633c7a
minor Fixes in game.c and map.c
jonny_jr9
2023-12-03 21:56:18 +01:00
dd918c9dec
Add functions in snake.c snakeInit(), snakeGrow(), snakeMove(), snakeSetDir(), snakeIsAlive(), snakeSetHeadPos()
Hanse-14
2023-12-02 13:51:06 +01:00
b7bbd22f71
SDL window
Julia09055x
2023-11-23 17:12:53 +01:00
b4150a839d
Render window
Julia09055x
2023-11-23 16:55:16 +01:00
d94eed0136
Implement input.c
jonny_jr9
2023-11-11 13:39:54 +01:00
061b4431c7
Implement game.c, food.c and map.c
jonny_jr9
2023-11-11 11:06:36 +01:00
71c054f092
Add common.h with LOG macro, Add '#pragma once'
jonny_jr9
2023-11-10 14:38:14 +01:00
ffbe61a6e5
Add empty function definitions
jonny_jr9
2023-11-10 12:54:33 +01:00
3e40be47cf
Update module structure: Add map.c
jonny_jr9
2023-11-10 12:46:00 +01:00
e9df108850
Update flowcharts, module-overview (assignment, fixes)
jonny_jr9
2023-11-09 16:14:55 +01:00
d92175317d
Update all header files
Julia09055x
2023-11-09 15:13:10 +01:00
691ca4782b
Update README: add CMake install, formatting
jonny_jr9
2023-11-08 22:25:08 +01:00
7309707a97
Change folder structure (Add folders: src, include)
jonny_jr9
2023-11-08 18:18:31 +01:00
86c18541e4
Add drawio files: function-flowcharts, module-overview
jonny_jr9
2023-11-08 09:57:55 +01:00
5bba3e1531
Add source files, Fix header files - Compiles now
jonny_jr9
2023-11-08 09:52:25 +01:00
e5a66c40b4
Add header file
Julia09055x
2023-11-07 19:17:59 +01:00
38e0db28c0
Update git.ignore add SDL2 folder
Hanse-14
2023-11-07 16:57:42 +01:00
2f14b9fd92
Add Readme with instructions, Add working example
jonny_jr9
2023-11-07 15:23:32 +01:00
ab7d4add6c
Add CMake file for LINUX/WINDOWS compatibility
jonny_jr9
2023-11-07 15:20:47 +01:00
1eaf1ef1b9
init
jonny_jr9
2023-11-07 15:20:03 +01:00