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:
- 8:86cb9a9f8a73
- Parent:
- 7:06a2558155f0
- Child:
- 11:c174d84e4866
--- a/BulletS/BulletS.cpp Tue Mar 24 16:44:48 2020 +0000
+++ b/BulletS/BulletS.cpp Thu Mar 26 15:24:49 2020 +0000
@@ -1,32 +1,32 @@
-#include "BulletS.h"
+// #include "BulletS.h"
-Bullet::Bullet()
-{
-}
+// Bullet::Bullet()
+// {
+// }
-void Bullet::init(int size, int x) {
- Size = size;
- Speed = 0;
- X = x; //x=Middle of the ship
- Y = HEIGHT; //y=Top of the ship Height is ship Height
-}
+// void Bullet::init(int size, int x) {
+// Size = size;
+// Speed = 0;
+// X = x; //x=Middle of the ship
+// Y = HEIGHT; //y=Top of the ship Height is ship Height
+// }
-void Bullet::draw(N5110 &lcd)
-{
- lcd.drawRect(X,Y,Size,Size,FILL_BLACK);
-}
-
-void Bullet::update() {
- if(pad.A_pressed()) {
- Speed = 1; //shoots bullet if pad a pressed
- Y -= Speed;
- }
-}
+// void Bullet::draw(N5110 &lcd)
+// {
+// lcd.drawRect(X,Y,Size,Size,FILL_BLACK);
+// }
+//
+// void Bullet::update() {
+// if(pad.A_pressed()) {
+// Speed = 1; //shoots bullet if pad a pressed
+// Y -= Speed;
+// }
+// }
-Vector2D Bullet::get_position() {
- Vector2D p = {X,Y};
- return p;
-}
+// Vector2D Bullet::get_position() {
+// Vector2D p = {X,Y};
+// return p;
+// }
//void Bullet::set_hit(bool hit) {
// bool Hit == hit;