-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathOffSp.frm
380 lines (375 loc) · 11.7 KB
/
OffSp.frm
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form OffSp
AutoRedraw = -1 'True
BackColor = &H00FED085&
BorderStyle = 0 'None
Caption = "OfficeSpace"
ClientHeight = 8970
ClientLeft = 180
ClientTop = 1350
ClientWidth = 11970
ControlBox = 0 'False
Enabled = 0 'False
Icon = "OffSp.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 768
ScaleMode = 0 'User
ScaleWidth = 1024
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
WindowState = 2 'Maximized
Begin VB.PictureBox picMenu
Align = 2 'Align Bottom
AutoRedraw = -1 'True
BackColor = &H0036FE4A&
BorderStyle = 0 'None
Height = 975
Left = 0
ScaleHeight = 65
ScaleMode = 3 'Pixel
ScaleWidth = 798
TabIndex = 0
Top = 7995
Width = 11970
Begin VB.Label lblPay
AutoSize = -1 'True
BackColor = &H0036FE4A&
Caption = "äîëãà"
BeginProperty Font
Name = "Monotype Corsiva"
Size = 9.75
Charset = 204
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H000020FF&
Height = 225
Left = 1800
TabIndex = 8
Top = 600
Width = 390
End
Begin VB.Label Label2
AutoSize = -1 'True
BackColor = &H0036FE4A&
Caption = "ðóáëåé"
BeginProperty Font
Name = "Monotype Corsiva"
Size = 9.75
Charset = 204
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H000020FF&
Height = 225
Left = 1200
TabIndex = 7
Top = 600
Width = 480
End
Begin VB.Label lblMoney
BackColor = &H0036FE4A&
Caption = "Money"
BeginProperty Font
Name = "Monotype Corsiva"
Size = 15.75
Charset = 204
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H000020FF&
Height = 375
Left = 120
TabIndex = 6
Top = 240
Width = 960
End
Begin VB.Image imgLife
Height = 375
Index = 4
Left = 6240
Stretch = -1 'True
Top = 480
Width = 375
End
Begin VB.Image imgLife
Height = 375
Index = 3
Left = 5760
Stretch = -1 'True
Top = 480
Width = 375
End
Begin VB.Image imgFile
Height = 375
Index = 6
Left = 11160
Stretch = -1 'True
Top = 480
Width = 375
End
Begin VB.Image imgFile
Height = 375
Index = 5
Left = 10680
Stretch = -1 'True
Top = 480
Width = 375
End
Begin VB.Image imgFile
Height = 375
Index = 4
Left = 10200
Stretch = -1 'True
Top = 480
Width = 375
End
Begin VB.Image imgFile
Height = 375
Index = 3
Left = 9720
Stretch = -1 'True
Top = 480
Width = 375
End
Begin VB.Image imgFile
Height = 375
Index = 2
Left = 9240
Stretch = -1 'True
Top = 480
Width = 375
End
Begin VB.Image imgFile
Height = 375
Index = 1
Left = 8760
Stretch = -1 'True
Top = 480
Width = 375
End
Begin VB.Image imgFile
Height = 375
Index = 0
Left = 8280
Stretch = -1 'True
Top = 480
Width = 375
End
Begin VB.Label lblNumMoney
BackColor = &H0036FE4A&
Caption = "120"
BeginProperty Font
Name = "Monotype Corsiva"
Size = 15.75
Charset = 204
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H000020FF&
Height = 375
Left = 1200
TabIndex = 5
Top = 240
Width = 1380
End
Begin VB.Label lblNumLifes
BackColor = &H0036FE4A&
BeginProperty Font
Name = "Monotype Corsiva"
Size = 15.75
Charset = 204
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H000020FF&
Height = 375
Left = 5280
TabIndex = 4
Top = 0
Width = 1290
End
Begin VB.Image imgLife
Height = 375
Index = 2
Left = 5280
Stretch = -1 'True
Top = 480
Width = 375
End
Begin VB.Image imgLife
Height = 375
Index = 1
Left = 4800
Stretch = -1 'True
Top = 480
Width = 375
End
Begin VB.Image imgLife
Height = 375
Index = 0
Left = 4320
Stretch = -1 'True
Top = 480
Width = 375
End
Begin VB.Label lblFiles
AutoSize = -1 'True
BackColor = &H0036FE4A&
Caption = "Files"
BeginProperty Font
Name = "Monotype Corsiva"
Size = 15.75
Charset = 204
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H000020FF&
Height = 375
Left = 8400
TabIndex = 3
Top = 0
Width = 615
End
Begin VB.Label lblNumFiles
BackColor = &H0036FE4A&
BeginProperty Font
Name = "Monotype Corsiva"
Size = 15.75
Charset = 204
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H000020FF&
Height = 375
Left = 9240
TabIndex = 2
Top = 0
Width = 810
End
Begin VB.Label lblLifes
AutoSize = -1 'True
BackColor = &H0036FE4A&
Caption = "Lifes"
BeginProperty Font
Name = "Monotype Corsiva"
Size = 15.75
Charset = 204
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H000020FF&
Height = 375
Left = 4440
TabIndex = 1
Top = 0
Width = 645
End
End
Begin MSComctlLib.ImageList imlFon
Left = 0
Top = 3000
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
MaskColor = 12632256
_Version = 393216
End
Begin VB.Timer tmrFps
Enabled = 0 'False
Interval = 42
Left = 0
Top = 4680
End
Begin VB.Timer tmrMons
Enabled = 0 'False
Interval = 42
Left = 0
Top = 4200
End
Begin VB.Timer tmrMove
Enabled = 0 'False
Interval = 21
Left = 0
Top = 3720
End
End
Attribute VB_Name = "OffSp"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim Bonus As Byte
Dim intTimer As Integer
Dim intCnt As Integer
Dim X As Long
Private Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long
Private Declare Function mciExecute _
Lib "winmm.dll" ( _
ByVal IpstrCommand As String _
) As Long
Public Sub Load_Game()
SEvents.GameLoad
tmrFps.Interval = Int(1000 / intFps)
' êóðñîð ìûøè
X = ShowCursor(False)
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 27 Then
'îñòàíîâ èãðû
SEvents.Game_Start False
frmMain.lblGame.Caption = "Ïðîäîëæèòü"
frmMain.Show
End If
Mons.KeyPress 0, KeyCode, Shift
End Sub
Private Sub tmrFps_Timer()
Mons.Fps
End Sub
Private Sub tmrMove_Timer()
Bonus = Mons.PersonagMove(0)
SEvents.Events Bonus
End Sub
Private Sub tmrMons_Timer()
On Error Resume Next
Mons.MonstrsMove NumPersonag - 1
If intTimer > 0 Then intTimer = intTimer - 1
If Member.MCatch Then
If intTimer = 0 Then
Lifes = Lifes - 1
Money = Money - Int(Rnd * 51) - 50
SEvents.IconPaint
SEvents.Game_Start False
mciExecute "Play C:\Sound\Heard.wav"
frmText.lblText = "Âàñ ïîéìàë è îøòðàôîâàë íà÷àëüíèê"
frmText.Load
frmText.Show vbModal
SEvents.Game_Start True
intTimer = 30
End If
End If
End Sub
Private Sub Form_Terminate()
' ïîêàçûâàåì êóðñîð ìûøè
X = ShowCursor(True)
End Sub