-
Notifications
You must be signed in to change notification settings - Fork 0
/
other.c
96 lines (82 loc) · 2.55 KB
/
other.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
86
87
88
89
90
91
92
93
94
95
// Verlies - ein Adventure im Retrodesign
//
// Copyright (C) 2018-2022 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: projekte@kabelmail.net
//#pragma bank=3
#include "other.h"
#include "engine.h"
#include "text.h"
#include "daten/other/gameover.h"
#include "daten/other/kredits.h"
#include "daten/other/titel.h"
#include "daten/other/anleitung.h"
#include "daten/tilesets/tilesets.h"
#include "daten/spritesets/v_spriteset_1.h"
#include "daten/txt/other/intro.h"
const UINT8 v_timerdat [35] =
{
50, 240, 49, 120, 106, 196, 246, 89, 24, 32, 130, 104, 22, 198, 165, 54, 109, 5, 13, 185,
97, 9, 48, 91, 64, 20, 30, 174, 164, 10, 66, 145, 3, 201, 83
};
void p_gameover (void) __banked
{
HIDE_SPRITES;
HIDE_WIN;
set_bkg_tiles (0, 0, 20, 18, gameover);
delay (120);
waitpad (J_START);
p_engine_loadTileset (BANK_2, 8, 34, felsengrund_1, BANK_3);
p_engine_loadSpriteset (BANK_2, 0, 127, v_spriteset_1, BANK_3);
v_gameover = TRUE; v_slp = v_smlp;
v_lvl = 1; v_info = FALSE; v_bosskampf = FALSE; v_kampf = FALSE;
if (v_spr == 0) ++v_spr;
DISPLAY_ON;
}
///wartet auf Steuerung unten
void p_engine_down (void) __banked
{
delay (200);
waitpad (J_DOWN);
}
void p_engine_A (void) __banked
{
delay (200);
waitpad (J_A);
}
///Startintro
void p_intro (void) __banked
{
set_bkg_tiles (0, 0, 20, 18, kredits);
delay (3000);
set_bkg_tiles (0, 0, 20, 18, titel);
delay (4000);
set_bkg_tiles (0, 0, 20, 18, anleitung);
p_engine_A ();
p_engine_set_txt (intro);
p_engine_A ();
p_engine_after_txt ();
}
///"zufällige" Zahl ermitteln
UINT8 p_zahl (void) __banked
{
for (v_a = 0; v_a <= 36; ++v_a)
{
if (v_timer == v_timerdat [v_a]) return 1;
}
return 0;
}