Arreglos varios al codi
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#include "moving_sprite.h"
|
||||
#include "texture.h" // for Texture
|
||||
#include "texture.h" // for Texture
|
||||
|
||||
// Constructor
|
||||
MovingSprite::MovingSprite(float x, float y, int w, int h, float velx, float vely, float accelx, float accely, Texture *texture)
|
||||
: x(x), y(y)
|
||||
{
|
||||
// Copia los punteros
|
||||
this->texture = texture;
|
||||
@@ -12,8 +13,6 @@ MovingSprite::MovingSprite(float x, float y, int w, int h, float velx, float vel
|
||||
this->h = h;
|
||||
|
||||
// Establece la posición X,Y del sprite
|
||||
this->x = x;
|
||||
this->y = y;
|
||||
xPrev = x;
|
||||
yPrev = y;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user