Motor de sprites/animacions/surfaces i jugador centrat (v0.2.0)

This commit is contained in:
JailDesigner committed 2026-04-18 21:02:55 +02:00
1 parent 7bb1edd08a
commit de5a670fdb
34 files changed
+16137 -81

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
namespace Texts {
constexpr const char* WINDOW_TITLE = "© 2026 Aventures en Egipte — JailDesigner";
constexpr const char* COPYRIGHT = "© 2026 JailDesigner";
constexpr const char* VERSION = "0.1.0"; // Single source of truth — Makefile el grep
constexpr const char* VERSION = "0.2.0"; // Single source of truth — Makefile el grep
} // namespace Texts
namespace GameCanvas {
+18
View File
@@ -0,0 +1,18 @@
#include "utils/utils.hpp"
#include <filesystem>
#include <ios>
#include <iostream>
auto getFileName(const std::string& path) -> std::string {
return std::filesystem::path(path).filename().string();
}
void printWithDots(const std::string& text1, const std::string& text2, const std::string& text3) {
std::cout.setf(std::ios::left, std::ios::adjustfield);
std::cout << text1;
std::cout.width(50 - text1.length() - text3.length());
std::cout.fill('.');
std::cout << text2;
std::cout << text3 << '\n';
}
+6
View File
@@ -0,0 +1,6 @@
#pragma once
#include <string>
auto getFileName(const std::string& path) -> std::string;
void printWithDots(const std::string& text1, const std::string& text2, const std::string& text3);