Project

General

Profile

Revision 303

added zombie xpm

View differences:

proj/media/xpm/zombie.h
1
#ifndef ZOMBIE_H_INCLUDED
2
#define ZOMBIE_H_INCLUDED
3

  
4
#include "zombie.xpm"
5
#include "graph.h"
6

  
7
basic_sprite_t* get_zombie(void){
8
    return basic_sprite_ctor((const char **)zombie_xpm, 34, 34);
9
}
10

  
11
#endif //ZOMBIE_H_INCLUDED
0 12

  
proj/src/proj.c
24 24

  
25 25
#include "crosshair.h"
26 26
#include "shooter.h"
27
#include "zombie.h"
27 28
#include "pistol.h"
28 29
#include "nothing.h"
29 30
#include "bullet.h"
......
87 88

  
88 89
        bsp_crosshair = get_crosshair(); if(bsp_crosshair == NULL) printf("Failed to get crosshair\n");
89 90
        bsp_shooter   = get_shooter  (); if(bsp_shooter   == NULL) printf("Failed to get shooter\n");
90
        bsp_zombie    = bsp_shooter;     if(bsp_zombie    == NULL) printf("Failed to get zombie\n");
91
        bsp_zombie    = get_zombie   (); if(bsp_zombie    == NULL) printf("Failed to get zombie\n");
91 92
        bsp_pistol    = get_pistol   (); if(bsp_pistol    == NULL) printf("Failed to get pistol\n");
92 93
        bsp_nothing   = get_nothing  (); if(bsp_nothing   == NULL) printf("Failed to get nothing\n");
93 94
        bsp_bullet    = get_bullet   (); if(bsp_bullet    == NULL) printf("Failed to get bullet\n");

Also available in: Unified diff