snakeplusplus/src/snake.hpp

27 lines
380 B
C++
Raw Normal View History

// Snake.h
#ifndef SNAKE_HPP
#define SNAKE_HPP
#include <SFML/System/Vector2.hpp>
#include <queue>
struct Snake
{
public:
sf::Vector2f headLocation;
sf::Vector2f speed;
std::queue<char*> body;
void Pop(void);
void Reset(void);
};
struct Food
{
public:
sf::Vector2f location;
char* food;
void GenerateNewFood(sf::Vector2f boundaries);
};
#endif