-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge: Merge pull request #45 from G-Epitech/nibbler
Nibbler
- Loading branch information
Showing
75 changed files
with
2,133 additions
and
323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,4 @@ lib | |
*.gcno | ||
*.gcda | ||
*.o | ||
*.txt | ||
scores.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
O |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@@@@ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
################### | ||
# * * * * # | ||
# ### # ### # ### # | ||
#*# #*# #*# #*# | ||
# ### # # # # ### # | ||
# #*# #*# # | ||
# ##### # # ##### # | ||
#*# * * #*# | ||
# # #####*##### # # | ||
# * * # | ||
# ##### ### ##### # | ||
# * ### * # | ||
# ### # ### # ### # | ||
# # # # * # # # # | ||
#*###*#*###*#*###*# | ||
# # ### # # | ||
#*##### ### #####*# | ||
# # | ||
################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
################### | ||
#* #* # # * # | ||
# # # # # # # # # # | ||
# *# * # * # # | ||
# #### # # ## ## # | ||
# # * # # ## ## ## | ||
#* # # * # # | ||
# #### * #### * # # | ||
# ### ## #### # | ||
# # * * # * # | ||
# ## # ## ## ## ### | ||
#**# # # * # * # | ||
## # # # ## ### # | ||
# *## ## * # | ||
# ##### ## ## # ### | ||
# * * # * # *# | ||
# ##### # # ## ## # | ||
# * * # | ||
################### |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
║═ | ||
~~~~ | ||
╝╚╗╔ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
add_subdirectory(snake) | ||
add_subdirectory(nibbler) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
project(nibbler) | ||
add_library(${PROJECT_NAME} SHARED | ||
export.cpp | ||
src/NibblerGameProvider.cpp | ||
src/NibblerGame.cpp | ||
src/entities/nibbler/Nibbler.cpp | ||
src/entities/nibbler/Nibbler.hpp | ||
src/entities/nibbler/TailEntity.cpp | ||
src/entities/nibbler/TailEntity.hpp | ||
src/entities/nibbler/HeadEntity.cpp | ||
src/entities/nibbler/HeadEntity.hpp | ||
src/entities/nibbler/components/HeadKeyboardComponent.cpp | ||
src/entities/nibbler/components/HeadKeyboardComponent.hpp | ||
src/entities/wall/WallEntity.cpp | ||
src/entities/wall/WallEntity.hpp | ||
src/entities/background/BackgroundEntity.cpp | ||
src/entities/background/BackgroundEntity.hpp | ||
src/entities/apple/AppleEntity.cpp | ||
src/entities/apple/AppleEntity.hpp | ||
) | ||
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/../common PRIVATE) | ||
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/src) | ||
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/../..) | ||
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/..) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
** EPITECH PROJECT, 2024 | ||
** arcade-shared | ||
** File description: | ||
** export | ||
*/ | ||
|
||
#include "NibblerGameProvider.hpp" | ||
#include "shared/types/Libraries.hpp" | ||
|
||
using namespace shared::games; | ||
using namespace shared::types; | ||
|
||
extern "C" { | ||
LibraryType SHARED_LIBRARY_TYPE_GETTER_NAME(void) { | ||
return LibraryType::GAME; | ||
} | ||
|
||
IGameProvider *SHARED_GAME_PROVIDER_GETTER_NAME(void) { | ||
return new arcade::games::nibbler::NibblerGameProvider(); | ||
} | ||
} |
Oops, something went wrong.