From 4695a8e8a5c92848a6beae86cd560108dd668d5a Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Thu, 16 Oct 2025 16:56:02 +0200 Subject: [PATCH] - [NEW] Projecte ficat al dia --- .gitignore | 2 ++ Makefile | 2 ++ gif.c => gif.h | 0 grafix.cpp | 4 ++-- lagueirtofile | 5 +++++ pepe.ini | 15 +++++++++++++++ 6 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 Makefile rename gif.c => gif.h (100%) create mode 100644 lagueirtofile create mode 100644 pepe.ini diff --git a/.gitignore b/.gitignore index afed885..d6b00fd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ *.exe pepe +pepe_debug +build/* \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..67dacd5 --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +build: + g++ -g *.cpp -lSDL2 -o pepe_debug diff --git a/gif.c b/gif.h similarity index 100% rename from gif.c rename to gif.h diff --git a/grafix.cpp b/grafix.cpp index 8842b9d..62ea775 100644 --- a/grafix.cpp +++ b/grafix.cpp @@ -1,6 +1,6 @@ #include "grafix.h" #include -#include "gif.c" +#include "gif.h" #include "crt.h" namespace draw @@ -15,7 +15,7 @@ namespace draw void init(const char* titol, const uint16_t width, const uint16_t height, const uint8_t zoom) { // Inicialització de les estructures de SDL - sdl_window = SDL_CreateWindow(titol, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width * zoom, height * zoom, SDL_WINDOW_SHOWN); + sdl_window = SDL_CreateWindow(titol, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, width * zoom, height * zoom, SDL_WINDOW_SHOWN); sdl_renderer = SDL_CreateRenderer(sdl_window, -1, 0); sdl_texture = SDL_CreateTexture(sdl_renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, width, height); diff --git a/lagueirtofile b/lagueirtofile new file mode 100644 index 0000000..7aa40e1 --- /dev/null +++ b/lagueirtofile @@ -0,0 +1,5 @@ +libs = -lSDL2 +cppflags = -D DEBUG -g +executable = pepe_debug +sourcepath = . +buildpath = build diff --git a/pepe.ini b/pepe.ini new file mode 100644 index 0000000..199bf0f --- /dev/null +++ b/pepe.ini @@ -0,0 +1,15 @@ +PC SPEAKER: OFF=0, ON=1 +0 +VOLUMEN MIDI(0-10): OFF=0, MAX=10 +0 +SYNTHESIZER: General Midi=1, FM Synthesizer=0 +1 +GAME KEYS: +82 +23709 +81 +23685 +79 +23733 +80 +23757