3
3
"prefix" : " cam" ,
4
4
"scope" : " pico8p8" ,
5
5
"body" : [
6
- " camera(${1:x},${2:y})"
6
+ " camera(${1:x},${2:y})" ,
7
+ " $0"
7
8
],
8
9
"description" : " Set camera position"
9
10
},
10
11
"graphics.circ" : {
11
12
"prefix" : " circ" ,
12
13
"scope" : " pico8p8" ,
13
14
"body" : [
14
- " circ(${1:x},${2:y},${3:radius},${4|black,dark_blue,dark_purple,dark_green,brown,dark_gray,light_gray,white,red,orange,yellow,green,blue,indigo,pink,peach|})"
15
+ " circ(${1:x},${2:y},${3:radius},${4|black,dark_blue,dark_purple,dark_green,brown,dark_gray,light_gray,white,red,orange,yellow,green,blue,indigo,pink,peach|})" ,
16
+ " $0"
15
17
],
16
18
"description" : " Draw a circle"
17
19
},
18
20
"graphics.circfill" : {
19
21
"prefix" : " circf" ,
20
22
"scope" : " pico8p8" ,
21
23
"body" : [
22
- " circfill(${1:x},${2:y},${3:radius},${4|black,dark_blue,dark_purple,dark_green,brown,dark_gray,light_gray,white,red,orange,yellow,green,blue,indigo,pink,peach|})"
24
+ " circfill(${1:x},${2:y},${3:radius},${4|black,dark_blue,dark_purple,dark_green,brown,dark_gray,light_gray,white,red,orange,yellow,green,blue,indigo,pink,peach|})" ,
25
+ " $0"
23
26
],
24
27
"description" : " Draw a filled circle"
28
+ },
29
+ "graphics.clip" : {
30
+ "prefix" : " clip" ,
31
+ "scope" : " pico8p8" ,
32
+ "body" : [
33
+ " clip(${1:x},${2:y},${2:w},${2:h})" ,
34
+ " $0"
35
+ ],
36
+ "description" : " Set screen clipping region"
37
+ },
38
+ "graphics.cls" : {
39
+ "prefix" : " cls" ,
40
+ "scope" : " pico8p8" ,
41
+ "body" : [
42
+ " cls(${1|black,dark_blue,dark_purple,dark_green,brown,dark_gray,light_gray,white,red,orange,yellow,green,blue,indigo,pink,peach|})" ,
43
+ " $0"
44
+ ],
45
+ "description" : " Clear the screen with the given colour"
46
+ },
47
+ "graphics.color" : {
48
+ "prefix" : " color" ,
49
+ "scope" : " pico8p8" ,
50
+ "body" : [
51
+ " color(${1|black,dark_blue,dark_purple,dark_green,brown,dark_gray,light_gray,white,red,orange,yellow,green,blue,indigo,pink,peach|})" ,
52
+ " $0"
53
+ ],
54
+ "description" : " Sets the default drawing colour"
55
+ },
56
+ "graphics.cursor" : {
57
+ "prefix" : " cursor" ,
58
+ "scope" : " pico8p8" ,
59
+ "body" : [
60
+ " cursor(${1:x},${2:y})" ,
61
+ " $0"
62
+ ],
63
+ "description" : " Set the cursor position and carriage return margin"
64
+ },
65
+ "graphics.fget" : {
66
+ "prefix" : " fget" ,
67
+ "scope" : " pico8p8" ,
68
+ "body" : [
69
+ " fget(${1:sprite_index},${2:optional_flag_index})" ,
70
+ " $0"
71
+ ],
72
+ "description" : " Gets the sprite's flag"
73
+ },
74
+ "graphics.fset" : {
75
+ "prefix" : " fget" ,
76
+ "scope" : " pico8p8" ,
77
+ "body" : [
78
+ " fget(${1:sprite_index},${2:optional_flag_index},${3:value})" ,
79
+ " $0"
80
+ ],
81
+ "description" : " Sets the sprite's flag"
82
+ },
83
+ "graphics.flip" : {
84
+ "prefix" : " flip" ,
85
+ "scope" : " pico8p8" ,
86
+ "body" : [
87
+ " flip()" ,
88
+ " $0"
89
+ ],
90
+ "description" : " Flips the screen back buffer"
91
+ },
92
+ "graphics.line" : {
93
+ "prefix" : " line" ,
94
+ "scope" : " pico8p8" ,
95
+ "body" : [
96
+ " line(${1:x0},${2:y0},${3:x1},${4:y1},${5|black,dark_blue,dark_purple,dark_green,brown,dark_gray,light_gray,white,red,orange,yellow,green,blue,indigo,pink,peach|})" ,
97
+ " $0"
98
+ ],
99
+ "description" : " Draw a line"
100
+ },
101
+ "graphics.pal" : {
102
+ "prefix" : " pal" ,
103
+ "scope" : " pico8p8" ,
104
+ "body" : [
105
+ " pal(${1:c0},${2:c1},${3:palette_0_draw_1_screen})" ,
106
+ " $0"
107
+ ],
108
+ "description" : " Switch colour 0 to colour 1, set palette to 0 for draw palette (sprites etc.), or 1 for screen (fades etc.)"
109
+ },
110
+ "graphics.palt" : {
111
+ "prefix" : " palt" ,
112
+ "scope" : " pico8p8" ,
113
+ "body" : [
114
+ " palt(${1:col},${2:onoff})" ,
115
+ " $0"
116
+ ],
117
+ "description" : " Sets transparency on given colour to on or off"
118
+ },
119
+ "graphics.pget" : {
120
+ "prefix" : " pget" ,
121
+ "scope" : " pico8p8" ,
122
+ "body" : [
123
+ " pget(${1:x},${2:y})" ,
124
+ " $0"
125
+ ],
126
+ "description" : " Get the value of the pixel at the given coords"
127
+ },
128
+ "graphics.pset" : {
129
+ "prefix" : " pset" ,
130
+ "scope" : " pico8p8" ,
131
+ "body" : [
132
+ " pset(${1:x},${2:y},${3|black,dark_blue,dark_purple,dark_green,brown,dark_gray,light_gray,white,red,orange,yellow,green,blue,indigo,pink,peach|})" ,
133
+ " $0"
134
+ ],
135
+ "description" : " Sets the value of the pixel at the given coords"
136
+ },
137
+ "graphics.print" : {
138
+ "prefix" : " print" ,
139
+ "scope" : " pico8p8" ,
140
+ "body" : [
141
+ " print(${1:string},${2:x},${3:y},${4|black,dark_blue,dark_purple,dark_green,brown,dark_gray,light_gray,white,red,orange,yellow,green,blue,indigo,pink,peach|})" ,
142
+ " $0"
143
+ ],
144
+ "description" : " Prints the string in the given colour at the given coords"
145
+ },
146
+ "graphics.rect" : {
147
+ "prefix" : " rect" ,
148
+ "scope" : " pico8p8" ,
149
+ "body" : [
150
+ " rect(${1:x0},${2:y0},${3:x1},${4:y1},${5|black,dark_blue,dark_purple,dark_green,brown,dark_gray,light_gray,white,red,orange,yellow,green,blue,indigo,pink,peach|})" ,
151
+ " $0"
152
+ ],
153
+ "description" : " Draws a rectangle outline"
154
+ },
155
+ "graphics.rectfill" : {
156
+ "prefix" : " rectfill" ,
157
+ "scope" : " pico8p8" ,
158
+ "body" : [
159
+ " rectfill(${1:x0},${2:y0},${3:x1},${4:y1},${5|black,dark_blue,dark_purple,dark_green,brown,dark_gray,light_gray,white,red,orange,yellow,green,blue,indigo,pink,peach|})" ,
160
+ " $0"
161
+ ],
162
+ "description" : " Draws a filled rectangle"
163
+ },
164
+ "graphics.sget" : {
165
+ "prefix" : " sget" ,
166
+ "scope" : " pico8p8" ,
167
+ "body" : [
168
+ " sget(${1:x},${2:y})" ,
169
+ " $0"
170
+ ],
171
+ "description" : " Get the spritesheet value of the pixel at the given coords"
172
+ },
173
+ "graphics.sset" : {
174
+ "prefix" : " sset" ,
175
+ "scope" : " pico8p8" ,
176
+ "body" : [
177
+ " sset(${1:x},${2:y},${3|black,dark_blue,dark_purple,dark_green,brown,dark_gray,light_gray,white,red,orange,yellow,green,blue,indigo,pink,peach|})" ,
178
+ " $0"
179
+ ],
180
+ "description" : " Sets the spritesheet value of the pixel at the given coords"
181
+ },
182
+ "graphics.sprsimple" : {
183
+ "prefix" : " spr" ,
184
+ "scope" : " pico8p8" ,
185
+ "body" : [
186
+ " spr(${1:sprite_number},${2:x},${3:y})" ,
187
+ " $0"
188
+ ],
189
+ "description" : " Simple draw sprite at given coords"
190
+ },
191
+ "graphics.sprfull" : {
192
+ "prefix" : " sprf" ,
193
+ "scope" : " pico8p8" ,
194
+ "body" : [
195
+ " spr(${1:sprite_number},${2:x},${3:y},${4:width},${5:height},${6:flip_x},${7:flip_y})" ,
196
+ " $0"
197
+ ],
198
+ "description" : " Full draw sprite at given coords with given size and flip flags"
199
+ },
200
+ "graphics.ssprsimple" : {
201
+ "prefix" : " sspr" ,
202
+ "scope" : " pico8p8" ,
203
+ "body" : [
204
+ " sspr(${1:spritesheet_x},${2:spritesheet_y},${3:spritesheet_width},${4:spritesheet_height},${5:x},${6:y})" ,
205
+ " $0"
206
+ ],
207
+ "description" : " Simple draw sprite sheet texture at given coords"
208
+ },
209
+ "graphics.ssprfull" : {
210
+ "prefix" : " ssprf" ,
211
+ "scope" : " pico8p8" ,
212
+ "body" : [
213
+ " sspr(${1:spritesheet_x},${2:spritesheet_y},${3:spritesheet_width},${4:spritesheet_height},${5:x},${6:y},${7:width},${8:height},${9:flip_x},${10:flip_y})" ,
214
+ " $0"
215
+ ],
216
+ "description" : " Simple draw sprite sheet texture at given coords"
217
+ },
218
+ "graphics.fillp" : {
219
+ "prefix" : " fillp" ,
220
+ "scope" : " pico8p8" ,
221
+ "body" : [
222
+ " fillp(${1:mask})" ,
223
+ " $0"
224
+ ],
225
+ "description" : " Set fill pattern for circ, circfill, rect, rectfill, pset, and line (see https://seansleblanc.itch.io/pico-8-fillp-tool)"
25
226
}
26
-
27
227
}
0 commit comments