![](/media/cache/profiles/LinkedIn_0NghoZJ.jpeg.50x50_q85.jpg)
Snake vs Block Game to be run upon K64F.
GameEngine/LengthManager/LengthManager.cpp
- Committer:
- AhmedPlaymaker
- Date:
- 2019-05-05
- Revision:
- 79:35cb65c52d25
- Child:
- 83:329da564799a
File content as of revision 79:35cb65c52d25:
#include "LengthManager.h" LengthManager::LengthManager() { } LengthManager::~LengthManager() { } void LengthManager::init() { _length = 4; } void LengthManager::MinusLength() { _length -= 1; } void LengthManager::PlusLength() { _length += 1; } void LengthManager::print_length_on_screen(N5110 &lcd) { char bufferscore[14]; sprintf(bufferscore,"%d",_length); lcd.printString(bufferscore,1,0); } int LengthManager::_getLength() { return _length; } void LengthManager::_setLength(int length) { _length = length; }