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
Body.h
00001 #ifndef BODY_H 00002 #define BODY_H 00003 00004 #include "mbed.h" 00005 #include "Gamepad.h" 00006 #include "N5110.h" 00007 #include "Head.h" 00008 00009 class Body 00010 00011 { 00012 00013 public: 00014 00015 Body(); 00016 ~Body(); 00017 00018 void draw(N5110 &lcd, int width); 00019 void update(Vector2D hP, int width); 00020 Vector2D get_pos(); 00021 00022 private: 00023 int bodyx[100]; 00024 int bodyy[100]; 00025 int _x, _y, _prevx, _prevy, _prev2x, _prev2y, _nbody; 00026 }; 00027 #endif
Generated on Mon Jul 18 2022 08:02:22 by
1.7.2