1 |
scrollspeed[0] = 0.1; |
2 |
scrollspeed[1] = 0.3; |
3 |
scrollspeed[2] = 0.5; |
4 |
scrollspeed[3] = 0.6; |
5 |
scrollspeed[4] = 0.7; |
6 |
scrollspeed[5] = 0.8; |
7 |
scrollspeed[6] = 0.9; |
8 |
for (i = 0; i < 7; i += 1) |
9 |
{ |
10 |
xxx = __view_get(e__VW.XView, 0); |
11 |
if (xxx > (room_width - 640)) |
12 |
xxx = room_width - 640; |
13 |
if (xxx >= 0) |
14 |
__background_set(e__BG.X, i, floor(xxx - (xxx * scrollspeed[i]))); |
15 |
gg = room_width - 640; |
16 |
if (xxx >= (room_width - 640)) |
17 |
__background_set(e__BG.X, i, 0 + floor(gg - (gg * scrollspeed[i]))); |
18 |
} |
19 |
|
20 |
enum e__VW |
21 |
{ |
22 |
XView, |
23 |
YView, |
24 |
WView, |
25 |
HView, |
26 |
Angle, |
27 |
HBorder, |
28 |
VBorder, |
29 |
HSpeed, |
30 |
VSpeed, |
31 |
Object, |
32 |
Visible, |
33 |
XPort, |
34 |
YPort, |
35 |
WPort, |
36 |
HPort, |
37 |
Camera, |
38 |
SurfaceID |
39 |
} |
40 |
|
41 |
enum e__BG |
42 |
{ |
43 |
Visible, |
44 |
Foreground, |
45 |
Index, |
46 |
X, |
47 |
Y, |
48 |
Width, |
49 |
Height, |
50 |
HTiled, |
51 |
VTiled, |
52 |
XScale, |
53 |
YScale, |
54 |
HSpeed, |
55 |
VSpeed, |
56 |
Blend, |
57 |
Alpha |
58 |
} |