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 MotionSensor
Diff: Entity/Player/Player.cpp
- Revision:
- 32:fe6359ef9916
- Parent:
- 30:ec915d24d3e9
- Child:
- 33:4f3948dcd2f7
--- a/Entity/Player/Player.cpp Sun May 05 18:37:23 2019 +0000
+++ b/Entity/Player/Player.cpp Mon May 06 08:56:48 2019 +0000
@@ -154,11 +154,7 @@
{
for (int i = 0; i < bullets_max; i++) {
if (valid_bullets[i]) {
- lcd.drawSpriteTransparent(bullets_array[i]->get_pos_x()-bullets_array[i]->get_offset_x(),
- bullets_array[i]->get_pos_y()-bullets_array[i]->get_offset_y(),
- bullets_array[i]->get_sprite_height(),
- bullets_array[i]->get_sprite_width(),
- bullets_array[i]->get_frame());
+ bullets_array[i]->draw(lcd);
}
}
}