New Projectiles class
Refactor of Bullet class Different method of shooting.
This commit is contained in:
9
sources/Rocket.cpp
Normal file
9
sources/Rocket.cpp
Normal file
@@ -0,0 +1,9 @@
|
||||
#include "../headers/Rocket.h"
|
||||
|
||||
void Rocket::update() {
|
||||
sprite.move(0.0f, speed);
|
||||
position.y += int(speed);
|
||||
if(position.y < -100) {
|
||||
outOfBounds = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user