nou grafic per a les bales

This commit is contained in:
2024-08-03 17:19:05 +02:00
parent bca688a9a7
commit 735e5299f9
2 changed files with 5 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 644 B

After

Width:  |  Height:  |  Size: 858 B

View File

@@ -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;