Compare commits

...

2 Commits

Author SHA1 Message Date
c833527d60 - [FIX] Llevades algunes capçaleres inutils 2025-10-17 07:49:19 +02:00
2b93e224bb - [NEW] Projecte ficat al dia 2025-10-16 16:56:32 +02:00
8 changed files with 11 additions and 5 deletions

2
.gitignore vendored
View File

@@ -1,12 +1,14 @@
syntax: glob
pepe
pepe_debug
recursos/*
bin/*
obj/*
Debug/*
Release/*
data/*
build/*
*.suo
*.sdf
*.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 "jfile.h"
#include <fstream>
#include "gif.c"
#include "gif.h"
#ifdef GCWZERO
#define SCREEN_WIDTH 320
@@ -31,7 +31,7 @@ void JD8_Init(const char *title) {
main_palette = (JD8_Palette)calloc( 1, 256 * sizeof(uint32_t) );
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);
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "nearest");

View File

@@ -1,6 +1,5 @@
#include "jsound.h"
#include "jfile.h"
#include <string>
Mix_Music *music = NULL;
char currentMusic[12];

5
lagueirtofile Normal file
View File

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

View File

@@ -5,7 +5,6 @@
#include "info.h"
#include "modules.h"
#include "time.h"
#include <string>
#ifndef WIN32
#include <libgen.h>

View File

@@ -5,7 +5,6 @@
#include "jinput.h"
#include "jsound.h"
#include <stdlib.h>
#include <string>
#include "info.h"
namespace module