-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.h
More file actions
34 lines (26 loc) · 741 Bytes
/
test.h
File metadata and controls
34 lines (26 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef TEST_H
#define TEST_H
//The headers
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include "SDL/SDL_ttf.h"
#include <string>
#include <iostream>
#include "test.h"
#include "timer.h"
//#include "character.h"
//#include "object.h"
//The screen attributes
const int SCREEN_WIDTH = 640;
const int SCREEN_HEIGHT = 480;
const int SCREEN_BPP = 32;
//The frame rate
const int FRAMES_PER_SECOND = 20;
// All functions
bool collision_detection(int x1, int y1, int w1, int h1,
int x2, int y2, int w2, int h2);
SDL_Surface* load_image(std::string filename );
void apply_surface( int x, int y, SDL_Surface* source, SDL_Surface* destination,
SDL_Rect* clip );
bool init();
#endif // TEST_H