/
main.ssz
96 lines (72 loc) · 1.61 KB
/
main.ssz
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
lib file = <file.ssz>;
lib sh = <shell.ssz>;
lib s = <string.ssz>;
const ^/char conffile = "ssz/config.ssz";
const ^/char selfile = "script/select.lua";
if(#file.find(conffile) == 0){
&file.File f;
f.open(conffile, "wb");
f.writeAry!ubyte?()<, s.sToU8(
\xfeff"
const int HelperMax = 56;
const int PlayerProjectileMax = 50;
const int ExplodMax = 256;
const int AfterImageMax = 8;
const float Attack_LifeToPowerMul = 0.7;
const float GetHit_LifeToPowerMul = 0.6;
const int Width = 640;
const int Height = 480;
const float Super_TargetDefenceMul = 1.5;
const int GameSpeed = 60;//frames/second
const float LifebarFontScale = 0.5;
const ^/char system = "\""script/main.lua"\"";
lib sdl = <alpha/sdlplugin.ssz>;
type k_t = |sdl.SDLKey;
/%&Keys in;
in.new[0].set(
-1, (int)k_t::UP, (int)k_t::DOWN, (int)k_t::LEFT, (int)k_t::RIGHT,
(int)k_t::z, (int)k_t::x, (int)k_t::c, (int)k_t::a, (int)k_t::s, (int)k_t::d,
(int)k_t::RETURN);
const bool SaveMemory = true;
const bool IgnoreMostErrors = true;
const bool OpenGL = true;
public &Keys
{
public int jn = -2, u, d, l, r, a, b, c, x, y, z, s;
public void set(
int jn, int u, int d, int l, int r,
int a, int b, int c, int x, int y, int z, int s)
{
`jn = jn;
`u = u;
`d = d;
`l = l;
`r = r;
`a = a;
`b = b;
`c = c;
`x = x;
`y = y;
`z = z;
`s = s;
}
}
"
);
}
if(#file.find(selfile) == 0){
&file.File f;
f.open(selfile, "wb");
f.writeAry!ubyte?()<, s.sToU8(
\xfeff"
addChar([[
randomselect
kfmx
]])
addStage([[
SpaceRainbowLowRes.def
]])
"
);
}
sh.open("ikemen.exe", "ssz/ikemen.ssz", "", false, true);