-
Notifications
You must be signed in to change notification settings - Fork 11
/
BKGDESRT.C
85 lines (65 loc) · 1.79 KB
/
BKGDESRT.C
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/******************************************************************************
File: bkgdesrt.c
Date: August 1994
(C) Williams Entertainment
Mortal Kombat III Desert Routines
******************************************************************************/
/* INCLUDES */
#include "system.h"
#ifdef SONY_PSX
#include "mksony.h"
#endif /* SONY_PSX */
#include "mkbkgd.h"
#include "mkobj.h"
#include "mkos.h"
#include "mkgame.h"
#include "mkutil.h"
#include "mkfx.h"
#include "mkani.h"
#include "mkinit.h"
#include "mkpal.h"
#include "mksound.h"
#include "valloc.h"
/* Prototypes */
void make_cyrax_sand(void);
/************************************************************
* G R A V E S T U F F *
************************************************************/
/********************
Externals
********************/
extern void *desert_anims[];
extern void *a_cyrax[];
extern void *CYRXSAND1[];
extern void *CYRXSAND2[];
extern void *CYRXSAND3[];
extern void *CYRXSAND4[];
/********************
********************/
ADDRESS *desert_perm_list[]=
{
(ADDRESS *)CYRXSAND1,
(ADDRESS *)CYRXSAND2,
(ADDRESS *)CYRXSAND3,
(ADDRESS *)CYRXSAND4,
NULL
};
DTBL_INIT cyrax_table [] =
{
{7,CYRXSAND1,-SCX(0xb0)+24,SCY(0x008a)+24,a_cyrax,&baklst5},
{0}
};
/******************************************************************************
Function: void make_cyrax_sand(void)
By: David Schwartz
Date: Nov 1995
Parameters: None
Returns: None
Description: setup the desert background
******************************************************************************/
void make_cyrax_sand(void)
{
alloc_vram_perm_bg_list((ADDRESS *)desert_perm_list,&desert_anims);
create_dumb_animators_w(cyrax_table,&desert_anims);
return;
}