-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGame_Screen_Credits.c
102 lines (89 loc) · 1.62 KB
/
Game_Screen_Credits.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
/*#include "Xinaga.h"
#include "GameData.h"
#if defined(__APPLE2__)
#pragma code-name (push, "LOWCODE")
#endif
#if defined(__C64__)
byte yscroll;
//byte sinevalue[32] = {12,14,17,19,20,22,23,24, 24,24,23,22,20,19,17,14, 12,10,7,5,4,2,1,0, 0,0,1,2,4,5,7,10};
byte xcredit;
byte delay;
byte xoff;
bool skipline;
#define linecount 14
char CreditsLines[][20] =
{
"Credits@",
"(c) 2022@",
"All rights reserved@",
"Lead Designer@",
"and Programmer:@",
"Somebody@",
"Makes use of the@",
"following@",
"libraries@",
"C/ASM SID Player:@",
"https://github.com/@",
"solidcore-commodore@",
"Special Thanks@",
"YOU!@"
};
void ScrollUp()
{
if (xcredit == linecount)
{
++delay;
}
{
//#if defined (__C64__)
Scroll(up);
//#endif
if (xcredit < linecount)
{
if (xoff %4 != 0)
{
PrintString(CreditsLines[xcredit], xcredit % 3, ROWS - 1, true, false);
++xcredit;
}
else
PrintString("@", xcredit % 3, 0, ROWS - 1, false);
}
++xoff;
}
}
screenName Update_Credits()
{
//byte temp = VIC.ctrl1;
screenName nextScreen = Title;
bool exit = false;
yscroll = 0;
xcredit = 0;
delay = 0;
xoff = 0;
skipline = false;
ClearScreen();
//PlaySID();
while (!exit)
{
#if defined (__C64__)
UpdateInput();
#endif
ScrollUp();
if ((InputChanged() && InputFire()) || (delay > 35))
exit = true;
}
//StopSID();
//VIC.ctrl1 = temp;
return nextScreen;
}
#endif
#if defined(__APPLE2__)
screenName Update_Credits()
{
return Title;
}
#endif
*/
#if defined(__APPLE2__)
#pragma code-name (pop)
#endif