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: Player/Player.cpp
- Revision:
- 4:cf5088ace087
- Parent:
- 3:e4e1cbf750b6
- Child:
- 5:928c2eee4109
--- a/Player/Player.cpp Mon May 18 16:06:27 2020 +0000
+++ b/Player/Player.cpp Mon May 18 18:46:13 2020 +0000
@@ -39,6 +39,7 @@
void Player::draw(N5110 &lcd)
{
+ draw_map1(lcd);
if(_dir == E) {
Bitmap bit_player(s_player, 8, 9);
bit_player.render(lcd, _playerX, _playerY);
@@ -65,8 +66,8 @@
_playerX = _playerX - _vx;
_dir = W;
}
- if (_playerX > WIDTH - 8) {
- _playerX = WIDTH - 8;
+ if (_playerX > WIDTH - 9) {
+ _playerX = WIDTH - 9;
}
if(_playerX < 0) {
_playerX = 0;