This repository has been archived by the owner on Oct 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
sizuku_ed.c
214 lines (174 loc) · 7.28 KB
/
sizuku_ed.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
/*
* LEAF Visual Novel System For X
* (c) Copyright 1999,2000 Go Watanabe mailto:[email protected]
* All rights reserverd.
*
* ORIGINAL LVNS (c) Copyright 1996-1999 LEAF/AQUAPLUS Inc.
*
* $Id: sizuku_ed.c,v 1.27 2001/08/02 20:05:30 go Exp $
*
*/
/*
* 雫 エンディング
*/
#include <stdio.h>
#include "sizuku.h"
extern u_char sizuku_haikei_palette[][4][3];
#define EDCOL 4
#define EDSHA 0
static int
tputs(Lvns *lvns, LvnsScript *scr, void *param1, void *param2)
{
char *str = param1;
int x = (WIDTH2 - strlen(str) * CHARSIZE/2)/2;
int y = (int)param2 * EDYOFF;
SizukuPutsVRAM(lvns, x+1, y+1, (u_char*)param1, EDSHA);
SizukuPutsVRAM(lvns, x+2, y+2, (u_char*)param1, EDSHA);
SizukuPutsVRAM(lvns, x , y , (u_char*)param1, EDCOL);
return True;
}
static int
DispMoji(Lvns *lvns, LvnsScript *scr,
void *param1, void *param2)
{
lvns->drawWindow(lvns);
lvns->flushWindow(lvns);
return True;
}
/* 雫 エンディングスクリプト */
static LvnsScriptData eddata[]= {
{ LVNS_SCRIPT_CLEAR, NULL, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_BG, (void*)2 },
{ LVNS_SCRIPT_DISP, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_WAIT, (void*)1000 },
{ LVNS_SCRIPT_FUNC, tputs, "プログラム", (void*)5 },
{ LVNS_SCRIPT_FUNC, tputs, "HAJIME NINOMAE", (void*)7 },
{ LVNS_SCRIPT_FUNC, DispMoji },
{ LVNS_SCRIPT_BG, (void*)44 },
{ LVNS_SCRIPT_WAIT, (void*)6000 },
{ LVNS_SCRIPT_CLEAR, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_DISP, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_WAIT, (void*)1000 },
{ LVNS_SCRIPT_FUNC, tputs, "キャラクター原案", (void*)5 },
{ LVNS_SCRIPT_FUNC, tputs, "高彦 龍哉", (void*)7 },
{ LVNS_SCRIPT_FUNC, DispMoji },
{ LVNS_SCRIPT_BG, (void*)11 },
{ LVNS_SCRIPT_WAIT, (void*)6000 },
{ LVNS_SCRIPT_CLEAR, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_DISP, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_WAIT, (void*)1000 },
{ LVNS_SCRIPT_FUNC, tputs, "原画", (void*)5 },
{ LVNS_SCRIPT_FUNC, tputs, "水無月 徹", (void*) 7 },
{ LVNS_SCRIPT_FUNC, DispMoji },
{ LVNS_SCRIPT_BG, (void*)12 },
{ LVNS_SCRIPT_WAIT, (void*)6000 },
{ LVNS_SCRIPT_CLEAR, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_DISP, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_WAIT, (void*)1000 },
{ LVNS_SCRIPT_FUNC, tputs, "脚本", (void*)5 },
{ LVNS_SCRIPT_FUNC, tputs, "高橋 龍也", (void*)7 },
{ LVNS_SCRIPT_FUNC, DispMoji },
{ LVNS_SCRIPT_WAIT, (void*)6000 },
{ LVNS_SCRIPT_BG, (void*)13 },
{ LVNS_SCRIPT_CLEAR, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_DISP, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_WAIT, (void*)1000 },
{ LVNS_SCRIPT_FUNC, tputs, "ビジュアルグラフィックス", (void*)4 },
{ LVNS_SCRIPT_FUNC, tputs, "鳥野 正信", (void*)6 },
{ LVNS_SCRIPT_FUNC, tputs, "HAMMER", (void*)7 },
{ LVNS_SCRIPT_FUNC, tputs, "親父油", (void*)8 },
{ LVNS_SCRIPT_FUNC, tputs, "生波夢", (void*)9 },
{ LVNS_SCRIPT_FUNC, tputs, "DOZA", (void*)10 },
{ LVNS_SCRIPT_FUNC, DispMoji },
{ LVNS_SCRIPT_BG, (void*)15 },
{ LVNS_SCRIPT_WAIT, (void*)6000 },
{ LVNS_SCRIPT_CLEAR, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_DISP, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_WAIT, (void*)1000 },
{ LVNS_SCRIPT_FUNC, tputs, "キャラクターグラフィックス", (void*)5 },
{ LVNS_SCRIPT_FUNC, tputs, "HAMMER", (void*)7 },
{ LVNS_SCRIPT_FUNC, tputs, "鳥野 正信", (void*)8 },
{ LVNS_SCRIPT_FUNC, DispMoji },
{ LVNS_SCRIPT_BG, (void*)20 },
{ LVNS_SCRIPT_WAIT, (void*)6000 },
{ LVNS_SCRIPT_CLEAR, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_DISP, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_WAIT, (void*)1000 },
{ LVNS_SCRIPT_FUNC, tputs, "背景グラフィックス", (void*)5 },
{ LVNS_SCRIPT_FUNC, tputs, "鳥野 正信", (void*)7 },
{ LVNS_SCRIPT_FUNC, tputs, "親父油", (void*)8 },
{ LVNS_SCRIPT_FUNC, tputs, "生波夢", (void*)9 },
{ LVNS_SCRIPT_FUNC, DispMoji },
{ LVNS_SCRIPT_BG, (void*)22 },
{ LVNS_SCRIPT_WAIT, (void*)6000 },
{ LVNS_SCRIPT_CLEAR, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_DISP, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_WAIT, (void*)1000 },
{ LVNS_SCRIPT_FUNC, tputs, "オリジナルフォント", (void*)5 },
{ LVNS_SCRIPT_FUNC, tputs, "HAMMER", (void*)7 },
{ LVNS_SCRIPT_FUNC, tputs, "爆裂煙々黒頭巾", (void*)8 },
{ LVNS_SCRIPT_FUNC, tputs, "水無月 徹", (void*)9 },
{ LVNS_SCRIPT_FUNC, DispMoji },
{ LVNS_SCRIPT_BG, (void*)24 },
{ LVNS_SCRIPT_WAIT, (void*)6000 },
{ LVNS_SCRIPT_CLEAR, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_DISP, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_WAIT, (void*)1000 },
{ LVNS_SCRIPT_FUNC, tputs, "シーン構成", (void*)5 },
{ LVNS_SCRIPT_FUNC, tputs, "ORIBASS", (void*)7 },
{ LVNS_SCRIPT_FUNC, tputs, "葉月 優一", (void*)8 },
{ LVNS_SCRIPT_FUNC, tputs, "水無月 徹", (void*)9 },
{ LVNS_SCRIPT_FUNC, tputs, "初号機", (void*)10 },
{ LVNS_SCRIPT_FUNC, DispMoji },
{ LVNS_SCRIPT_BG, (void*)26 },
{ LVNS_SCRIPT_WAIT, (void*)6000 },
{ LVNS_SCRIPT_CLEAR, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_DISP, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_WAIT, (void*)1000 },
{ LVNS_SCRIPT_FUNC, tputs, "音楽", (void*)5 },
{ LVNS_SCRIPT_FUNC, tputs, "折戸 伸治", (void*)7 },
{ LVNS_SCRIPT_FUNC, tputs, "下川 直哉", (void*)8 },
{ LVNS_SCRIPT_FUNC, tputs, "石川 真也", (void*)9 },
{ LVNS_SCRIPT_FUNC, DispMoji },
{ LVNS_SCRIPT_BG, (void*)27 },
{ LVNS_SCRIPT_WAIT, (void*)6000 },
{ LVNS_SCRIPT_CLEAR, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_DISP, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_WAIT, (void*)1000 },
{ LVNS_SCRIPT_FUNC, tputs, "TEST PLAY", (void*)5 },
{ LVNS_SCRIPT_FUNC, tputs, "ALL LEAF STAFF", (void*)7 },
{ LVNS_SCRIPT_FUNC, DispMoji },
{ LVNS_SCRIPT_BG, (void*)31 },
{ LVNS_SCRIPT_WAIT, (void*)6000 },
{ LVNS_SCRIPT_CLEAR, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_DISP, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_WAIT, (void*)1000 },
{ LVNS_SCRIPT_FUNC, tputs, "SPECIAL THANX", (void*)5 },
{ LVNS_SCRIPT_FUNC, tputs, "KEN KEN", (void*)7 },
{ LVNS_SCRIPT_FUNC, DispMoji },
{ LVNS_SCRIPT_BG, (void*)35 },
{ LVNS_SCRIPT_WAIT, (void*)6000 },
{ LVNS_SCRIPT_CLEAR, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_DISP, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_WAIT, (void*)1000 },
{ LVNS_SCRIPT_FUNC, tputs, "AND YOU", (void*)6 },
{ LVNS_SCRIPT_FUNC, DispMoji },
{ LVNS_SCRIPT_WAIT, (void*)6000 },
{ LVNS_SCRIPT_BG, (void*)5 },
{ LVNS_SCRIPT_CLEAR, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_DISP, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_WAIT, (void*)1000 },
{ LVNS_SCRIPT_FUNC, tputs, "企画・開発", (void*)5 },
{ LVNS_SCRIPT_FUNC, tputs, "1996 LEAF", (void*)7 },
{ LVNS_SCRIPT_FUNC, DispMoji },
{ LVNS_SCRIPT_WAIT, (void*)0 },
{ LVNS_SCRIPT_WAIT_CLICK },
{ LVNS_SCRIPT_CLICK_JUMP },
{ LVNS_SCRIPT_CLEAR, (void*)LVNS_EFFECT_FADE_PALETTE },
{ LVNS_SCRIPT_END }
};
void
SizukuEnding(Lvns *lvns)
{
LvnsScriptRun(lvns, eddata);
}