Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: BulletS/BulletS.cpp
- Revision:
- 12:be491ab6e742
- Parent:
- 11:c174d84e4866
- Child:
- 14:e88bcf5c0887
diff -r c174d84e4866 -r be491ab6e742 BulletS/BulletS.cpp
--- a/BulletS/BulletS.cpp Wed Apr 01 11:23:25 2020 +0000
+++ b/BulletS/BulletS.cpp Wed Apr 01 14:40:29 2020 +0000
@@ -19,7 +19,7 @@
}
}
-void BulletS::update(Gamepad &pad, int shipx, int shipy) {
+void BulletS::update(Gamepad &pad, N5110 &lcd, int shipx, int shipy) {
X = shipx;
Y = shipy;
if(pad.A_pressed()==true) {
@@ -28,7 +28,7 @@
new_bullet.init(X,Y);
bullet_vector.push_back(new_bullet);
}
- for (unsigned int i =0; i < bullet_vector.size(); i++) {
- bullet_vector[i].update(pad);
+ for (int i =0; i < bullet_vector.size(); i++) {
+ bullet_vector[i].update(pad,lcd);
}
}
\ No newline at end of file