- [NEW] Projecte ficat al dia

This commit is contained in:
2025-10-16 16:56:32 +02:00
parent e1518cf76f
commit 2b93e224bb
5 changed files with 11 additions and 2 deletions

2
.gitignore vendored
View File

@@ -1,12 +1,14 @@
syntax: glob syntax: glob
pepe pepe
pepe_debug
recursos/* recursos/*
bin/* bin/*
obj/* obj/*
Debug/* Debug/*
Release/* Release/*
data/* data/*
build/*
*.suo *.suo
*.sdf *.sdf
*.opensdf *.opensdf

2
Makefile Normal file
View File

@@ -0,0 +1,2 @@
build:
g++ -g *.cpp -lSDL2 -lSDL2_mixer -o pepe_debug

View File

View File

@@ -1,7 +1,7 @@
#include "jdraw8.h" #include "jdraw8.h"
#include "jfile.h" #include "jfile.h"
#include <fstream> #include <fstream>
#include "gif.c" #include "gif.h"
#ifdef GCWZERO #ifdef GCWZERO
#define SCREEN_WIDTH 320 #define SCREEN_WIDTH 320
@@ -31,7 +31,7 @@ void JD8_Init(const char *title) {
main_palette = (JD8_Palette)calloc( 1, 256 * sizeof(uint32_t) ); main_palette = (JD8_Palette)calloc( 1, 256 * sizeof(uint32_t) );
pixel_data = (Uint32*)calloc(1, 320 * 200 * 4); // 1048576 ); pixel_data = (Uint32*)calloc(1, 320 * 200 * 4); // 1048576 );
sdlWindow = SDL_CreateWindow( title, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_SHOWN ); sdlWindow = SDL_CreateWindow( title, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, SCREEN_WIDTH, SCREEN_HEIGHT, SDL_WINDOW_SHOWN );
sdlRenderer = SDL_CreateRenderer(sdlWindow, -1, 0); sdlRenderer = SDL_CreateRenderer(sdlWindow, -1, 0);
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "nearest"); SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "nearest");

5
lagueirtofile Normal file
View File

@@ -0,0 +1,5 @@
libs = -lSDL2 -lSDL2_mixer
cppflags = -D DEBUG -g
executable = pepe_debug
sourcepath = .
buildpath = build