Skip to content

Commit

Permalink
Mi Juego
Browse files Browse the repository at this point in the history
  • Loading branch information
rNexeR committed Feb 20, 2015
1 parent 6166a1b commit 99d77b1
Show file tree
Hide file tree
Showing 31 changed files with 74 additions and 1 deletion.
5 changes: 5 additions & 0 deletions EnemigoAzul.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ EnemigoAzul::EnemigoAzul(SDL_Renderer* renderer, list<Personaje*> *personajes)
texturas.push_back(IMG_LoadTexture(renderer,"EnemigoAzul/standing/3.png"));
texturas.push_back(IMG_LoadTexture(renderer,"EnemigoAzul/standing/4.png"));

texturas_left.push_back(IMG_LoadTexture(renderer,"EnemigoAzul/standing_left/1.png"));
texturas_left.push_back(IMG_LoadTexture(renderer,"EnemigoAzul/standing_left/2.png"));
texturas_left.push_back(IMG_LoadTexture(renderer,"EnemigoAzul/standing_left/3.png"));
texturas_left.push_back(IMG_LoadTexture(renderer,"EnemigoAzul/standing_left/4.png"));

rect.x = 100;
rect.y = 250;

Expand Down
Binary file added EnemigoAzul/standing_left/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added EnemigoAzul/standing_left/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added EnemigoAzul/standing_left/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added EnemigoAzul/standing_left/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions EnemigoRojo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ EnemigoRojo::EnemigoRojo(SDL_Renderer* renderer, list<Personaje*> *personajes)
texturas.push_back(IMG_LoadTexture(renderer,"EnemigoRojo/standing/2.png"));
texturas.push_back(IMG_LoadTexture(renderer,"EnemigoRojo/standing/3.png"));
texturas.push_back(IMG_LoadTexture(renderer,"EnemigoRojo/standing/4.png"));

texturas_left.push_back(IMG_LoadTexture(renderer,"EnemigoRojo/standing_left/1.png"));
texturas_left.push_back(IMG_LoadTexture(renderer,"EnemigoRojo/standing_left/2.png"));
texturas_left.push_back(IMG_LoadTexture(renderer,"EnemigoRojo/standing_left/3.png"));
texturas_left.push_back(IMG_LoadTexture(renderer,"EnemigoRojo/standing_left/4.png"));

rect.x = 750;
rect.y = 250;
Expand Down
Binary file added EnemigoRojo/standing_left/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added EnemigoRojo/standing_left/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added EnemigoRojo/standing_left/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added EnemigoRojo/standing_left/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions EnemigoVerde.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ EnemigoVerde::EnemigoVerde(SDL_Renderer* renderer, list<Personaje*> *personajes)
texturas.push_back(IMG_LoadTexture(renderer,"EnemigoVerde/standing/2.png"));
texturas.push_back(IMG_LoadTexture(renderer,"EnemigoVerde/standing/3.png"));
texturas.push_back(IMG_LoadTexture(renderer,"EnemigoVerde/standing/4.png"));

texturas_left.push_back(IMG_LoadTexture(renderer,"EnemigoVerde/standing_left/1.png"));
texturas_left.push_back(IMG_LoadTexture(renderer,"EnemigoVerde/standing_left/2.png"));
texturas_left.push_back(IMG_LoadTexture(renderer,"EnemigoVerde/standing_left/3.png"));
texturas_left.push_back(IMG_LoadTexture(renderer,"EnemigoVerde/standing_left/4.png"));

rect.x = 500;
rect.y = 250;
Expand Down
Binary file added EnemigoVerde/standing_left/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added EnemigoVerde/standing_left/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added EnemigoVerde/standing_left/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added EnemigoVerde/standing_left/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Personaje.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Personaje::~Personaje()

