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.
Diff: Explosion/Explosion.cpp
- Revision:
- 85:87bc28b151d8
- Parent:
- 82:3211b31e9421
diff -r f61c85a5f13a -r 87bc28b151d8 Explosion/Explosion.cpp
--- a/Explosion/Explosion.cpp Tue May 26 14:39:45 2020 +0000
+++ b/Explosion/Explosion.cpp Tue May 26 19:38:48 2020 +0000
@@ -1,6 +1,6 @@
#include "Explosion.h"
-// Defining animation states for explotion FSM
+// Defining animation states for explosion FSM
Animation animation_fsm[2] = {
{false, true, FILL_WHITE, FILL_BLACK},
{true, false, FILL_TRANSPARENT, FILL_WHITE},
@@ -24,19 +24,19 @@
}
void Explosion::draw_explosion(N5110 &lcd) {
- // Draws each explotion frame depending on state
+ // Draws each explosion frame depending on state
// Draw circle one
- if(animation_fsm[fsm_counter_].draw_circle_one) {
+ if (animation_fsm[fsm_counter_].draw_circle_one) {
lcd.drawCircle(position_x_, position_y_,explosion_radius_ + 1,
animation_fsm[fsm_counter_].circle_one);
}
// Draw circle two
- if(animation_fsm[fsm_counter_].draw_circle_two) {
+ if (animation_fsm[fsm_counter_].draw_circle_two) {
lcd.drawCircle(position_x_, position_y_,(explosion_radius_ - 2),
animation_fsm[fsm_counter_].circle_two);
}
- // Slows down annimation change time, so eplosion animation is longer
+ // Slows down animation change time, so explosion animation is longer
if (draw_counter%2 == 0) {
explosion_radius_++;
fsm_counter_ = !fsm_counter_;
@@ -46,4 +46,4 @@
int Explosion::get_explosion_radius() {
return explosion_radius_;
-}
\ No newline at end of file
+}