Day 69/100 100 Days of Code
Rebuild Back Better

AKA Chris, is a software developer from Athens, Greece. He started programming with basic when he was very young. He lost interest in programming during school years but after an unsuccessful career in audio, he decided focus on what he really loves which is technology.
He loves working with older languages like C and wants to start programming electronics and microcontrollers because he wants to get into embedded systems programming.
I focused on creating assets for the project in this session.
I updated the CMakeLists.txt to copy all the assets to the .app container.
file(GLOB MENU_LIGHT_UP_SOUND "audio/menulightup/lightup.wav")
file(GLOB MENU_MUSIC "audio/music/onceuponatime.mp3")
file(GLOB DEFAULT_CURSOR "graphics/Player/cursor_main.png")
file(GLOB ATTACK_CURSOR "graphics/Player/sword_cursor.png")
file(GLOB ENVIROMENT_BACKGROUND "graphics/Enviroment/Game Environt Alternative Sky.jpg")
file (GLOB LEAF_IMAGE "graphics/Interface/leaf.png")
#Add Default Cursor
file(RELATIVE_PATH GET_REL_PATH "${CMAKE_CURRENT_SOURCE_DIR}" ${DEFAULT_CURSOR} )
get_filename_component(FILE_PATH "${GET_REL_PATH}" DIRECTORY)
set_property(SOURCE "${DEFAULT_CURSOR}" PROPERTY MACOSX_PACKAGE_LOCATION "Resources/${FILE_PATH}")
#Add Attack Cursor
file(RELATIVE_PATH GET_REL_PATH "${CMAKE_CURRENT_SOURCE_DIR}" ${ATTACK_CURSOR} )
get_filename_component(FILE_PATH "${GET_REL_PATH}" DIRECTORY)
set_property(SOURCE "${ATTACK_CURSOR}" PROPERTY MACOSX_PACKAGE_LOCATION "Resources/${FILE_PATH}")
#Add Enviroment Background
file(RELATIVE_PATH GET_REL_PATH "${CMAKE_CURRENT_SOURCE_DIR}" ${ENVIROMENT_BACKGROUND} )
get_filename_component(FILE_PATH "${GET_REL_PATH}" DIRECTORY)
set_property(SOURCE "${ENVIROMENT_BACKGROUND}" PROPERTY MACOSX_PACKAGE_LOCATION "Resources/${FILE_PATH}")
#Add Leaf
file(RELATIVE_PATH GET_REL_PATH "${CMAKE_CURRENT_SOURCE_DIR}" ${LEAF_IMAGE} )
get_filename_component(FILE_PATH "${GET_REL_PATH}" DIRECTORY)
set_property(SOURCE "${LEAF_IMAGE}" PROPERTY MACOSX_PACKAGE_LOCATION "Resources/${FILE_PATH}")
I removed the template from the Entity class because I do not think that I am going to need it and started building the player object.
template<typename STRING>
class Player: public Entity
{
static bool LoadPlayerImages(STRING location);
static void ShowCursor();
static void ShowDefaultCursor();
static void ShowInteractableCursor();
static void ShowCanAttackCursor();
static void SetCursorPosition();
};
Next, I need to start using SDL3 image, which is the only library I haven't used yet.




