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

16 lines
254 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 true;
return false;
}
int Food::getX(){
return x;
}
int Food::getY(){
return y;
}
Food::~Food(){}