Title:
Gluttonous-Snake-by-CPP-and-Opencv Download
Description: With Opencv and C++ to achieve a snake game
Design ideas:
1 shows the initial screen, box head initial position as the center, food box random position
2 according to the random direction snakeheads, according to a, s, D, w keys to control the direction of movement, respectively, to the left, down, right, up
3. Snake head position and food box positions coincide, the food box to join the snake vector arraryBox, and set the food box for the first element
4 snake movement is box, a box position after each move into position before a box
5 head moving beyond the boundary, the end of the game
To Search:
File list (Check if you may need any files):
Gluttonous Snake.cpp
Please Read me Fisrt!.txt