A small game engine for 2D games based of Raylib
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

29 lignes
927 B

Include(FetchContent)
FetchContent_Declare(
RayLib
GIT_REPOSITORY https://github.com/raysan5/raylib
GIT_TAG 4.5.0
GIT_PROGRESS TRUE
USES_TERMINAL_DOWNLOAD TRUE
GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(RayLib)
add_executable(Engine
src/main.cpp
include/entity.h
include/transform.h
include/component.h
include/scene.h
include/render_state.h
src/render_state.cpp
src/scene.cpp
include/entities/ui_fps_entity.h
src/ui_fps_entity.cpp
include/entities/background_entity.h
src/background_entity.cpp
include/components/sprite_component.h src/sprite_component.cpp include/components/panel_component.h src/panel_component.cpp)
target_include_directories(Engine PUBLIC include)
target_link_libraries(Engine PUBLIC raylib)
file(COPY assets/apple.png DESTINATION assets/apple.png)