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
|
||||
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
|
||||
posX = x;
|
||||
posY = y;
|
||||
|
||||
// Alto y ancho del objeto
|
||||
width = 10;
|
||||
height = 10;
|
||||
width = 12;
|
||||
height = 12;
|
||||
|
||||
// Crea el sprite
|
||||
sprite = new Sprite({x, y, width, height}, texture);
|
||||
|
||||
// Velocidad inicial en el eje Y
|
||||
velY = -3;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user