nou grafic per a les bales
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 644 B After Width: | Height: | Size: 858 B |
@@ -4,16 +4,18 @@
|
|||||||
// Constructor
|
// Constructor
|
||||||
Bullet::Bullet(int x, int y, int kind, bool poweredUp, int owner, Texture *texture)
|
Bullet::Bullet(int x, int y, int kind, bool poweredUp, int owner, Texture *texture)
|
||||||
{
|
{
|
||||||
sprite = new Sprite({x, y, 10, 10}, texture);
|
|
||||||
|
|
||||||
// Posición inicial del objeto
|
// Posición inicial del objeto
|
||||||
posX = x;
|
posX = x;
|
||||||
posY = y;
|
posY = y;
|
||||||
|
|
||||||
// Alto y ancho del objeto
|
// Alto y ancho del objeto
|
||||||
width = 10;
|
width = 12;
|
||||||
height = 10;
|
height = 12;
|
||||||
|
|
||||||
|
// Crea el sprite
|
||||||
|
sprite = new Sprite({x, y, width, height}, texture);
|
||||||
|
|
||||||
// Velocidad inicial en el eje Y
|
// Velocidad inicial en el eje Y
|
||||||
velY = -3;
|
velY = -3;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user