Skip to content

Commit de1251b

Browse files
authored
Merge branch 'master' into Jaqster-patch-7
2 parents 9fec06f + 8bd7b3e commit de1251b

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

docs/skillmap/3-in-a-row.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
* name: 3 in a Row - Part 1
2121
* type: tutorial
22-
* description: Set up the tilemap game board and dynamically fill with symbols.
22+
* description: Set up the game board and fill it with colored symbols!
2323
* url: /skillmap/3-in-a-row/3-in-a-row1
2424
* imageUrl: /static/skillmap/3-in-a-row/3-in-a-row1.gif
2525
* tags: puzzle, tilemap, intermediate
@@ -60,4 +60,4 @@
6060
* preview: /static/skillmap/certificates/3-in-a-row-cert.png
6161
* completion-badge:
6262
* image: /static/badges/badge-3-in-a-row.png
63-
* name: 3 in a Row
63+
* name: 3 in a Row

docs/skillmap/3-in-a-row/3-in-a-row1.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ scene.setBackgroundColor(13)
2727

2828
## Create a selector sprite
2929

30-
Now we need to create a 👾 sprite that acts as a cursor to show which tiles are ☑️ selected on the grid.
30+
Now we need to create a 👾 sprite that acts as a cursor to show which tiles are selected on the grid.
3131

3232
---
3333

@@ -132,6 +132,8 @@ Now let's create the 𖣯 game board using a tilemap!
132132

133133
- :mouse pointer: In the bottom left corner, set the tilemap size to **10 columns** wide by **7 rows** tall and then click **Done**
134134

135+
![canvas size](/static/skillmap/3-in-a-row/canvasSize.png "canvas size")
136+
135137
- :lightbulb: **Don't draw anything** on the tilemap yet — we'll fill it with code!
136138

137139
~hint What's a tilemap? 💡
@@ -253,7 +255,7 @@ Now let's add code to find all the ⬜ empty spaces on the game board.
253255

254256
- :mouse pointer: Type in **_emptyTile_** as the variable name and then click Ok
255257

256-
- :tree: From the ``||scene:Scene||`` Toolbox category, drag an ``||scene:array of all [tile] locations||`` block and drop it in the ``||loops(noclick):for element||`` block replacing the ``||variables(noclick):list||`` variable
258+
- :tree: From the ``||scene:Scene||`` Toolbox category, drag an ``||scene:array of all [tile] locations||`` block and drop it to replace the ``||variables(noclick):list||`` variable in the ``||loops(noclick):for element||`` block
257259

258260
~hint What does this do? 💡
259261

