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/Bullets/Bullets.cpp
- Revision:
- 38:09832e662803
- Parent:
- 37:a404860171a9
--- a/Entity/Player/Bullets/Bullets.cpp Tue May 07 03:47:39 2019 +0000
+++ b/Entity/Player/Bullets/Bullets.cpp Tue May 07 09:09:38 2019 +0000
@@ -2,8 +2,7 @@
Bullets::Bullets(float pos_x, float pos_y, int dir)
{
- moving = true;
- face = 0;
+ _type = 1;
hp = 1;
hitbox.width = 3;
hitbox.height = 3;
@@ -11,7 +10,7 @@
position.y = pos_y;
sprite_size.width = 3;
sprite_size.height = 3;
- sprite_size.offset_x = 0;
+ sprite_size.offset_x = -1;
sprite_size.offset_y = -1;
direction = dir;
}