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: Frog/Frog.cpp
- Revision:
- 40:8cc82e3fce06
- Parent:
- 39:8b09540724b3
- Child:
- 43:2cd1cfe07770
--- a/Frog/Frog.cpp Mon May 18 02:05:36 2020 +0000
+++ b/Frog/Frog.cpp Mon May 18 02:36:44 2020 +0000
@@ -1,6 +1,6 @@
#include "Frog.h"
-//every frog object will accept x, y, and width size of grid
+//every chicken object will accept x, y, and width (square)
Frog::Frog(int x, int y, int width){
this->x = x;
this->y = y;
@@ -13,11 +13,11 @@
}
// reset back to start position
-Frog::reset()
+void Frog::reset()
{
- x = (84/2)-6/2;
+ x = (84/2)-4/2;
y = 48-4;
- width = 6;
+ width = 4;
left_side = x;
right_side = width + x;
@@ -25,3 +25,4 @@
down = width + y;
}
+