-
Notifications
You must be signed in to change notification settings - Fork 0
/
engine.c
executable file
·42 lines (38 loc) · 1.36 KB
/
engine.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
// Graeber
//
// Copyright (C) 2018-2021 Heiko Wolf
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License As published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY Or FITNESS For A PARTICULAR PURPOSE. See the
// GNU General Public License For more details.
//
// You should have received a copy of the GNU General Public License along
// With this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
//
// Kontakt: [email protected]
#include "engine.h"
#include "gegner.h"
void p_engine_drawMap (unsigned char lvldat [240]) __nonbanked
{
for (v_i = 0; v_i != 241; ++v_i) {
v_lvldat [v_i] = lvldat [v_i];
}
set_bkg_tiles (0, 0, 20, 12, v_lvldat);
}
void p_engine_changeLvl (UINT8 lvl, unsigned char lvldat [240]) __nonbanked
{
DISPLAY_OFF;
p_gegner_stop ();
delay (150);
v_aktion = TRUE;
v_lvl = lvl;
p_engine_drawMap (lvldat);
DISPLAY_ON;
}