forked from fachinformatiker/undertale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobj_gameshake.object.gmx
135 lines (135 loc) · 4.39 KB
/
obj_gameshake.object.gmx
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
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName><undefined></spriteName>
<solid>0</solid>
<visible>-1</visible>
<depth>-10</depth>
<persistent>0</persistent>
<parentName><undefined></parentName>
<maskName><undefined></maskName>
<events>
<event eventtype="0" enumb="0">
<action>
<libid>1</libid>
<id>603</id>
<kind>7</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>gameshake= 100;
alarm[0]= 8;
if(global.osflavor == 1) window_set_fullscreen(0);
window_set_caption(" ");
if(global.osflavor == 1) {
window_center();
wx= window_get_x();
wy= window_get_y();
window_set_position(wx + gameshake, wy);
}
background_index[3]= 193;
background_foreground[3]= 1;
background_htiled[3]= 1;
background_vtiled[3]= 1;
background_visible[3]= 1;
background_hspeed[3]= 0;
background_vspeed[3]= 0;
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="2" enumb="0">
<action>
<libid>1</libid>
<id>603</id>
<kind>7</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>gameshake*= -0.8;
gameshake= floor(gameshake);
if(global.osflavor == 1)
window_set_position(wx + gameshake, wy);
alarm[0]= 8;
if(file_exists("undertale.exe")) file_delete("undertale.exe");
if(file_exists("undertale.EXE")) file_delete("undertale.EXE");
if(file_exists("Undertale.exe")) file_delete("Undertale.exe");
if(file_exists("UNDERTALE.exe")) file_delete("UNDERTALE.exe");
if(file_exists("undertale.ini")) file_delete("undertale.ini");
if(file_exists("file0")) file_delete("file0");
if(file_exists("file1")) file_delete("file1");
if(file_exists("file2")) file_delete("file2");
if(file_exists("file3")) file_delete("file3");
if(file_exists("file4")) file_delete("file4");
if(file_exists("file5")) file_delete("file5");
if(file_exists("file6")) file_delete("file6");
if(file_exists("file7")) file_delete("file7");
if(file_exists("file8")) file_delete("file8");
if(file_exists("file9")) file_delete("file9");
gx= file_text_open_write("system_information_962");
file_text_write_string(gx, "a");
file_text_close(gx);
if(global.steam_int == 1 && !steam_file_exists("system_information_962"))
steam_file_write_file("system_information_962", "system_information_962");
if(abs(gameshake) < 3) game_end();
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="3" enumb="0">
<action>
<libid>1</libid>
<id>603</id>
<kind>7</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>background_x[3]= -10 + random(10);
background_y[3]= -10 + random(10);
</string>
</argument>
</arguments>
</action>
</event>
</events>
<PhysicsObject>0</PhysicsObject>
<PhysicsObjectSensor>0</PhysicsObjectSensor>
<PhysicsObjectShape>0</PhysicsObjectShape>
<PhysicsObjectDensity>0.5</PhysicsObjectDensity>
<PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution>
<PhysicsObjectGroup>0</PhysicsObjectGroup>
<PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
<PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
<PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction>
<PhysicsObjectAwake>-1</PhysicsObjectAwake>
<PhysicsObjectKinematic>0</PhysicsObjectKinematic>
<PhysicsShapePoints/>
</object>