forked from greyblue9/pacman-python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
modEditor.bas
63 lines (44 loc) · 1.54 KB
/
modEditor.bas
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
Attribute VB_Name = "modEditor"
Public Declare Function BitBlt Lib "gdi32" _
(ByVal hDestDC As Long, ByVal X As Long, _
ByVal Y As Long, ByVal nWidth As Long, _
ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc _
As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Public Const BLACK As Long = 0
Public Const WHITE As Long = 16777215
Public Tiles(100, 3) 'in the tileset. (includes regular and sprites)
'(index, property)
'properties:
'0 = type (1[tile] or 2[sprite])
'1 = tile number
'2 = tilename
'3 = tiledesc
Public totalTiles As Integer 'in the tileset. (includes regular AND sprites)
Public firstSpriteIndex As Integer 'first tile in tileset that is a sprite.
Public tileIndex(32767) As Integer 'this stores tile indexes when you know the tile number(2000 -> 6,etc.)
Public Sprites(100, 7) As Integer
'0 = location (row)
'1 = location (col)
'2 = tile number
'3-7 = attributes
Public numOfSprites As Integer
Public selSpriteIndex As Integer
Public Map(1000, 1000) As Integer
Public lvlWidth As Integer
Public lvlHeight As Integer
Public edge_LightColor As Long
Public edge_ShadowColor As Long
Public fill_Color As Long
Public pellet_Color As Long
Public fruit_Type As Integer
Public Function ClearLevelVars()
numOfSprites = 0
End Function
Public Function DeleteSelectedSprite()
For i = selSpriteIndex To (numOfSprites - 1)
For j = 0 To 7
Sprites(i, j) = Sprites(i + 1, j)
Next j
Next i
numOfSprites = numOfSprites - 1
End Function