void Personaje::draw(SDL_Renderer* renderer)
{
SDL_RenderCopy(renderer, texturas[animacion], NULL, &rect);
SDL_RenderCopy(renderer, texturas_left[animacion], NULL, &rect);
if(frame%100==0)
{
animacion++;
Expand Down
2 changes: 2 additions & 0 deletions Personaje.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class Personaje
public:
list<Personaje*> *personajes;
vector<SDL_Texture*>texturas;
vector<SDL_Texture*>texturas_left;
vector<SDL_Texture*>texturas_right;
SDL_Texture* hitbox_azul;
SDL_Texture* hitbox_roja;
SDL_Rect rect,hitbox;
Expand Down
51 changes: 51 additions & 0 deletions SDL2Testground.depend
Original file line number Diff line number Diff line change
Expand Up @@ -608,3 +608,54 @@
1423856120 source:/home/turupawn/Projects/Clases/Progra3/SDL2TestSimple-master/Personaje.cpp
"Personaje.h"

1423853174 source:/home/rnexer/Programacion 3/beatemup/Enemigo.cpp
"Enemigo.h"

1423853174 /home/rnexer/Programacion 3/beatemup/Enemigo.h
"Personaje.h"

1424454142 /home/rnexer/Programacion 3/beatemup/Personaje.h
<SDL2/SDL.h>
<SDL2/SDL_image.h>
<vector>
<list>
<iostream>

1424454296 source:/home/rnexer/Programacion 3/beatemup/EnemigoAzul.cpp
"EnemigoAzul.h"

1423855667 /home/rnexer/Programacion 3/beatemup/EnemigoAzul.h
"Enemigo.h"

1424454296 source:/home/rnexer/Programacion 3/beatemup/EnemigoRojo.cpp
"EnemigoRojo.h"

1423855667 /home/rnexer/Programacion 3/beatemup/EnemigoRojo.h
"Enemigo.h"

1424454296 source:/home/rnexer/Programacion 3/beatemup/EnemigoVerde.cpp
"EnemigoVerde.h"

1423855667 /home/rnexer/Programacion 3/beatemup/EnemigoVerde.h
"Enemigo.h"

1424453696 source:/home/rnexer/Programacion 3/beatemup/main.cpp
<SDL2/SDL.h>
<SDL2/SDL_image.h>
<iostream>
<vector>
<list>
"Sho.h"
"EnemigoAzul.h"
"EnemigoVerde.h"
"EnemigoRojo.h"

1423855667 /home/rnexer/Programacion 3/beatemup/Sho.h
"Personaje.h"

1424454333 source:/home/rnexer/Programacion 3/beatemup/Personaje.cpp
"Personaje.h"

1424454142 source:/home/rnexer/Programacion 3/beatemup/Sho.cpp
"Sho.h"

5 changes: 5 additions & 0 deletions Sho.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ Sho::Sho(SDL_Renderer* renderer,list<Personaje*> *personajes)
texturas.push_back(IMG_LoadTexture(renderer,"Sho/standing/2.png"));
texturas.push_back(IMG_LoadTexture(renderer,"Sho/standing/3.png"));
texturas.push_back(IMG_LoadTexture(renderer,"Sho/standing/4.png"));

texturas_left.push_back(IMG_LoadTexture(renderer,"Sho/standing_left/1.png"));
texturas_left.push_back(IMG_LoadTexture(renderer,"Sho/standing_left/2.png"));
texturas_left.push_back(IMG_LoadTexture(renderer,"Sho/standing_left/3.png"));
texturas_left.push_back(IMG_LoadTexture(renderer,"Sho/standing_left/4.png"));

rect.x = 100;
rect.y = 250;
Expand Down
Binary file added Sho/standing_left/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sho/standing_left/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sho/standing_left/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Sho/standing_left/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bin/Debug/SDL2Testground
Binary file not shown.
Binary file modified obj/Debug/Enemigo.o
Binary file not shown.
Binary file modified obj/Debug/EnemigoAzul.o
Binary file not shown.
Binary file modified obj/Debug/EnemigoRojo.o
Binary file not shown.
Binary file modified obj/Debug/EnemigoVerde.o
Binary file not shown.
Binary file modified obj/Debug/Personaje.o
Binary file not shown.
Binary file modified obj/Debug/Sho.o
Binary file not shown.
Binary file modified obj/Debug/main.o
Binary file not shown.

0 comments on commit 99d77b1

Please sign in to comment.