50 lines
928 B
C++
50 lines
928 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <string>
|
|
|
|
#define NUM_VERSIO '0257'
|
|
// Orientacions
|
|
#define oXB 0 // Baix-Esquerra
|
|
#define oYB 1 // Baix-Dreta
|
|
#define oXA 2 // Dalt-Dreta
|
|
#define oYA 3 // Dalt-Esquerra
|
|
|
|
#define START_X 5
|
|
#define START_Y 5
|
|
#define START_Z 1
|
|
/*
|
|
#define NOM_MAPA 'Hall01.map'
|
|
#define START_ROOM 8
|
|
#define START_X 8
|
|
#define START_Y 5
|
|
#define START_Z 1
|
|
*/
|
|
|
|
// Tecles
|
|
#define TECLA_AMUNT 0x01
|
|
#define TECLA_AVALL 0x02
|
|
#define TECLA_ESQUERRA 0x04
|
|
#define TECLA_DRETA 0x08
|
|
#define TECLA_SALT 0x10
|
|
|
|
#define TECLA_WALK 0x0F
|
|
|
|
//PSpriteInfo = ^TSpriteInfo;
|
|
struct TSpriteInfo {
|
|
uint8_t TileX, TileY, TileZ;
|
|
uint8_t TPixX, TPixY, TPixZ;
|
|
int X,Y;
|
|
int Frame;
|
|
int tipus;
|
|
};
|
|
|
|
|
|
|
|
extern bool EXIT_SIGNAL;
|
|
extern std::string PATH;
|
|
extern std::string NOM_MAPA;
|
|
extern int START_ROOM;
|
|
extern int FRAMES_ACTORS[22];
|
|
extern TSpriteInfo LAST_POS;
|