test
This commit is contained in:
parent
37776af5db
commit
ab03d5f10c
4045 changed files with 286212 additions and 3 deletions
16
.config/Code/User/History/-89d9d7e/vC7M.cpp
Normal file
16
.config/Code/User/History/-89d9d7e/vC7M.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
#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(){}
|
Loading…
Add table
Add a link
Reference in a new issue