Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
where's the code?
#include using namespace std;bool gameOver;const int width = 25;const int height = 25;int x , y, fruitX, fruitY, score;int tailX[100], tailY[100];int nTail;enum eDirection {STOP = 0, LEFT,RIGHT,UP,DOWN};eDirection dir;void Setup (){ gameOver = false; dir = STOP; x = width / 2; y = height / 2; fruitX = rand() % width; fruitY = rand() % height; score = 0;}void Draw (){ system("cls"); for(int i = 0; i < width+2; i++) cout
@@dudefrombelgium alright, ty.
@@hishamsomroz6913 its a long time ago but perhaps it may be usefull :)
bro sometimes sharing source code is good... plz..
Code dedo
where's the code?
#include
using namespace std;
bool gameOver;
const int width = 25;
const int height = 25;
int x , y, fruitX, fruitY, score;
int tailX[100], tailY[100];
int nTail;
enum eDirection {STOP = 0, LEFT,RIGHT,UP,DOWN};
eDirection dir;
void Setup ()
{
gameOver = false;
dir = STOP;
x = width / 2;
y = height / 2;
fruitX = rand() % width;
fruitY = rand() % height;
score = 0;
}
void Draw ()
{
system("cls");
for(int i = 0; i < width+2; i++)
cout
@@dudefrombelgium alright, ty.
@@hishamsomroz6913 its a long time ago but perhaps it may be usefull :)
bro sometimes sharing source code is good... plz..
Code dedo