separació per entitats

This commit is contained in:
2025-11-28 08:17:12 +01:00
parent 1e8829ba22
commit 836debdc0b
10 changed files with 469 additions and 369 deletions

View File

@@ -34,9 +34,16 @@ endif
# ==============================================================================
APP_SOURCES := \
source/main.cpp \
source/core/system/director.cpp \
source/core/rendering/sdl_manager.cpp \
source/core/rendering/line_renderer.cpp \
source/core/rendering/polygon_renderer.cpp \
source/core/rendering/primitives.cpp \
source/game/options.cpp \
source/game/joc_asteroides.cpp \
source/core/rendering/primitives.cpp
source/game/entities/nau.cpp \
source/game/entities/bala.cpp \
source/game/entities/enemic.cpp
# ==============================================================================
# INCLUDES
@@ -87,7 +94,7 @@ endif
# ==============================================================================
# TARGETS
# ==============================================================================
.PHONY: all clean debug help
.PHONY: all clean debug help backup
# Default target
all: $(TARGET_FILE)
@@ -130,16 +137,30 @@ else
endif
@echo Clean complete
# Backup to remote server
backup:
@echo "Backing up project to maverick:/home/sergio/git-backup/asteroids..."
rsync -a --delete \
--exclude='build/' \
--exclude='*.o' \
--exclude='*.exe' \
--exclude='orni' \
--exclude='orni_debug' \
--exclude='*_release/' \
$(DIR_ROOT) maverick:/home/sergio/git-backup/asteroids/
@echo "Backup completed successfully"
# Help target
help:
@echo Available targets:
@echo all - Build the game (default)
@echo debug - Build with debug symbols
@echo clean - Remove build artifacts
@echo help - Show this help message
@echo.
@echo Current configuration:
@echo Target: $(TARGET_NAME)
@echo Version: $(VERSION)
@echo Platform: $(UNAME_S)
@echo C++ Standard: $(CPP_STANDARD)
@echo "Available targets:"
@echo " all - Build the game (default)"
@echo " debug - Build with debug symbols"
@echo " clean - Remove build artifacts"
@echo " backup - Backup project to remote server"
@echo " help - Show this help message"
@echo ""
@echo "Current configuration:"
@echo " Target: $(TARGET_NAME)"
@echo " Version: $(VERSION)"
@echo " Platform: $(UNAME_S)"
@echo " C++ Standard: $(CPP_STANDARD)"