Adding more buggy code
[hammerdown.git] / SDLTest / main.h
blob6edf6b6ee5d8f2fd095c5d5d47798e8ddd6fb6a7
2 #ifndef MAINH
3 #define MAINH
5 #include <stdio.h>
6 #include <stdlib.h>
7 #include "SDL/SDL.h"
9 #include "mapa.h"
11 //Dimensiones de los tiles
12 #define TILE_ANCHO 64
13 #define TILE_ALTO 32
17 //Buffer de la Pantalla
18 SDL_Surface *pantalla = NULL;
20 //Superficie con los tiles
21 SDL_Surface *tiles = NULL;
23 //Superficie con el cursor
24 SDL_Surface *flecha = NULL;
26 //Posicion original de la camara
27 int scrollX = -350;
28 int scrollY = -80;
30 //Posicion original del cursor
31 int cursorX = 50;
32 int cursorY = 50;
34 //Numero de tiles en la superficie
35 int nTilesX, nTilesY;
39 int main (int argc, char *argv[]);
40 bool iniciar ();
41 void limpiar ();
42 void dibujar ();
43 void dibujarMapa ();
44 void dibujarCursor (int x, int y);
45 void blitTile (SDL_Surface *dest, int x, int y, int nTile);
47 #endif