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
Entity/Bullets/Bullets.cpp@11:63e54f6e7939, 2019-04-23 (annotated)
- Committer:
- el17sm
- Date:
- Tue Apr 23 03:10:09 2019 +0000
- Revision:
- 11:63e54f6e7939
- Parent:
- 10:1a3499f6b583
- Child:
- 13:d04a6caba40d
Added move checks (for entity to group of entity collision checks);; Added a plausible way to update each entity;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| el17sm | 10:1a3499f6b583 | 1 | //#include "Bullets.h" |
| el17sm | 10:1a3499f6b583 | 2 | // |
| el17sm | 10:1a3499f6b583 | 3 | //Bullets::Bullets(float pos_x, float pos_y){ |
| el17sm | 10:1a3499f6b583 | 4 | // moving = false; |
| el17sm | 10:1a3499f6b583 | 5 | // face = 0; |
| el17sm | 10:1a3499f6b583 | 6 | // hp = 0; |
| el17sm | 10:1a3499f6b583 | 7 | // hitbox.width = 2; |
| el17sm | 10:1a3499f6b583 | 8 | // hitbox.height = 2; |
| el17sm | 10:1a3499f6b583 | 9 | // position.x = pos_x; |
| el17sm | 10:1a3499f6b583 | 10 | // position.y = pos_y; |
| el17sm | 11:63e54f6e7939 | 11 | // sprite_size.width = 4; |
| el17sm | 11:63e54f6e7939 | 12 | // sprite_size.height = 2; |
| el17sm | 11:63e54f6e7939 | 13 | // sprite_size.offset_x = 2; |
| el17sm | 11:63e54f6e7939 | 14 | // sprite_size.offset_y = 0; |
| el17sm | 10:1a3499f6b583 | 15 | //} |