Projectile Library
Diff: Projectile.cpp
- Revision:
- 8:36610092060f
- Parent:
- 7:50b6d2c95156
- Child:
- 9:64ba68ae2640
--- a/Projectile.cpp Wed May 03 13:32:42 2017 +0000 +++ b/Projectile.cpp Wed May 03 15:50:50 2017 +0000 @@ -26,7 +26,7 @@ void Projectile::draw(N5110 &lcd) { _velocity.x = 0; - _velocity.y = -5; + _velocity.y = -7; //printf("playerxy projdraw = %d %d \n", _playerx, _playery); @@ -41,8 +41,8 @@ if(m == 0){ - _x = _playerx +2; // Middle of screen // Change these values to change starting position - _y = _playery; // Near bottom of screen + _x = _playerx +2; + _y = _playery; m = m+1; } lcd.drawRect(_x,_y,2,2,FILL_BLACK);