forked from vvendigo/FleshChasmer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gameproc.c
40 lines (33 loc) · 809 Bytes
/
gameproc.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
#include "controlpad.h"
#include "camera.h"
#include <stdlib.h>
#include "sound.h"
#include "editor.h"
#include "game.h"
static const Sint8 dirpad[8][2]=
{{0,-1},{1,-1},{1,0},{1,1},{0,1},{-1,1},{-1,0},{-1,-1}};
void proccontrol(void)
{
ControlPadUpdate();
}
void MiscProc(void)
{
counttextureanimation=count/3%4;
if (cscreenborder!=screenborder)
{
if (cscreenborder>screenborder) cscreenborder-=2;else cscreenborder+=2;
screen_y0=cscreenborder;
screen0_y0=screen_y0/2;
screen_y1=239-cscreenborder;
screen0_y1=screen_y1/2+1;
}
}
void Gameprocess(void)
{
MiscProc();
proccontrol();
ProcSound();
if (EditorOn) ProcEditor();
if (GameMode==GAME) gamestep();
camproc();
}