editor.frm
来自「吃豆子游戏的源代码。 嘿嘿」· FRM 代码 · 共 612 行 · 第 1/2 页
FRM
612 行
VERSION 5.00
Begin VB.Form EditFrm
BorderStyle = 1 'Fixed Single
Caption = "VBPacman Level Editor By Arvinder Sehmi 1999"
ClientHeight = 6345
ClientLeft = 150
ClientTop = 435
ClientWidth = 6375
Icon = "Editor.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 6345
ScaleWidth = 6375
Begin VB.PictureBox BackPic
Height = 1230
Index = 0
Left = 3600
ScaleHeight = 1170
ScaleWidth = 1755
TabIndex = 11
Top = 1710
Visible = 0 'False
Width = 1815
Begin VB.PictureBox BackPic
Height = 1095
Index = 1
Left = 225
ScaleHeight = 1035
ScaleWidth = 1530
TabIndex = 12
Top = 135
Width = 1590
Begin VB.PictureBox BackPic
Height = 960
Index = 2
Left = 225
ScaleHeight = 900
ScaleWidth = 1350
TabIndex = 13
Top = 135
Width = 1410
Begin VB.PictureBox BackPic
Height = 960
Index = 3
Left = 225
ScaleHeight = 900
ScaleWidth = 1305
TabIndex = 14
Top = 180
Width = 1365
Begin VB.PictureBox BackPic
Height = 960
Index = 4
Left = 180
ScaleHeight = 900
ScaleWidth = 1350
TabIndex = 15
Top = 135
Width = 1410
Begin VB.PictureBox BackPic
Height = 960
Index = 5
Left = 180
ScaleHeight = 900
ScaleWidth = 1350
TabIndex = 16
Top = 135
Width = 1410
End
End
End
End
End
End
Begin VB.OptionButton NewFloor
BackColor = &H00004080&
Height = 400
Left = 45
Style = 1 'Graphical
TabIndex = 10
Top = 45
UseMaskColor = -1 'True
Visible = 0 'False
Width = 400
End
Begin VB.OptionButton NewFood
Height = 400
Left = 5220
MaskColor = &H00FFFF00&
Style = 1 'Graphical
TabIndex = 9
Top = 45
UseMaskColor = -1 'True
Visible = 0 'False
Width = 400
End
Begin VB.OptionButton PacMan
Height = 400
Left = 5895
MaskColor = &H00000000&
Style = 1 'Graphical
TabIndex = 8
Top = 45
UseMaskColor = -1 'True
Visible = 0 'False
Width = 400
End
Begin VB.OptionButton NewShield
Height = 400
Left = 2645
MaskColor = &H00FF00FF&
Style = 1 'Graphical
TabIndex = 7
Top = 45
UseMaskColor = -1 'True
Visible = 0 'False
Width = 400
End
Begin VB.OptionButton NewGhoul
Height = 400
Left = 3295
MaskColor = &H00FF00FF&
Style = 1 'Graphical
TabIndex = 6
Top = 45
UseMaskColor = -1 'True
Visible = 0 'False
Width = 400
End
Begin VB.OptionButton NewLife
Height = 400
Left = 3945
MaskColor = &H00FF00FF&
Style = 1 'Graphical
TabIndex = 5
Top = 45
UseMaskColor = -1 'True
Visible = 0 'False
Width = 400
End
Begin VB.OptionButton NewBeer
Height = 400
Left = 4595
MaskColor = &H00FF00FF&
Style = 1 'Graphical
TabIndex = 4
Top = 45
UseMaskColor = -1 'True
Visible = 0 'False
Width = 400
End
Begin VB.OptionButton NewCherry
Height = 400
Left = 1995
Style = 1 'Graphical
TabIndex = 3
Top = 45
UseMaskColor = -1 'True
Visible = 0 'False
Width = 400
End
Begin VB.OptionButton NewBerry
Height = 400
Left = 1350
MaskColor = &H00FFFFFF&
Style = 1 'Graphical
TabIndex = 2
Top = 45
UseMaskColor = -1 'True
Visible = 0 'False
Width = 400
End
Begin VB.OptionButton NewWall
Height = 400
Left = 695
Style = 1 'Graphical
TabIndex = 1
Top = 45
UseMaskColor = -1 'True
Value = -1 'True
Visible = 0 'False
Width = 400
End
Begin VB.PictureBox Area
AutoSize = -1 'True
BackColor = &H000279FD&
BorderStyle = 0 'None
Height = 6270
Left = 45
ScaleHeight = 6270
ScaleWidth = 6270
TabIndex = 0
Top = 45
Width = 6270
Begin VB.Image Grid
Height = 330
Index = 0
Left = 0
Tag = "floor"
Top = 0
Width = 330
End
End
Begin VB.Menu FileMnu
Caption = "&File"
Begin VB.Menu NewWindow
Caption = "&New Map"
End
Begin VB.Menu sep55
Caption = "-"
End
Begin VB.Menu OpenMnu
Caption = "O&pen Map"
End
Begin VB.Menu SaveMnu
Caption = "S&ave Map"
End
Begin VB.Menu sep1
Caption = "-"
End
Begin VB.Menu ExitMnu
Caption = "E&xit"
End
End
Begin VB.Menu EditMnu
Caption = "&Edit"
Begin VB.Menu CopyWindowMnu
Caption = "Copy Map"
End
Begin VB.Menu sep100
Caption = "-"
End
Begin VB.Menu ClearFood
Caption = "C&lear With Food"
End
Begin VB.Menu ClearFloor
Caption = "&Clear With Floor"
End
Begin VB.Menu Sep2
Caption = "-"
End
Begin VB.Menu RepMnu
Caption = "&Replace"
End
Begin VB.Menu Sep3
Caption = "-"
End
Begin VB.Menu SetSchemeMnu
Caption = "&Set Scheme"
End
End
Begin VB.Menu WindowMnu
Caption = "&Window"
Begin VB.Menu ArrCasMnu
Caption = "Cascade"
End
Begin VB.Menu ArrHorMnu
Caption = "Horizontal Tile"
End
Begin VB.Menu ArrVertMnu
Caption = "Vertical Tile"
End
Begin VB.Menu ArrMinMnu
Caption = "Tile Minimized"
End
End
End
Attribute VB_Name = "EditFrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim I 'used in for..next loops
Dim II 'used in for..next loops
Dim iTop 'current y-axis value
Dim iLeft 'current x-axis value
Dim LastGrid As Integer 'the lastgrid the mouse was on
Dim PacManIsDown As Boolean 'is a pacman on the level
Public LevelScheme As String 'holds the currend levels scheme
Private Sub ArrCasMnu_Click() '\
MDIFrm.Arrange 0 ' |
End Sub ' \
Private Sub ArrHorMnu_Click() ' |
MDIFrm.Arrange 1 ' \
End Sub ' |----- arrange the MDIchild Forms
Private Sub ArrVertMnu_Click() ' |
MDIFrm.Arrange 2 ' /
End Sub ' |
Private Sub ArrMinMnu_Click() ' /
MDIFrm.Arrange 3 ' |
End Sub '/
' clears the whole floor with food
Private Sub ClearFloor_Click()
Dim I As Integer
SetAllToFalse 'sets all object selectors to false
For I = 0 To Grid.Count - 1 ' go through each square on the level
If Grid(I).Tag <> 0 Then LoadObject I, 0 'replace the object with food (tag id=0)
Next I
End Sub
' does the same as the sub above
Private Sub ClearFood_Click()
Dim I As Integer
SetAllToFalse
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?