Files
snakePlus/include/consts.h
T
phillip 0e7477031f Add cursed apple: a status-effect apple that inverts controls
Eating a cursed apple inverts the snake's steering for
CURSE_DURATION_TICKS ticks, shown on the top screen while active. The
sprite is a recolored copy of the rotten-apple tile since all existing
sprite tiles are already in use.
2026-09-03 22:27:22 +02:00

58 lines
1.2 KiB
C

#ifndef CONSTS_H
#define CONSTS_H
#endif
const int START_LENGTH = 4;
const int START_LENGTH_HARD =2;
const int APPLE_SCORE = 10;
const int CURSE_DURATION_TICKS = 40;
//Screen size
const int X_MAX = 31;
const int Y_MAX = 23;
//*barf* Dont try this at home...
const char BITMAP_APPLE[] = {
0,0,0,2,2,0,0,0,
0,2,2,2,2,2,2,0,
0,2,2,2,2,2,2,0,
2,2,2,2,2,2,2,2,
2,2,2,2,2,1,2,2,
0,2,2,2,2,1,2,0,
0,2,2,2,2,2,2,0,
0,0,0,2,2,0,0,0
};
const char BITMAP_HEAD_RIGHT[] = {
0,3,3,3,3,3,3,0,
3,4,4,4,4,4,4,3,
3,4,7,4,7,4,4,3,
3,4,4,4,4,7,4,3,
3,4,4,4,4,7,4,3,
3,4,7,4,7,4,4,3,
3,4,4,4,4,4,4,3,
0,3,3,3,3,3,3,0
};
const char BITMAP_HEAD_UP[] = {
0,3,3,3,3,3,3,0,
3,4,4,4,4,4,4,3,
3,4,4,7,7,4,4,3,
3,4,7,4,4,7,4,3,
3,4,4,4,4,4,4,3,
3,4,7,4,4,7,4,3,
3,4,4,4,4,4,4,3,
0,3,3,3,3,3,3,0
};
const char BITMAP_SEGMENT[] = {
0,5,5,5,5,5,5,0,
5,6,6,6,6,6,6,5,
5,6,6,6,6,6,6,5,
5,6,6,6,6,6,6,5,
5,6,6,6,6,6,6,5,
5,6,6,6,6,6,6,5,
5,6,6,6,6,6,6,5,
0,5,5,5,5,5,5,0
};