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/Mobs/Snake/Snake.cpp
- Revision:
- 35:06cd6be999ad
- Parent:
- 34:1d5b4da3935e
- Child:
- 36:92d131695e7c
diff -r 1d5b4da3935e -r 06cd6be999ad Entity/Mobs/Snake/Snake.cpp
--- a/Entity/Mobs/Snake/Snake.cpp Mon May 06 13:58:39 2019 +0000
+++ b/Entity/Mobs/Snake/Snake.cpp Mon May 06 20:05:14 2019 +0000
@@ -124,9 +124,10 @@
void Snake::draw(N5110 &lcd)
{
- lcd.drawSpriteTransparent(position.x+sprite_size.offset_x,
- position.y+sprite_size.offset_y,
- sprite_size.height,
- sprite_size.width,
- get_frame());
+// lcd.drawSpriteTransparent(position.x+sprite_size.offset_x,
+// position.y+sprite_size.offset_y,
+// sprite_size.height,
+// sprite_size.width,
+// get_frame());
+ lcd.drawRect(position.x, position.y, hitbox.width, hitbox.height, FILL_BLACK);
}
\ No newline at end of file