feat: Enhance Dungeon Rendering with Size Adjustments and Testing Initialization
- Added InitializeForTesting method in Rom class to facilitate testing setup. - Updated DungeonCanvasViewer to adjust object and sprite sizes from 16x16 to 8x8, improving rendering accuracy. - Modified rendering logic for various dungeon objects (chests, doors, walls, pots) to reflect new size calculations. - Adjusted object position calculations in ObjectRenderer to align with the new size metrics, ensuring consistent rendering across the application. - Updated integration tests to verify the new initialization method for ROM objects.
This commit is contained in:
@@ -149,8 +149,6 @@ if(YAZE_BUILD_TESTS AND NOT YAZE_BUILD_TESTS STREQUAL "OFF")
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
# Configure test executable only when tests are enabled
|
||||
target_include_directories(
|
||||
yaze_test PUBLIC
|
||||
@@ -248,4 +246,4 @@ if(YAZE_BUILD_TESTS AND NOT YAZE_BUILD_TESTS STREQUAL "OFF")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
include(test.cmake)
|
||||
include(test.cmake)
|
||||
|
||||
Reference in New Issue
Block a user