Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 37 lines (28 sloc) 0.784 kB
dce45bf @guitcastro
authored
1 /*
2 * File: Ghost.cpp
3 * Author: guilherme
4 *
5 * Created on 28 de Novembro de 2011, 23:46
6 */
7
8 #include "Ghost.h"
9 #define TRANSPARENTE makecol (255 ,0 ,255)
10
11 Ghost::Ghost() {
12 }
13
14 Ghost::Ghost(const Ghost& orig) {
15 }
16
17 Ghost::~Ghost() {
18 }
19
20 void Ghost::setEyesBitmap() {
21 this->Bit_ghost = load_bitmap("Imagens/eyes.bmp", NULL);
22 }
23
24 void Ghost::setWhiteBitmap() {
25 BITMAP * fanstasmas = load_bitmap("Imagens/Fantasmas.bmp", NULL);
26 this->Bit_ghost = create_bitmap(24, 23);
27 blit(fanstasmas, Bit_ghost, 48, 23, 0, 0, 24, 23);
28 }
29
30 void Ghost::setBitmap(int x, int y) {
31 BITMAP * fanstasmas = load_bitmap("Imagens/Fantasmas.bmp", NULL);
32 Bit_ghost = create_bitmap(26, 26);
33 clear_to_color(Bit_ghost, TRANSPARENTE);
34 blit(fanstasmas, Bit_ghost, x, y, 1, 1, 24, 23);
35 }
36
Something went wrong with that request. Please try again.