Reestructurados los ficheros en carpetas
This commit is contained in:
@@ -1,15 +1,15 @@
|
|||||||
executable = super_pang_clone
|
executable = super_pang_clone
|
||||||
source = *.cpp
|
source = source/*.cpp
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
@echo off
|
@echo off
|
||||||
if not exist bin\ (mkdir bin)
|
if not exist bin\ (mkdir bin)
|
||||||
g++ $(source) -std=c++11 -Wall -O2 -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_mixer -ffunction-sections -fdata-sections -Wl,--gc-sections -static-libstdc++ -Wl,-subsystem,windows -o bin/$(executable).exe
|
g++ $(source) -std=c++11 -Wall -O2 -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_mixer -ffunction-sections -fdata-sections -Wl,--gc-sections -static-libstdc++ -Wl,-subsystem,windows -o $(executable).exe
|
||||||
strip -s -R .comment -R .gnu.version bin/$(executable).exe --strip-unneeded
|
strip -s -R .comment -R .gnu.version $(executable).exe --strip-unneeded
|
||||||
macos:
|
macos:
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
g++ $(source) -std=c++11 -Wall -O2 -lSDL2 -lSDL2_image -lSDL2_mixer -ffunction-sections -fdata-sections -o bin/$(executable)_macos
|
g++ $(source) -std=c++11 -Wall -O2 -lSDL2 -lSDL2_image -lSDL2_mixer -ffunction-sections -fdata-sections -o $(executable)_macos
|
||||||
linux:
|
linux:
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
g++ $(source) -std=c++11 -Wall -Os -lSDL2 -lSDL2_image -lSDL2_mixer -ffunction-sections -fdata-sections -Wl,--gc-sections -o bin/$(executable)_linux
|
g++ $(source) -std=c++11 -Wall -Os -lSDL2 -lSDL2_image -lSDL2_mixer -ffunction-sections -fdata-sections -Wl,--gc-sections -o $(executable)_linux
|
||||||
strip -s -R .comment -R .gnu.version bin/$(executable)_linux --strip-unneeded
|
strip -s -R .comment -R .gnu.version $(executable)_linux --strip-unneeded
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,3 @@
|
|||||||
#include "const.h"
|
|
||||||
#include "globals.h"
|
|
||||||
#include "balloon.h"
|
#include "balloon.h"
|
||||||
|
|
||||||
//Constructor
|
//Constructor
|
||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
#include "struct.h"
|
#include "struct.h"
|
||||||
#include "sprite.h"
|
#include "sprite.h"
|
||||||
|
#include "const.h"
|
||||||
|
#include "globals.h"
|
||||||
|
|
||||||
#ifndef BALLOON_H
|
#ifndef BALLOON_H
|
||||||
#define BALLOON_H
|
#define BALLOON_H
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
#include "const.h"
|
|
||||||
#include "globals.h"
|
|
||||||
#include "bullet.h"
|
#include "bullet.h"
|
||||||
|
|
||||||
//Constructor
|
//Constructor
|
||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
#include "struct.h"
|
#include "struct.h"
|
||||||
#include "sprite.h"
|
#include "sprite.h"
|
||||||
|
#include "const.h"
|
||||||
|
#include "globals.h"
|
||||||
|
|
||||||
#ifndef BULLET_H
|
#ifndef BULLET_H
|
||||||
#define BULLET_H
|
#define BULLET_H
|
||||||
@@ -1,13 +1,3 @@
|
|||||||
#include "const.h"
|
|
||||||
#include "struct.h"
|
|
||||||
#include "ltexture.h"
|
|
||||||
#include "globals.h"
|
|
||||||
#include "player.h"
|
|
||||||
#include "balloon.h"
|
|
||||||
#include "bullet.h"
|
|
||||||
#include "background.h"
|
|
||||||
#include "text.h"
|
|
||||||
#include "menu.h"
|
|
||||||
#include "gamedirector.h"
|
#include "gamedirector.h"
|
||||||
|
|
||||||
//Calcula el cuadrado de la distancia entre dos puntos
|
//Calcula el cuadrado de la distancia entre dos puntos
|
||||||
@@ -1,11 +1,15 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "player.h"
|
#include "background.h"
|
||||||
#include "balloon.h"
|
#include "balloon.h"
|
||||||
#include "bullet.h"
|
#include "bullet.h"
|
||||||
#include "background.h"
|
#include "const.h"
|
||||||
#include "text.h"
|
#include "globals.h"
|
||||||
|
#include "ltexture.h"
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
|
#include "player.h"
|
||||||
|
#include "struct.h"
|
||||||
|
#include "text.h"
|
||||||
|
|
||||||
#ifndef GAMEDIRECTOR_H
|
#ifndef GAMEDIRECTOR_H
|
||||||
#define GAMEDIRECTOR_H
|
#define GAMEDIRECTOR_H
|
||||||
@@ -3,7 +3,6 @@
|
|||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include <SDL2/SDL_image.h>
|
#include <SDL2/SDL_image.h>
|
||||||
#include <SDL2/SDL_mixer.h>
|
#include <SDL2/SDL_mixer.h>
|
||||||
#include "ltexture.h"
|
|
||||||
|
|
||||||
#ifndef GLOBALS_H
|
#ifndef GLOBALS_H
|
||||||
#define GLOBALS_H
|
#define GLOBALS_H
|
||||||
@@ -14,17 +13,6 @@ SDL_Window *gWindow = NULL;
|
|||||||
//El renderizador de la ventana
|
//El renderizador de la ventana
|
||||||
SDL_Renderer *gRenderer = NULL;
|
SDL_Renderer *gRenderer = NULL;
|
||||||
|
|
||||||
//Texturas con gráficos
|
|
||||||
LTexture gPlayerTexture;
|
|
||||||
LTexture gGameBackgroundTexture;
|
|
||||||
LTexture gTitleBackgroundTexture;
|
|
||||||
LTexture gWhiteFontTexture;
|
|
||||||
LTexture gBlackFontTexture;
|
|
||||||
LTexture gMenuTexture;
|
|
||||||
LTexture gBalloonTexture;
|
|
||||||
LTexture gBulletTexture;
|
|
||||||
LTexture gMiscTexture;
|
|
||||||
|
|
||||||
//Manejador para el mando 1
|
//Manejador para el mando 1
|
||||||
SDL_Joystick* gGameController = NULL;
|
SDL_Joystick* gGameController = NULL;
|
||||||
|
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "ltexture.h"
|
||||||
|
|
||||||
|
#ifndef GLOBALS2_H
|
||||||
|
#define GLOBALS2_H
|
||||||
|
|
||||||
|
//Texturas con gráficos
|
||||||
|
LTexture gPlayerTexture;
|
||||||
|
LTexture gGameBackgroundTexture;
|
||||||
|
LTexture gTitleBackgroundTexture;
|
||||||
|
LTexture gWhiteFontTexture;
|
||||||
|
LTexture gBlackFontTexture;
|
||||||
|
LTexture gMenuTexture;
|
||||||
|
LTexture gBalloonTexture;
|
||||||
|
LTexture gBulletTexture;
|
||||||
|
LTexture gMiscTexture;
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -1,9 +1,3 @@
|
|||||||
#include <SDL2/SDL.h>
|
|
||||||
#include <SDL2/SDL_image.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string>
|
|
||||||
#include "const.h"
|
|
||||||
#include "globals.h"
|
|
||||||
#include "ltexture.h"
|
#include "ltexture.h"
|
||||||
|
|
||||||
LTexture::LTexture()
|
LTexture::LTexture()
|
||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include <SDL2/SDL_image.h>
|
#include <SDL2/SDL_image.h>
|
||||||
|
#include "const.h"
|
||||||
|
#include "globals2.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
@@ -46,6 +46,7 @@ un tipo asociado diferente a NO_KIND
|
|||||||
#include "const.h"
|
#include "const.h"
|
||||||
#include "gamedirector.h"
|
#include "gamedirector.h"
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
|
#include "globals2.h"
|
||||||
#include "ltexture.h"
|
#include "ltexture.h"
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
@@ -1,6 +1,3 @@
|
|||||||
#include "const.h"
|
|
||||||
#include "globals.h"
|
|
||||||
#include "text.h"
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
|
|
||||||
//Constructor
|
//Constructor
|
||||||
@@ -1,6 +1,9 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "sprite.h"
|
#include "sprite.h"
|
||||||
|
#include "const.h"
|
||||||
|
#include "globals.h"
|
||||||
|
#include "text.h"
|
||||||
|
|
||||||
#ifndef MENU_H
|
#ifndef MENU_H
|
||||||
#define MENU_H
|
#define MENU_H
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
#include "const.h"
|
|
||||||
#include "globals.h"
|
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
|
|
||||||
//Constructor
|
//Constructor
|
||||||
@@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
#include "struct.h"
|
#include "struct.h"
|
||||||
#include "spriteanimated.h"
|
#include "spriteanimated.h"
|
||||||
|
#include "const.h"
|
||||||
|
#include "globals.h"
|
||||||
|
#include "globals2.h"
|
||||||
|
|
||||||
#ifndef PLAYER_H
|
#ifndef PLAYER_H
|
||||||
#define PLAYER_H
|
#define PLAYER_H
|
||||||
@@ -1,8 +1,5 @@
|
|||||||
#include "const.h"
|
|
||||||
#include "spriteanimated.h"
|
#include "spriteanimated.h"
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
//Constructor
|
//Constructor
|
||||||
SpriteAnimated::SpriteAnimated()
|
SpriteAnimated::SpriteAnimated()
|
||||||
{
|
{
|
||||||
@@ -3,6 +3,8 @@
|
|||||||
#include <SDL2/SDL.h>
|
#include <SDL2/SDL.h>
|
||||||
#include <SDL2/SDL_image.h>
|
#include <SDL2/SDL_image.h>
|
||||||
#include "sprite.h"
|
#include "sprite.h"
|
||||||
|
#include "const.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
#ifndef SPRITEANIMATED_H
|
#ifndef SPRITEANIMATED_H
|
||||||
#define SPRITEANIMATED_H
|
#define SPRITEANIMATED_H
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <SDL2/SDL.h>
|
||||||
|
|
||||||
#ifndef STRUCT_H
|
#ifndef STRUCT_H
|
||||||
#define STRUCT_H
|
#define STRUCT_H
|
||||||
|
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
#include "const.h"
|
|
||||||
#include "text.h"
|
#include "text.h"
|
||||||
|
|
||||||
//Constructor
|
//Constructor
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "sprite.h"
|
#include "sprite.h"
|
||||||
|
#include "const.h"
|
||||||
|
|
||||||
#ifndef TEXT_H
|
#ifndef TEXT_H
|
||||||
#define TEXT_H
|
#define TEXT_H
|
||||||
Reference in New Issue
Block a user