esprit-2013-1a2-high-octane: collision.h Source File

esprit-2013-1a2-high-octane version one finale

- Main Page
- Classes
- Files

- File List
- File Members

All Classes Files Functions Variables
collision.h
1 #ifndef COLLISION_H_INCLUDED
2 #define COLLISION_H_INCLUDED
3 #include <stdio.h>
4 #include <stdlib.h>
5 #include <allegro.h>
6 #include "background.h"
7 #include "chien.h"
8 #include "collision.h"
9 #include "perso.h"
10 #include "jennyfer.h"
11 #define GFX_W 642
12 #define GFX_H 450
13
18 typedef struct {
19 int x;
20 int y;
21 int w;
22 int h;
23 }Sprite;
24
25 //collision
26 int get_pixel(BITMAP* Buffer,int x,int y);
27 int collision_background_left(Sprite sprite1,BITMAP* Backgroundcol);
28 int collision_background_right(Sprite sprite1,BITMAP* Backgroundcol);
29 int collision_background_up(Sprite sprite1,BITMAP* Backgroundcol);
30 int collision_background_down(Sprite sprite1,BITMAP* Backgroundcol);
31 void game_over_rat(BITMAP *Buffer, rat *rat , jennyfer *jenn, BITMAP *OVER,BITMAP *BLOOD, int *k);
32 int bounding_box_collision(Sprite Sprite1, Sprite Sprite2);
33 void game_over (BITMAP *Buffer, chien *chien , jennyfer *jenn, BITMAP *OVER,BITMAP *BLOOD, int *K);
34
35
36 #endif // COLLISION_H_INCLUDED