@@ -294,9 +296,9 @@ function fillEmptyTiles () {
294296
}
295297
```
296298

297-
## 📢 Call the fill function
299+
## Call the fill function
298300

299-
Now let's call our function to 📲 fill the board when the game starts!
301+
Now let's 📢 call our function to fill the board when the game starts!
300302

301303
---
302304

@@ -438,4 +440,4 @@ tileScanner=github:riknoll/arcade-tile-scanner
438440
"tilemap.g.jres": "{\n \"tile1\": {\n \"data\": \"hwQQABAAAAAAAAAAAAAAAACIiIiIiIgAYIaIiIiIiAhgdnd3d3eHCGB2d3d3d4cIYHZ3d3d3hwhgdnd3d3eHCGB2EXd3d4cIYHYRd3d3hwhgdhF3d3eHCGB2ERF3d4cIYHYREXd3hwhgdnd3d3eHCGB2d3d3d4cIAGZmZmZmZgAAAAAAAAAAAA==\",\n \"mimeType\": \"image/x-mkcd-f4\",\n \"tilemapTile\": true,\n \"displayName\": \"Gem1\"\n },\n \"tile2\": {\n \"data\": \"hwQQABAAAAAAAAAAAADu7gAAAAAAAO7uAAAAAO7uIu4AAAAA7u4i7gAA7u4iIiLuAADu7iIiIu7u7iIiIiIi7u7uIiIiIiLuREQiESIiIu5ERCIRIiIi7gAAREQiIiLuAABERCIiIu4AAAAAREQi7gAAAABERCLuAAAAAAAAREQAAAAAAABERA==\",\n \"mimeType\": \"image/x-mkcd-f4\",\n \"tilemapTile\": true,\n \"displayName\": \"Gem2\"\n },\n \"tile3\": {\n \"data\": \"hwQQABAAAAAAAAAAAAAAAAAAzMzMzAAAAMyqqqqqzAAAzKqqqqrMALCqqqqqqqoMsKqqqqqqqgywqqqqqqqqDLCqqqqqqqoMsKoRqqqqqgywqhGqqqqqDLCqqhGqqqoMsKqqEaqqqgwAu6qqqqq7AAC7qqqqqrsAAAC7u7u7AAAAAAAAAAAAAA==\",\n \"mimeType\": \"image/x-mkcd-f4\",\n \"tilemapTile\": true,\n \"displayName\": \"Gem3\"\n },\n \"tile4\": {\n \"data\": \"hwQQABAAAAAAAACIiAAAAAAAAIiIAAAAAACImZmIAAAAAIiZmYgAAACImZmZmYgAAIiZmZmZiABmmZmZmZmZiGaZmZmZmZmIZpkRmZmZmYhmmRGZmZmZiABmmRGZmWYAAGaZEZmZZgAAAGaZmWYAAAAAZpmZZgAAAAAAZmYAAAAAAABmZgAAAA==\",\n \"mimeType\": \"image/x-mkcd-f4\",\n \"tilemapTile\": true,\n \"displayName\": \"Gem4\"\n },\n \"tile5\": {\n \"data\": \"hwQQABAAAAAAAADu7u4AAAAAAO7u7gAAAADuVVVV7gAAAO5VVVXuAADuVVVVVVXuAO5VVVVVVe5EVVVVVVVV7kRVVVVVVVXuRFURVVVVVe5EVRFVVVVV7gBEVRFVVVXuAERVEVVVVe4AAERVVVVEAAAARFVVVUQAAAAAREREAAAAAABEREQAAA==\",\n \"mimeType\": \"image/x-mkcd-f4\",\n \"tilemapTile\": true,\n \"displayName\": \"Gem5\"\n },\n \"tile6\": {\n \"data\": \"hwQQABAAAAAAAAAAAAAAAAAAAAAAAAAAAADAzMwMAAAAAMzMzMwAAADMMzMzM8wAADwzMzMzwwC7MzMzMzMzzLszMzMzMzPMuzMRMzMzM8y7MxEzMzMzzAA7MxEzM7MAALszETMzuwAAALu7u7sAAAAAsLu7CwAAAAAAAAAAAAAAAAAAAAAAAA==\",\n \"mimeType\": \"image/x-mkcd-f4\",\n \"tilemapTile\": true,\n \"displayName\": \"Gem6\"\n },\n \"*\": {\n \"mimeType\": \"image/x-mkcd-f4\",\n \"dataEncoding\": \"base64\",\n \"namespace\": \"myTiles\"\n }\n}",
439441
"tilemap.g.ts": "// Auto-generated code. Do not edit.\nnamespace myTiles {\n //% fixedInstance jres blockIdentity=images._tile\n export const tile1 = image.ofBuffer(hex``);\n //% fixedInstance jres blockIdentity=images._tile\n export const tile2 = image.ofBuffer(hex``);\n //% fixedInstance jres blockIdentity=images._tile\n export const tile3 = image.ofBuffer(hex``);\n //% fixedInstance jres blockIdentity=images._tile\n export const tile4 = image.ofBuffer(hex``);\n //% fixedInstance jres blockIdentity=images._tile\n export const tile5 = image.ofBuffer(hex``);\n //% fixedInstance jres blockIdentity=images._tile\n export const tile6 = image.ofBuffer(hex``);\n\n helpers._registerFactory(\"tile\", function(name: string) {\n switch(helpers.stringTrim(name)) {\n case \"Gem1\":\n case \"tile1\":return tile1;\n case \"Gem2\":\n case \"tile2\":return tile2;\n case \"Gem3\":\n case \"tile3\":return tile3;\n case \"Gem4\":\n case \"tile4\":return tile4;\n case \"Gem5\":\n case \"tile5\":return tile5;\n case \"Gem6\":\n case \"tile6\":return tile6;\n }\n return null;\n })\n\n}\n// Auto-generated code. Do not edit.\n"
440442
}
441-
```
443+
```
1.31 KB
Loading

0 commit comments

Comments
 (0)