Integrate wxWidgets application and enhance SFML project
- Added `wxwidgets` module with a basic application (menu and UI setup in `main.cpp`) and CMake configuration. - Updated `Paddle` class in SFML to support dynamic key bindings and movement logic via `Update` method. - Introduced `asset_ids.h` for centralized asset file definitions in SFML. - Enhanced `sfml/main.cpp` with animation logic and drawable management using `std::vector`. - Adjusted CMake configurations for SFML and added asset copying to runtime directory.
This commit is contained in:
@@ -19,4 +19,6 @@ add_executable(main
|
||||
target_compile_features(main PRIVATE cxx_std_17)
|
||||
target_link_libraries(main PRIVATE SFML::Graphics)
|
||||
|
||||
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT main)
|
||||
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT main)
|
||||
|
||||
file(COPY assets DESTINATION ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
|
||||
Reference in New Issue
Block a user