Compare commits
2 Commits
46b41757b2
...
0de9188547
| Author | SHA1 | Date | |
|---|---|---|---|
| 0de9188547 | |||
| 9d7e975952 |
4
Makefile
4
Makefile
@@ -24,7 +24,7 @@ INCLUDES:= -I$(DIR_SOURCES)
|
|||||||
# Variables según el sistema operativo
|
# Variables según el sistema operativo
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
FixPath = $(subst /,\,$1)
|
FixPath = $(subst /,\,$1)
|
||||||
SOURCES := source/*.cpp source/common/*.cpp
|
SOURCES := source/*.cpp
|
||||||
CXXFLAGS:= -std=c++11 -Wall -Os -ffunction-sections -fdata-sections -Wl,--gc-sections -static-libstdc++ -Wl,-subsystem,windows
|
CXXFLAGS:= -std=c++11 -Wall -Os -ffunction-sections -fdata-sections -Wl,--gc-sections -static-libstdc++ -Wl,-subsystem,windows
|
||||||
CXXFLAGS_DEBUG:= -std=c++11 -Wall
|
CXXFLAGS_DEBUG:= -std=c++11 -Wall
|
||||||
LDFLAGS := -lmingw32 -lws2_32 -lSDL2main -lSDL2 -lopengl32
|
LDFLAGS := -lmingw32 -lws2_32 -lSDL2main -lSDL2 -lopengl32
|
||||||
@@ -33,7 +33,7 @@ ifeq ($(OS),Windows_NT)
|
|||||||
else
|
else
|
||||||
FixPath = $1
|
FixPath = $1
|
||||||
SOURCES := $(shell find $(DIR_SOURCES) -name '*.cpp')
|
SOURCES := $(shell find $(DIR_SOURCES) -name '*.cpp')
|
||||||
SOURCES := source/*.cpp source/common/*.cpp
|
SOURCES := source/*.cpp
|
||||||
CXXFLAGS:= -std=c++11 -Wall -Os -ffunction-sections -fdata-sections
|
CXXFLAGS:= -std=c++11 -Wall -Os -ffunction-sections -fdata-sections
|
||||||
CXXFLAGS_DEBUG:= -std=c++11 -Wall
|
CXXFLAGS_DEBUG:= -std=c++11 -Wall
|
||||||
LDFLAGS := -lSDL2
|
LDFLAGS := -lSDL2
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "common/asset.h"
|
#include "asset.h"
|
||||||
#include "common/movingsprite.h"
|
#include "movingsprite.h"
|
||||||
#include "common/utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Esta clase es la encargada de dibujar el fondo que aparece durante la sección
|
Esta clase es la encargada de dibujar el fondo que aparece durante la sección
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "common/animatedsprite.h"
|
#include "animatedsprite.h"
|
||||||
#include "common/utils.h"
|
#include "utils.h"
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "common/sprite.h"
|
#include "sprite.h"
|
||||||
#include "common/utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
// Tipos de bala
|
// Tipos de bala
|
||||||
#define BULLET_UP 1
|
#define BULLET_UP 1
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "common/utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
// Tamaño de bloque
|
// Tamaño de bloque
|
||||||
#define BLOCK 8
|
#define BLOCK 8
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "common/input.h"
|
#include "input.h"
|
||||||
#include "common/text.h"
|
#include "text.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
#include "lang.h"
|
#include "lang.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "common/utils.h"
|
#include "utils.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
#include "director.h"
|
#include "director.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include "common/dbgtxt.h"
|
#include "dbgtxt.h"
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "common/asset.h"
|
#include "asset.h"
|
||||||
#include "common/input.h"
|
#include "input.h"
|
||||||
#include "common/jail_audio.h"
|
#include "jail_audio.h"
|
||||||
#include "common/screen.h"
|
#include "screen.h"
|
||||||
#include "common/text.h"
|
#include "text.h"
|
||||||
#include "common/utils.h"
|
#include "utils.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
#include "fade.h"
|
#include "fade.h"
|
||||||
#include "game.h"
|
#include "game.h"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "common/utils.h"
|
#include "utils.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
#include "balloon.h"
|
#include "balloon.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "common/texture.h"
|
#include "texture.h"
|
||||||
#include "common/animatedsprite.h"
|
#include "animatedsprite.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
struct explosion_texture_t
|
struct explosion_texture_t
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "common/texture.h"
|
#include "texture.h"
|
||||||
#include "common/utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
// Tipos de fundido
|
// Tipos de fundido
|
||||||
#define FADE_FULLSCREEN 0
|
#define FADE_FULLSCREEN 0
|
||||||
|
|||||||
@@ -3,15 +3,15 @@
|
|||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "balloon.h"
|
#include "balloon.h"
|
||||||
#include "bullet.h"
|
#include "bullet.h"
|
||||||
#include "common/asset.h"
|
#include "asset.h"
|
||||||
#include "common/input.h"
|
#include "input.h"
|
||||||
#include "common/jail_audio.h"
|
#include "jail_audio.h"
|
||||||
#include "common/movingsprite.h"
|
#include "movingsprite.h"
|
||||||
#include "common/screen.h"
|
#include "screen.h"
|
||||||
#include "common/smartsprite.h"
|
#include "smartsprite.h"
|
||||||
#include "common/sprite.h"
|
#include "sprite.h"
|
||||||
#include "common/text.h"
|
#include "text.h"
|
||||||
#include "common/utils.h"
|
#include "utils.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
#include "fade.h"
|
#include "fade.h"
|
||||||
#include "item.h"
|
#include "item.h"
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "common/asset.h"
|
#include "asset.h"
|
||||||
#include "common/screen.h"
|
#include "screen.h"
|
||||||
#include "common/smartsprite.h"
|
#include "smartsprite.h"
|
||||||
#include "common/jail_audio.h"
|
#include "jail_audio.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
|
|
||||||
// Clase GameLogo
|
// Clase GameLogo
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "common/asset.h"
|
#include "asset.h"
|
||||||
#include "common/input.h"
|
#include "input.h"
|
||||||
#include "common/jail_audio.h"
|
#include "jail_audio.h"
|
||||||
#include "common/screen.h"
|
#include "screen.h"
|
||||||
#include "common/sprite.h"
|
#include "sprite.h"
|
||||||
#include "common/text.h"
|
#include "text.h"
|
||||||
#include "common/utils.h"
|
#include "utils.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
#include "lang.h"
|
#include "lang.h"
|
||||||
#include "fade.h"
|
#include "fade.h"
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "common/asset.h"
|
#include "asset.h"
|
||||||
#include "common/input.h"
|
#include "input.h"
|
||||||
#include "common/jail_audio.h"
|
#include "jail_audio.h"
|
||||||
#include "common/screen.h"
|
#include "screen.h"
|
||||||
#include "common/sprite.h"
|
#include "sprite.h"
|
||||||
#include "common/text.h"
|
#include "text.h"
|
||||||
#include "common/utils.h"
|
#include "utils.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
#include "lang.h"
|
#include "lang.h"
|
||||||
#include "tiledbg.h"
|
#include "tiledbg.h"
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "common/asset.h"
|
#include "asset.h"
|
||||||
#include "common/input.h"
|
#include "input.h"
|
||||||
#include "common/jail_audio.h"
|
#include "jail_audio.h"
|
||||||
#include "common/screen.h"
|
#include "screen.h"
|
||||||
#include "common/smartsprite.h"
|
#include "smartsprite.h"
|
||||||
#include "common/utils.h"
|
#include "utils.h"
|
||||||
#include "common/writer.h"
|
#include "writer.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
#include "lang.h"
|
#include "lang.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "common/animatedsprite.h"
|
#include "animatedsprite.h"
|
||||||
#include "common/utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
// Tipos de objetos
|
// Tipos de objetos
|
||||||
#define ITEM_POINTS_1_DISK 1
|
#define ITEM_POINTS_1_DISK 1
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "common/asset.h"
|
#include "asset.h"
|
||||||
#include "common/input.h"
|
#include "input.h"
|
||||||
#include "common/jail_audio.h"
|
#include "jail_audio.h"
|
||||||
#include "common/screen.h"
|
#include "screen.h"
|
||||||
#include "common/sprite.h"
|
#include "sprite.h"
|
||||||
#include "common/utils.h"
|
#include "utils.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
#include "lang.h"
|
#include "lang.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "common/utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Esta clase sirve para añadir elementos hiScoreEntry_r a un vector (tabla), de manera
|
Esta clase sirve para añadir elementos hiScoreEntry_r a un vector (tabla), de manera
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "common/utils.h"
|
#include "utils.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
|
|
||||||
extern param_t param;
|
extern param_t param;
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "common/animatedsprite.h"
|
#include "animatedsprite.h"
|
||||||
#include "common/asset.h"
|
#include "asset.h"
|
||||||
#include "common/input.h"
|
#include "input.h"
|
||||||
#include "common/texture.h"
|
#include "texture.h"
|
||||||
#include "common/utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
// Estados del jugador
|
// Estados del jugador
|
||||||
#define PLAYER_STATUS_WALKING_LEFT 0
|
#define PLAYER_STATUS_WALKING_LEFT 0
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "common/asset.h"
|
#include "asset.h"
|
||||||
#include "common/screen.h"
|
#include "screen.h"
|
||||||
#include "common/sprite.h"
|
#include "sprite.h"
|
||||||
#include "common/text.h"
|
#include "text.h"
|
||||||
#include "common/utils.h"
|
#include "utils.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
#include "lang.h"
|
#include "lang.h"
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "notify.h"
|
#include "notify.h"
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "../const.h"
|
#include "const.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#define SCREEN_FILTER_NEAREST 0
|
#define SCREEN_FILTER_NEAREST 0
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "common/asset.h"
|
#include "asset.h"
|
||||||
#include "common/screen.h"
|
#include "screen.h"
|
||||||
#include "common/sprite.h"
|
#include "sprite.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
|
|
||||||
// Modos de funcionamiento para el tileado de fondo
|
// Modos de funcionamiento para el tileado de fondo
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include "common/asset.h"
|
#include "asset.h"
|
||||||
#include "common/input.h"
|
#include "input.h"
|
||||||
#include "common/jail_audio.h"
|
#include "jail_audio.h"
|
||||||
#include "common/movingsprite.h"
|
#include "movingsprite.h"
|
||||||
#include "common/screen.h"
|
#include "screen.h"
|
||||||
#include "common/smartsprite.h"
|
#include "smartsprite.h"
|
||||||
#include "common/sprite.h"
|
#include "sprite.h"
|
||||||
#include "common/text.h"
|
#include "text.h"
|
||||||
#include "common/utils.h"
|
#include "utils.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
#include "fade.h"
|
#include "fade.h"
|
||||||
#include "game.h"
|
#include "game.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user