dotfiles/.config/Code/User/History/-89d9d7e/mREs.cpp

9 lines
185 B
C++
Raw Normal View History

2024-06-16 18:53:25 +05:00
#include "Food.h"
Food::Food(int x, int y, float *color) : x(x), y(y), color(color){}
bool Food::fall(){
if(y > 0) y -= 5;
else return false;
return true;
}
Food::~Food(){}