Page MenuHomePhabricator (Chris)

No OneTemporary

Size
27 KB
Referenced Files
None
Subscribers
None
diff --git a/Fonts/arial.ttf b/Fonts/arial.ttf
deleted file mode 100644
index cc9a05d..0000000
Binary files a/Fonts/arial.ttf and /dev/null differ
diff --git a/SRC/AlmacenDeFuentes.cpp b/SRC/AlmacenDeFuentes.cpp
index c8c0531..7acf50b 100644
--- a/SRC/AlmacenDeFuentes.cpp
+++ b/SRC/AlmacenDeFuentes.cpp
@@ -1,8 +1,8 @@
#include "AlmacenDeFuentes.hpp"
#include <iostream>
AlmacenDeFuentes::AlmacenDeFuentes()
{
- if (!arial.loadFromFile("./Fonts/arial.ttf"))
+ if (!liberation.loadFromFile("/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf"))
std::cout<<"fallo al leer la fuente "<<std::endl;
}
diff --git a/SRC/AlmacenDeFuentes.hpp b/SRC/AlmacenDeFuentes.hpp
index 2a6e0ae..2137bc9 100644
--- a/SRC/AlmacenDeFuentes.hpp
+++ b/SRC/AlmacenDeFuentes.hpp
@@ -1,22 +1,22 @@
#ifndef ALMACENDEFUENTES_H
#define ALMACENDEFUENTES_H
#include <SFML/Graphics.hpp>
class AlmacenDeFuentes
{
private:
AlmacenDeFuentes();
- sf::Font arial;
+ sf::Font liberation;
public:
static const AlmacenDeFuentes& getInstancia()
{
static AlmacenDeFuentes instancia;
return instancia;
}
- const sf::Font& getArial() const {return arial;}
+ const sf::Font& getLiberation() const {return liberation;}
};
#endif // ALMACENDEFUENTES_H
diff --git a/SRC/Puntuacion.cpp b/SRC/Puntuacion.cpp
index f3bb3f6..adfd6e9 100644
--- a/SRC/Puntuacion.cpp
+++ b/SRC/Puntuacion.cpp
@@ -1,61 +1,61 @@
#include "Puntuacion.hpp"
#include "AlmacenDeFuentes.hpp"
#include "AlmacenDeGraficos.hpp"
#include "Puntuacion.hpp"
#include <sstream>
#include "Estado.hpp"
Puntuacion::Puntuacion()
{
//ctor
- marcador.setFont(AlmacenDeFuentes::getInstancia().getArial());
+ marcador.setFont(AlmacenDeFuentes::getInstancia().getLiberation());
marcador.setPosition(300,640);
marcador.setCharacterSize(24);
marcador.setColor(sf::Color::White);
actualizarMarcador();
Estado::getInstancia().anyadirCallback(this);
}
void Puntuacion::comerComida()
{
puntos += 20;
actualizarMarcador();
}
void Puntuacion::comerPildora()
{
puntos += 30;
actualizarMarcador();
}
void Puntuacion::comerFantasma(sf::Vector2f pos)
{
puntos += 200*incr;
incr *= 2;
sprite.setPosition(pos);
sprite.setTexture(AlmacenDeGraficos::getInstancia().getPuntos(consecutivos));
consecutivos++;
actualizarMarcador();
}
void Puntuacion::actualizarMarcador()
{
std::stringstream stream;
stream<<"Puntos: "<<puntos;
marcador.setString(stream.str());
}
void Puntuacion::disableRampage()
{
consecutivos = 0;
incr = 1;
sprite.setPosition(-20,-20);
}
Puntuacion::~Puntuacion()
{
Estado::getInstancia().eliminarCallback(this);
}
diff --git a/SRC/main.cpp b/SRC/main.cpp
index d9325ca..b629b3a 100644
--- a/SRC/main.cpp
+++ b/SRC/main.cpp
@@ -1,190 +1,190 @@
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include "Tablero.hpp"
#include "Pacman.hpp"
#include "FantasmaRojo.hpp"
#include "FantasmaRosa.hpp"
#include "FantasmaAmarillo.hpp"
#include "FantasmaAzul.hpp"
#include "Estado.hpp"
#include "AlmacenDeSonido.hpp"
#include "AlmacenDeFuentes.hpp"
#include "Puntuacion.hpp"
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <memory>
const int RESOLUCIONX = 560;
const int RESOLUCIONY = 680;
const int POS_INICIAL_PACMANX = 13;
const int POS_INICIAL_PACMANY = 23;
int main()
{
std::srand(std::time(0));
// Create the main window
sf::RenderWindow app(sf::VideoMode(560, 680), "Comecocos");
app.setFramerateLimit(60);
/**
* Bucle principal del juego:
*
* - Eventos, llamadas a las set Dirrecion
* - moverPersonaje()
* - moverFantasmas()
* - Dibujado
*/
int vidas = 3;
int nivel = 1;
sf::Text vidas_y_nivel;
- vidas_y_nivel.setFont(AlmacenDeFuentes::getInstancia().getArial());
+ vidas_y_nivel.setFont(AlmacenDeFuentes::getInstancia().getLiberation());
vidas_y_nivel.setCharacterSize(24);
vidas_y_nivel.setPosition(50,RESOLUCIONY-40);
sf::Sound introduccion;
introduccion.setBuffer(AlmacenDeSonido::getInstancia().getPacman_beginning());
Puntuacion puntuacion;
std::unique_ptr<Tablero> tablero(new Tablero(RESOLUCIONX,RESOLUCIONY,puntuacion));
while (vidas && app.isOpen())
{
std::cout<<"Vidas: "<<vidas<<std::endl<<"Nivel: "<<nivel<<std::endl<<std::endl;
vidas_y_nivel.setString("Vidas: "+std::to_string(vidas) + " Nivel: " + std::to_string(nivel));
//Tablero tablero(RESOLUCIONX,RESOLUCIONY);
Pacman pacman(*tablero,POS_INICIAL_PACMANX,POS_INICIAL_PACMANY);
FantasmaRojo fantasma_rojo(*tablero,pacman,puntuacion,13,13);
FantasmaRosa fantasma_rosa(*tablero,pacman,puntuacion,13,14,fantasma_rojo);
FantasmaAmarillo fantasma_amarillo(*tablero,pacman,puntuacion,14,13);
FantasmaAzul fantasma_azul(*tablero,pacman,puntuacion,14,14);
pacman.disableMov();
fantasma_rojo.disableMov();
fantasma_rosa.disableMov();
fantasma_amarillo.disableMov();
fantasma_azul.disableMov();
// sf::Event event;
sf::Clock reloj;
reloj.restart();
introduccion.play();
//Fantasmas fantasmas;
// Start the game loop
while (app.isOpen() && tablero->getComida() > 0 && !pacman.terminado())
{
// Process events
sf::Event event;
while (app.pollEvent(event))
{
// Close window : exit
if (event.type == sf::Event::Closed)
app.close();
if (event.type == sf::Event::KeyPressed)
{
if (event.key.code == sf::Keyboard::A || event.key.code == sf::Keyboard::Left)
{
pacman.setIzquierdaDireccion();
}
else if (event.key.code == sf::Keyboard::D || event.key.code == sf::Keyboard::Right)
{
pacman.setDerechaDireccion();
}
else if (event.key.code == sf::Keyboard::W || event.key.code == sf::Keyboard::Up)
{
pacman.setArribaDireccion();
}
else if (event.key.code == sf::Keyboard::S || event.key.code == sf::Keyboard::Down)
{
pacman.setAbajoDireccion();
}
else if (event.key.code == sf::Keyboard::K)
{
pacman.matar();
}
else if (event.key.code == sf::Keyboard::Escape)
{
app.close();
}
}
}
if (sf::Keyboard::isKeyPressed(sf::Keyboard::A) || sf::Keyboard::isKeyPressed(sf::Keyboard::Left))
{
pacman.setIzquierdaDireccion();
}
else if (sf::Keyboard::isKeyPressed(sf::Keyboard::D) || sf::Keyboard::isKeyPressed(sf::Keyboard::Right))
{
pacman.setDerechaDireccion();
}
else if (sf::Keyboard::isKeyPressed(sf::Keyboard::S) || sf::Keyboard::isKeyPressed(sf::Keyboard::Down))
{
pacman.setAbajoDireccion();
}
else if (sf::Keyboard::isKeyPressed(sf::Keyboard::W) || sf::Keyboard::isKeyPressed(sf::Keyboard::Up))
{
pacman.setArribaDireccion();
}
if (reloj.getElapsedTime() >= sf::seconds(4))
{
// Ya ha terminado la animación. Ya se puede correr
pacman.enableMov();
fantasma_rojo.enableMov();
fantasma_rosa.enableMov();
fantasma_amarillo.enableMov();
fantasma_azul.enableMov();
}
Estado::getInstancia().refresh();
pacman.mover();
fantasma_rojo.mover();
fantasma_rosa.mover();
fantasma_amarillo.mover();
fantasma_azul.mover();
/*if (fantasmas.mover())
{
app.close();
}*/
app.clear();
app.draw(tablero->getRepresentacion());
app.draw(fantasma_rojo.getSprite());
app.draw(fantasma_rosa.getSprite());
app.draw(fantasma_amarillo.getSprite());
app.draw(fantasma_azul.getSprite());
app.draw(pacman.getSprite());
app.draw(puntuacion.getText());
app.draw(puntuacion.getPuntuacionEmergente());
app.draw(vidas_y_nivel);
//app.draw(sf::Sprite(AlmacenDeGraficos::getInstancia().getFantasma(0,0,1)));
app.display();
}
vidas -= pacman.terminado();
if (tablero->getComida() == 0)
{
tablero.reset(new Tablero(RESOLUCIONX,RESOLUCIONY,puntuacion));
nivel++;
}
Estado::getInstancia().desactivarRampage();
}
return EXIT_SUCCESS;
}
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..31f6994
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+comecocos (1.0-1) groovy; urgency=medium
+
+ * Initial release for groovy
+
+ -- Chris <dpkg@chris-nz.com> Sun, 04 Apr 2021 19:43:00 +1300
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..3d817df
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,16 @@
+Source: comecocos
+Section: games
+Priority: optional
+Maintainer: Chris <dpkg@chris-nz.com>
+Build-Depends: debhelper-compat (= 12), libsfml-dev
+Standards-Version: 4.4.1
+Homepage: https://github.com/miachm/Pacman
+
+Package: comecocos
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: A clone of classic Pacman
+ Pacman: eat all the small dots to get to the next level.
+ Eat power pellets and do not get eaten by ghosts.
+ .
+ This clone was developed in the summer of 2014 as proof of concept.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..473e3d9
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,29 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Pacman
+Upstream-Contact: Miguel Chacon <miachm3@gmail.com>
+Source: https://github.com/miachm/Pacman
+
+Files: *
+Copyright: 2014 Miguel Chacon <miachm3@gmail.com>
+License: GPL-2
+
+Files: debian/*
+Copyright: 2021 Chris <dpkg@chris-nz.com>
+License: GPL-2
+
+License: GPL-2
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
diff --git a/debian/data/comecocos.desktop b/debian/data/comecocos.desktop
new file mode 100644
index 0000000..2368534
--- /dev/null
+++ b/debian/data/comecocos.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Comecocos (Pacman)
+GenericName=Arcade Game
+Comment=A simple clone of the classic arcade game
+Comment[de]=Ein simpler Klon des Arkadeklassikers Pacman
+Exec=comecocos
+Icon=comecocos
+Terminal=false
+Type=Application
+Categories=Game;ArcadeGame;
+Keywords=arcade;pacman;dots;ghosts;level;
diff --git a/debian/data/comecocos.man b/debian/data/comecocos.man
new file mode 100644
index 0000000..8ea47eb
--- /dev/null
+++ b/debian/data/comecocos.man
@@ -0,0 +1,44 @@
+.\" comecocos.man
+.\"
+.\" This program is free software. See the file COPYING for a list
+.\" of conditions.
+.\"
+.TH COMECOCOS 6
+.SH NAME
+comecocos \- the game of pacman
+.SH SYNOPSIS
+.B "comecocos"
+[grey]
+.SH DESCRIPTION
+.PP
+.I Pacman
+is an old action game.
+.PP
+You are Pacman, and you are supposed to eat all the small dots to get
+to the next level. You are also supposed to keep away from the ghosts,
+if they take you, you lose one life, unless you have eaten a large
+dot, then you can, for a limited amount of time, chase and eat the
+ghosts. There is also bonus available, for a limited amount of
+time. An X gives just points, but a little pacman gives an extra life.
+.PP
+You use either keyboard or mouse. Default from start is keyboard.
+.PP
+Keyboard mode: To move use \fIarrows\fP, to quit, press \fIq\fP, to use mouse,
+press \fIm\fP.
+.PP
+Details: When pacman has moved to a new place, if you want it to change
+it's moving direction, hit key/move mouse until it has moved.
+.SH ENVIRONMENT
+.PP
+.TP 8
+.B DISPLAY
+To get default display.
+.SH AUTHOR
+.if t Miguel Chacon\(aes,
+.if n Miguel Chacon,
+miachm3@gmail.com.
+.br
+This man page written by
+.if t J\(:org Wunsch,
+.if n Joerg Wunsch,
+joerg_wunsch@uriah.heep.sax.de.
diff --git a/debian/data/comecocos.png b/debian/data/comecocos.png
new file mode 100644
index 0000000..689657b
Binary files /dev/null and b/debian/data/comecocos.png differ
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..d240fa2
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,7 @@
+debian/data/comecocos.desktop /usr/share/applications
+debian/data/comecocos.png /usr/share/icons/hicolor/128x128/apps
+comecocos /usr/games
+Image /usr/share/comecocos
+Sound /usr/share/comecocos
+Sprites /usr/share/comecocos
+
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..0df214f
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/data/comecocos.man
diff --git a/debian/patches/Change-Name-of-Release-Binary b/debian/patches/Change-Name-of-Release-Binary
new file mode 100644
index 0000000..1e178ad
--- /dev/null
+++ b/debian/patches/Change-Name-of-Release-Binary
@@ -0,0 +1,28 @@
+Description: Change name of release binary
+ The release was called RemakeComecocos, which doesn't sound very linux-y.
+ For consistency I have renamed it in the makefile.
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: https://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: 2021-04-04
+
+--- comecocos-1.0.orig/makefile
++++ comecocos-1.0/makefile
+@@ -33,7 +33,7 @@ LIB_RELEASE = $(LIB)
+ LDFLAGS_RELEASE = $(LDFLAGS) -s
+ OBJDIR_RELEASE = obj/Release
+ DEP_RELEASE =
+-OUT_RELEASE = RemakeComecocos
++OUT_RELEASE = comecocos
+
+ OBJ_DEBUG = $(OBJDIR_DEBUG)/SRC/Tablero.o $(OBJDIR_DEBUG)/SRC/FantasmaRosa.o $(OBJDIR_DEBUG)/SRC/Pacman.o $(OBJDIR_DEBUG)/SRC/Personaje.o $(OBJDIR_DEBUG)/SRC/Puntuacion.o $(OBJDIR_DEBUG)/SRC/main.o $(OBJDIR_DEBUG)/SRC/Estado.o $(OBJDIR_DEBUG)/SRC/AlmacenDeFuentes.o $(OBJDIR_DEBUG)/SRC/AlmacenDeGraficos.o $(OBJDIR_DEBUG)/SRC/AlmacenDeSonido.o $(OBJDIR_DEBUG)/SRC/Fantasma.o $(OBJDIR_DEBUG)/SRC/FantasmaAmarillo.o $(OBJDIR_DEBUG)/SRC/FantasmaAzul.o $(OBJDIR_DEBUG)/SRC/FantasmaRojo.o
+
diff --git a/debian/patches/Use-system-Liberation-font-instead-of-bundled-Arial b/debian/patches/Use-system-Liberation-font-instead-of-bundled-Arial
new file mode 100644
index 0000000..83d8684
--- /dev/null
+++ b/debian/patches/Use-system-Liberation-font-instead-of-bundled-Arial
@@ -0,0 +1,73 @@
+Description: Use system Liberation Sans font instead of bundled Arial.ttf
+ The original package has the proprietary Arial font in ttf format.
+ Replacing this with Liberation Sans means:
+ - we are using a font that's availabkle for both red hat and debian systems
+ - the font is installed by default on some systems (ubuntu I think)
+ - smaller binary package
+ - warm feelings
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: https://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: 2021-04-04
+
+--- comecocos-1.0.orig/SRC/AlmacenDeFuentes.cpp
++++ comecocos-1.0/SRC/AlmacenDeFuentes.cpp
+@@ -3,6 +3,6 @@
+
+ AlmacenDeFuentes::AlmacenDeFuentes()
+ {
+- if (!arial.loadFromFile("./Fonts/arial.ttf"))
++ if (!liberation.loadFromFile("/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf"))
+ std::cout<<"fallo al leer la fuente "<<std::endl;
+ }
+--- comecocos-1.0.orig/SRC/AlmacenDeFuentes.hpp
++++ comecocos-1.0/SRC/AlmacenDeFuentes.hpp
+@@ -7,7 +7,7 @@ class AlmacenDeFuentes
+ private:
+ AlmacenDeFuentes();
+
+- sf::Font arial;
++ sf::Font liberation;
+ public:
+
+ static const AlmacenDeFuentes& getInstancia()
+@@ -16,7 +16,7 @@ public:
+ return instancia;
+ }
+
+- const sf::Font& getArial() const {return arial;}
++ const sf::Font& getLiberation() const {return liberation;}
+ };
+
+ #endif // ALMACENDEFUENTES_H
+--- comecocos-1.0.orig/SRC/Puntuacion.cpp
++++ comecocos-1.0/SRC/Puntuacion.cpp
+@@ -8,7 +8,7 @@
+ Puntuacion::Puntuacion()
+ {
+ //ctor
+- marcador.setFont(AlmacenDeFuentes::getInstancia().getArial());
++ marcador.setFont(AlmacenDeFuentes::getInstancia().getLiberation());
+ marcador.setPosition(300,640);
+ marcador.setCharacterSize(24);
+ marcador.setColor(sf::Color::White);
+--- comecocos-1.0.orig/SRC/main.cpp
++++ comecocos-1.0/SRC/main.cpp
+@@ -40,7 +40,7 @@ int main()
+ int nivel = 1;
+
+ sf::Text vidas_y_nivel;
+- vidas_y_nivel.setFont(AlmacenDeFuentes::getInstancia().getArial());
++ vidas_y_nivel.setFont(AlmacenDeFuentes::getInstancia().getLiberation());
+ vidas_y_nivel.setCharacterSize(24);
+ vidas_y_nivel.setPosition(50,RESOLUCIONY-40);
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..90c15cc
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+Change-Name-of-Release-Binary
+Use-system-Liberation-font-instead-of-bundled-Arial
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ed3b3f6
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+export DH_VERBOSE = 1
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+export DEB_CXXFLAGS_MAINT_APPEND = -DQT_NO_DEBUG_OUTPUT -DQT_NO_WARNING_OUTPUT
+
+%:
+ dh $@
+
+
+# dh_make generated override targets
+# This is example for Cmake (See https://bugs.debian.org/641051 )
+#override_dh_auto_configure:
+# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/include-binaries b/debian/source/include-binaries
new file mode 100644
index 0000000..6a4fcd8
--- /dev/null
+++ b/debian/source/include-binaries
@@ -0,0 +1,18 @@
+debian/data/comecocos.png
+debian/data/comecocos.desktop
+
+comecocos
+obj/Release/SRC/AlmacenDeFuentes.o
+obj/Release/SRC/AlmacenDeGraficos.o
+obj/Release/SRC/AlmacenDeSonido.o
+obj/Release/SRC/Estado.o
+obj/Release/SRC/Fantasma.o
+obj/Release/SRC/FantasmaAmarillo.o
+obj/Release/SRC/FantasmaAzul.o
+obj/Release/SRC/FantasmaRojo.o
+obj/Release/SRC/FantasmaRosa.o
+obj/Release/SRC/Pacman.o
+obj/Release/SRC/Personaje.o
+obj/Release/SRC/Puntuacion.o
+obj/Release/SRC/Tablero.o
+obj/Release/SRC/main.o
diff --git a/makefile b/makefile
index 3ac94f8..e162e07 100644
--- a/makefile
+++ b/makefile
@@ -1,163 +1,163 @@
WORKDIR = `pwd`
CC = gcc
CXX = g++
AR = ar
LD = g++
WINDRES = windres
INC =
CFLAGS = -std=c++11 -Wall
RESINC =
LIBDIR =
LIB = -lsfml-audio -lsfml-graphics -lsfml-window -lsfml-system
LDFLAGS =
INC_DEBUG = $(INC) -Iinclude -ISRC -ISRC/
CFLAGS_DEBUG = $(CFLAGS) -g
RESINC_DEBUG = $(RESINC)
RCFLAGS_DEBUG = $(RCFLAGS)
LIBDIR_DEBUG = $(LIBDIR)
LIB_DEBUG = $(LIB)
LDFLAGS_DEBUG = $(LDFLAGS)
OBJDIR_DEBUG = obj/Debug
DEP_DEBUG =
OUT_DEBUG = RemakeComecocos-Debug
INC_RELEASE = $(INC) -Iinclude -ISRC -ISRC/
CFLAGS_RELEASE = $(CFLAGS) -O2
RESINC_RELEASE = $(RESINC)
RCFLAGS_RELEASE = $(RCFLAGS)
LIBDIR_RELEASE = $(LIBDIR)
LIB_RELEASE = $(LIB)
LDFLAGS_RELEASE = $(LDFLAGS) -s
OBJDIR_RELEASE = obj/Release
DEP_RELEASE =
-OUT_RELEASE = RemakeComecocos
+OUT_RELEASE = comecocos
OBJ_DEBUG = $(OBJDIR_DEBUG)/SRC/Tablero.o $(OBJDIR_DEBUG)/SRC/FantasmaRosa.o $(OBJDIR_DEBUG)/SRC/Pacman.o $(OBJDIR_DEBUG)/SRC/Personaje.o $(OBJDIR_DEBUG)/SRC/Puntuacion.o $(OBJDIR_DEBUG)/SRC/main.o $(OBJDIR_DEBUG)/SRC/Estado.o $(OBJDIR_DEBUG)/SRC/AlmacenDeFuentes.o $(OBJDIR_DEBUG)/SRC/AlmacenDeGraficos.o $(OBJDIR_DEBUG)/SRC/AlmacenDeSonido.o $(OBJDIR_DEBUG)/SRC/Fantasma.o $(OBJDIR_DEBUG)/SRC/FantasmaAmarillo.o $(OBJDIR_DEBUG)/SRC/FantasmaAzul.o $(OBJDIR_DEBUG)/SRC/FantasmaRojo.o
OBJ_RELEASE = $(OBJDIR_RELEASE)/SRC/Tablero.o $(OBJDIR_RELEASE)/SRC/FantasmaRosa.o $(OBJDIR_RELEASE)/SRC/Pacman.o $(OBJDIR_RELEASE)/SRC/Personaje.o $(OBJDIR_RELEASE)/SRC/Puntuacion.o $(OBJDIR_RELEASE)/SRC/main.o $(OBJDIR_RELEASE)/SRC/Estado.o $(OBJDIR_RELEASE)/SRC/AlmacenDeFuentes.o $(OBJDIR_RELEASE)/SRC/AlmacenDeGraficos.o $(OBJDIR_RELEASE)/SRC/AlmacenDeSonido.o $(OBJDIR_RELEASE)/SRC/Fantasma.o $(OBJDIR_RELEASE)/SRC/FantasmaAmarillo.o $(OBJDIR_RELEASE)/SRC/FantasmaAzul.o $(OBJDIR_RELEASE)/SRC/FantasmaRojo.o
all: release
clean: clean_debug clean_release
before_debug:
test -d bin/Debug || mkdir -p bin/Debug
test -d $(OBJDIR_DEBUG)/SRC || mkdir -p $(OBJDIR_DEBUG)/SRC
after_debug:
debug: before_debug out_debug after_debug
out_debug: before_debug $(OBJ_DEBUG) $(DEP_DEBUG)
$(LD) $(LIBDIR_DEBUG) -o $(OUT_DEBUG) $(OBJ_DEBUG) $(LDFLAGS_DEBUG) $(LIB_DEBUG)
$(OBJDIR_DEBUG)/SRC/Tablero.o: SRC/Tablero.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c SRC/Tablero.cpp -o $(OBJDIR_DEBUG)/SRC/Tablero.o
$(OBJDIR_DEBUG)/SRC/FantasmaRosa.o: SRC/FantasmaRosa.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c SRC/FantasmaRosa.cpp -o $(OBJDIR_DEBUG)/SRC/FantasmaRosa.o
$(OBJDIR_DEBUG)/SRC/Pacman.o: SRC/Pacman.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c SRC/Pacman.cpp -o $(OBJDIR_DEBUG)/SRC/Pacman.o
$(OBJDIR_DEBUG)/SRC/Personaje.o: SRC/Personaje.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c SRC/Personaje.cpp -o $(OBJDIR_DEBUG)/SRC/Personaje.o
$(OBJDIR_DEBUG)/SRC/Puntuacion.o: SRC/Puntuacion.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c SRC/Puntuacion.cpp -o $(OBJDIR_DEBUG)/SRC/Puntuacion.o
$(OBJDIR_DEBUG)/SRC/main.o: SRC/main.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c SRC/main.cpp -o $(OBJDIR_DEBUG)/SRC/main.o
$(OBJDIR_DEBUG)/SRC/Estado.o: SRC/Estado.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c SRC/Estado.cpp -o $(OBJDIR_DEBUG)/SRC/Estado.o
$(OBJDIR_DEBUG)/SRC/AlmacenDeFuentes.o: SRC/AlmacenDeFuentes.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c SRC/AlmacenDeFuentes.cpp -o $(OBJDIR_DEBUG)/SRC/AlmacenDeFuentes.o
$(OBJDIR_DEBUG)/SRC/AlmacenDeGraficos.o: SRC/AlmacenDeGraficos.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c SRC/AlmacenDeGraficos.cpp -o $(OBJDIR_DEBUG)/SRC/AlmacenDeGraficos.o
$(OBJDIR_DEBUG)/SRC/AlmacenDeSonido.o: SRC/AlmacenDeSonido.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c SRC/AlmacenDeSonido.cpp -o $(OBJDIR_DEBUG)/SRC/AlmacenDeSonido.o
$(OBJDIR_DEBUG)/SRC/Fantasma.o: SRC/Fantasma.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c SRC/Fantasma.cpp -o $(OBJDIR_DEBUG)/SRC/Fantasma.o
$(OBJDIR_DEBUG)/SRC/FantasmaAmarillo.o: SRC/FantasmaAmarillo.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c SRC/FantasmaAmarillo.cpp -o $(OBJDIR_DEBUG)/SRC/FantasmaAmarillo.o
$(OBJDIR_DEBUG)/SRC/FantasmaAzul.o: SRC/FantasmaAzul.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c SRC/FantasmaAzul.cpp -o $(OBJDIR_DEBUG)/SRC/FantasmaAzul.o
$(OBJDIR_DEBUG)/SRC/FantasmaRojo.o: SRC/FantasmaRojo.cpp
$(CXX) $(CFLAGS_DEBUG) $(INC_DEBUG) -c SRC/FantasmaRojo.cpp -o $(OBJDIR_DEBUG)/SRC/FantasmaRojo.o
clean_debug:
rm -f $(OBJ_DEBUG) $(OUT_DEBUG)
rm -rf bin/Debug
rm -rf $(OBJDIR_DEBUG)/SRC
before_release:
test -d bin/Release || mkdir -p bin/Release
test -d $(OBJDIR_RELEASE)/SRC || mkdir -p $(OBJDIR_RELEASE)/SRC
after_release:
release: before_release out_release after_release
out_release: before_release $(OBJ_RELEASE) $(DEP_RELEASE)
$(LD) $(LIBDIR_RELEASE) -o $(OUT_RELEASE) $(OBJ_RELEASE) $(LDFLAGS_RELEASE) $(LIB_RELEASE)
$(OBJDIR_RELEASE)/SRC/Tablero.o: SRC/Tablero.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c SRC/Tablero.cpp -o $(OBJDIR_RELEASE)/SRC/Tablero.o
$(OBJDIR_RELEASE)/SRC/FantasmaRosa.o: SRC/FantasmaRosa.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c SRC/FantasmaRosa.cpp -o $(OBJDIR_RELEASE)/SRC/FantasmaRosa.o
$(OBJDIR_RELEASE)/SRC/Pacman.o: SRC/Pacman.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c SRC/Pacman.cpp -o $(OBJDIR_RELEASE)/SRC/Pacman.o
$(OBJDIR_RELEASE)/SRC/Personaje.o: SRC/Personaje.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c SRC/Personaje.cpp -o $(OBJDIR_RELEASE)/SRC/Personaje.o
$(OBJDIR_RELEASE)/SRC/Puntuacion.o: SRC/Puntuacion.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c SRC/Puntuacion.cpp -o $(OBJDIR_RELEASE)/SRC/Puntuacion.o
$(OBJDIR_RELEASE)/SRC/main.o: SRC/main.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c SRC/main.cpp -o $(OBJDIR_RELEASE)/SRC/main.o
$(OBJDIR_RELEASE)/SRC/Estado.o: SRC/Estado.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c SRC/Estado.cpp -o $(OBJDIR_RELEASE)/SRC/Estado.o
$(OBJDIR_RELEASE)/SRC/AlmacenDeFuentes.o: SRC/AlmacenDeFuentes.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c SRC/AlmacenDeFuentes.cpp -o $(OBJDIR_RELEASE)/SRC/AlmacenDeFuentes.o
$(OBJDIR_RELEASE)/SRC/AlmacenDeGraficos.o: SRC/AlmacenDeGraficos.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c SRC/AlmacenDeGraficos.cpp -o $(OBJDIR_RELEASE)/SRC/AlmacenDeGraficos.o
$(OBJDIR_RELEASE)/SRC/AlmacenDeSonido.o: SRC/AlmacenDeSonido.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c SRC/AlmacenDeSonido.cpp -o $(OBJDIR_RELEASE)/SRC/AlmacenDeSonido.o
$(OBJDIR_RELEASE)/SRC/Fantasma.o: SRC/Fantasma.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c SRC/Fantasma.cpp -o $(OBJDIR_RELEASE)/SRC/Fantasma.o
$(OBJDIR_RELEASE)/SRC/FantasmaAmarillo.o: SRC/FantasmaAmarillo.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c SRC/FantasmaAmarillo.cpp -o $(OBJDIR_RELEASE)/SRC/FantasmaAmarillo.o
$(OBJDIR_RELEASE)/SRC/FantasmaAzul.o: SRC/FantasmaAzul.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c SRC/FantasmaAzul.cpp -o $(OBJDIR_RELEASE)/SRC/FantasmaAzul.o
$(OBJDIR_RELEASE)/SRC/FantasmaRojo.o: SRC/FantasmaRojo.cpp
$(CXX) $(CFLAGS_RELEASE) $(INC_RELEASE) -c SRC/FantasmaRojo.cpp -o $(OBJDIR_RELEASE)/SRC/FantasmaRojo.o
clean_release:
rm -f $(OBJ_RELEASE) $(OUT_RELEASE)
rm -rf bin/Release
rm -rf $(OBJDIR_RELEASE)/SRC
.PHONY: before_debug after_debug clean_debug before_release after_release clean_release

File Metadata

Mime Type
text/x-diff
Expires
Thu, Sep 11, 8:39 PM (21 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42740
Default Alt Text
(27 KB)

Event Timeline