Compare commits
2 Commits
e1518cf76f
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| c833527d60 | |||
| 2b93e224bb |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,12 +1,14 @@
|
||||
syntax: glob
|
||||
|
||||
pepe
|
||||
pepe_debug
|
||||
recursos/*
|
||||
bin/*
|
||||
obj/*
|
||||
Debug/*
|
||||
Release/*
|
||||
data/*
|
||||
build/*
|
||||
*.suo
|
||||
*.sdf
|
||||
*.opensdf
|
||||
|
||||
2
Makefile
Normal file
2
Makefile
Normal file
@@ -0,0 +1,2 @@
|
||||
build:
|
||||
g++ -g *.cpp -lSDL2 -lSDL2_mixer -o pepe_debug
|
||||
@@ -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");
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "jsound.h"
|
||||
#include "jfile.h"
|
||||
#include <string>
|
||||
|
||||
Mix_Music *music = NULL;
|
||||
char currentMusic[12];
|
||||
|
||||
5
lagueirtofile
Normal file
5
lagueirtofile
Normal file
@@ -0,0 +1,5 @@
|
||||
libs = -lSDL2 -lSDL2_mixer
|
||||
cppflags = -D DEBUG -g
|
||||
executable = pepe_debug
|
||||
sourcepath = .
|
||||
buildpath = build
|
||||
1
main.cpp
1
main.cpp
@@ -5,7 +5,6 @@
|
||||
#include "info.h"
|
||||
#include "modules.h"
|
||||
#include "time.h"
|
||||
#include <string>
|
||||
|
||||
#ifndef WIN32
|
||||
#include <libgen.h>
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "jinput.h"
|
||||
#include "jsound.h"
|
||||
#include <stdlib.h>
|
||||
#include <string>
|
||||
#include "info.h"
|
||||
|
||||
namespace module
|
||||
|
||||
Reference in New Issue
Block a user