17 lines
No EOL
328 B
C++
17 lines
No EOL
328 B
C++
#include "Food.h"
|
|
#include "util.h"
|
|
|
|
class GreenFood : public Food{
|
|
|
|
int height;
|
|
int width;
|
|
|
|
public:
|
|
|
|
GreenFood(int x, int y, int width, int height, float *color) : width(width), height(height), Food(x, y, color){}
|
|
|
|
void draw(){
|
|
DrawTriangle(x, y, x-width, y+height, x+width, y+height, color);
|
|
}
|
|
|
|
}; |