nSnake
A ncurses implementation of the classic Snake game
Data Fields
player_t Struct Reference

Represent the snake itself. More...

#include <player.h>

Collaboration diagram for player_t:
Collaboration graph
[legend]

Data Fields

int is_alive
 Indicates if the player is alive.
int speed
 How many chars will the player move by frame.
int size
 Current size of the snake's body.
int score
 The player's score :D.
int direction
 Which direction shoud the player go.
struct player_piecesbody
 All pieces of the snake (including the head)

Detailed Description

Represent the snake itself.

Todo:
Currently the snake have no physical limit. Must implement one. Maybe something like if the snake occupies the whole screen, a pop-up says 'congratulations' or the size resets but not the score...

The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Enumerations Defines