|
|
@ -146,7 +146,6 @@ public: |
|
|
|
|
|
|
|
|
|
|
|
bool OnUserUpdate(float fElapsedTime) override |
|
|
|
bool OnUserUpdate(float fElapsedTime) override |
|
|
|
{ |
|
|
|
{ |
|
|
|
//Update Game Objects
|
|
|
|
|
|
|
|
player.Update(fElapsedTime); |
|
|
|
player.Update(fElapsedTime); |
|
|
|
|
|
|
|
|
|
|
|
for(Bullet&b:bullets){ |
|
|
|
for(Bullet&b:bullets){ |
|
|
@ -189,7 +188,6 @@ public: |
|
|
|
player.Move({48*fElapsedTime,0}); |
|
|
|
player.Move({48*fElapsedTime,0}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Called once per frame, draws random coloured pixels
|
|
|
|
|
|
|
|
Clear(olc::BLACK); |
|
|
|
Clear(olc::BLACK); |
|
|
|
for(Enemy&e:enemies){ |
|
|
|
for(Enemy&e:enemies){ |
|
|
|
for(Bullet&b:bullets){ |
|
|
|
for(Bullet&b:bullets){ |
|
|
|