Skip to content

Commit 2a19231

Browse files
for each location line statement block working, but not as useful as expected. Will test out generators
1 parent 0f865a0 commit 2a19231

8 files changed

Lines changed: 79 additions & 94 deletions

File tree

.github/makecode/blocks.png

37.3 KB
Loading

.github/makecode/blocksdiff.png

-42.8 KB
Loading

main.blocks

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable type="KIND_SpriteKind" id="1_J^]:-Q1a{2{1e/wMC0">Player</variable><variable type="KIND_SpriteKind" id="p5|PxH6%Vc=F)+?}=m#V">Projectile</variable><variable type="KIND_SpriteKind" id="ZYB$c7r4wj]$L.gZj6mj">Food</variable><variable type="KIND_SpriteKind" id="XwfTq?pNNC2)dt(u)m(3">Enemy</variable><variable id="AtOt=kYW{T}SJ9vHeZK=">mySprite</variable><variable id="Q1kh-W2=6(,YWift(^c|">value</variable><variable id="aTA[c#2To;^}cIt~sAvo">list</variable></variables><block type="pxt-on-start" id="{lnP4W{QOhctE4HYCUWb" x="0" y="0"><statement name="HANDLER"><block type="set_current_tilemap" id="eUu9dC*IKrQ,(7)h|*d;"><value name="tilemap"><shadow type="tiles_tilemap_editor"></shadow><block type="maze_generateTilemap" id="P2$^3()+H%e3;q0_vzum"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="1" _input_init="true"></mutation><field name="algorithm">MazeAlgorithm.Ellers</field><value name="mazeWidth"><shadow type="math_number" id="AyI;(h=F4litNFp1+(~E"><field name="NUM">8</field></shadow></value><value name="mazeHeight"><shadow type="math_number" id="kW94o}$_c$yRud[BTEu~"><field name="NUM">8</field></shadow></value><value name="wall"><shadow type="tileset_tile_picker" id="8pL5{g2}!/PWo00jk#X9"><field name="tile">sprites.dungeon.floorDark0</field></shadow></value><value name="floor"><shadow type="tileset_tile_picker" id="4Om*HWL[Th+6,isR]mw?"><field name="tile">sprites.castle.tileGrass2</field></shadow></value><value name="corridorSize"><shadow type="math_number" id="nb(^JtKudky%pLbj~Oi}"><field name="NUM">2</field></shadow></value></block></value><next><block type="variables_set" id="%*U6c?*jt-ZxN!U3I1Iu"><field name="VAR" id="AtOt=kYW{T}SJ9vHeZK=">mySprite</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id="DoI@bP[*F_F-)e8iN:.m"><value name="img"><shadow type="screen_image_picker" id="#$p}3gO8.k@hA%C@3LTo"><field name="img">img`
1+
<xml xmlns="https://developers.google.com/blockly/xml"><variables><variable type="KIND_SpriteKind" id="DvQ7!.P`YK8ar6!B^s1e">Player</variable><variable type="KIND_SpriteKind" id="MI7V!9LKh@~p9Z@ZfV4P">Projectile</variable><variable type="KIND_SpriteKind" id="$y54-as=Gm|COtlX@2op">Food</variable><variable type="KIND_SpriteKind" id="GSTCDw;pc$2:I:_SgZpn">Enemy</variable><variable id="XmZ?|I8uFqea?GG=mAQr">mySprite</variable><variable id="5;`sD*6[T$8SjI)Lq|iu">value</variable></variables><block type="pxt-on-start" id="E6#Su4fv*:9Cqs*ag([F" x="0" y="0"><statement name="HANDLER"><block type="set_current_tilemap" id="z)(%pNAEC75!BoTTCS*G"><value name="tilemap"><shadow type="tiles_tilemap_editor"></shadow><block type="maze_generateTilemap" id="db#N!Ie@B7ilgqc@v}(="><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="2" _input_init="true"></mutation><field name="algorithm">MazeAlgorithm.Ellers</field><value name="mazeWidth"><shadow type="math_number" id="3?MnsV}J;#YHzD+DRb2p"><field name="NUM">8</field></shadow></value><value name="mazeHeight"><shadow type="math_number" id="uky:Up/RAD6TZ.,XWkKk"><field name="NUM">8</field></shadow></value><value name="wall"><shadow type="tileset_tile_picker" id="#g_Fr#cys(EK4NRJ?0yM"><field name="tile">sprites.dungeon.floorDark0</field></shadow></value><value name="floor"><shadow type="tileset_tile_picker" id="CB8qCGhnC9zRYZ`i$:aj"><field name="tile">sprites.castle.tileGrass2</field></shadow></value><value name="corridorSize"><shadow type="math_number" id="nPN?{$1Y!D-E508`-5yL"><field name="NUM">2</field></shadow></value><value name="seed"><shadow type="math_number" id="cRYR1~SeOlDmBW-a7Va^"><field name="NUM">0</field></shadow></value></block></value><next><block type="variables_set" id="(D~,{LM=t.jB/.U6:u0!"><field name="VAR" id="XmZ?|I8uFqea?GG=mAQr">mySprite</field><value name="VALUE"><shadow type="math_number"><field name="NUM">0</field></shadow><block type="spritescreate" id="l1Z,kv;;z*@Z5==qXoOh"><value name="img"><shadow type="screen_image_picker" id="GYm.JnaZRX0QL5G(s0!O"><field name="img">img`
22
........................
33
.....ffff...............
44
...fff22fff.............
@@ -23,4 +23,4 @@ fbbbbf2222fd4...........
2323
........................
2424
........................
2525
........................
26-
`</field><data>{"commentRefs":[],"fieldData":{"img":"#$p}3gO8.k@hA%C@3LTo"}}</data></shadow></value><value name="kind"><shadow type="spritekind" id="2BH+e*$v9*~YT7B=D{gC"><field name="MEMBER">Player</field></shadow></value></block></value><next><block type="mapplaceontile" id="avU3xP*1n0b_cm$lHeKY"><value name="sprite"><shadow type="variables_get" id="H%=bDU!/`U7Q^s3td%Sj"><field name="VAR" id="AtOt=kYW{T}SJ9vHeZK=">mySprite</field></shadow></value><value name="loc"><shadow type="mapgettile" id="Rv3Gc^50,e=Ch;.*`bT4"><value name="col"><shadow type="math_number" id="%R;p1`34r8Q+)t-vJ`r."><field name="NUM">2</field></shadow></value><value name="row"><shadow type="math_number" id="eTGPhyD=c/)3y3Y{Wq#x"><field name="NUM">2</field></shadow></value></shadow></value><next><block type="game_control_sprite" id="v!B]i`u-ruCvYhu]M-x,"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="true"></mutation><value name="sprite"><shadow type="variables_get" id="K`.l=`gdIEz9V0k+aTSV"><field name="VAR" id="AtOt=kYW{T}SJ9vHeZK=">mySprite</field></shadow></value><next><block type="camerafollow" id="-%#P5B5D@zU%AxYpYyIl"><value name="sprite"><shadow type="variables_get" id=":mkdZsT=zZu-EG_p$B5h"><field name="VAR" id="AtOt=kYW{T}SJ9vHeZK=">mySprite</field></shadow></value><next><block type="pxt_controls_for_of" id="}.MPedX{I?MLo.L540b1"><value name="VAR"><shadow type="variables_get_reporter" id="3a0K9$KfxrXdt?Zj+w-6"><field name="VAR" id="Q1kh-W2=6(,YWift(^c|">value</field></shadow></value><value name="LIST"><shadow type="variables_get" id="61bH/a;1MQKjzo43m{AM"><field name="VAR" id="aTA[c#2To;^}cIt~sAvo">list</field></shadow><block type="tilesExt_getRandomTilesByType" id="!?7mHd*?*F1|n3JgzwOK"><value name="maxCount"><shadow type="math_number" id="QjpSdjAa+/KH).uoHPR."><field name="NUM">10</field></shadow></value><value name="tile"><shadow type="tileset_tile_picker" id="4]otI{y/-qGua|RC2T-t"><field name="tile">sprites.castle.tileGrass2</field></shadow></value></block></value><statement name="DO"><block type="mapsettileat" id="}BIiJ=c}5(2]V2wW|R4."><value name="tile"><shadow type="tileset_tile_picker" id="02Pv$9CP4H5/PnL}G{.E"><field name="tile">sprites.dungeon.chestClosed</field></shadow></value><value name="loc"><shadow type="mapgettile" id="G$L]CQv7sajmHVQSMkAO"><value name="col"><shadow type="math_number" id="!|y]ze/uihU_uoPJ#mr3"><field name="NUM">0</field></shadow></value><value name="row"><shadow type="math_number" id="pu}Hu*KmaA?7{w}sZfrf"><field name="NUM">0</field></shadow></value></shadow><block type="variables_get" id="Z1Xq0bucD[/ftrvBe},D"><field name="VAR" id="Q1kh-W2=6(,YWift(^c|">value</field></block></value></block></statement></block></next></block></next></block></next></block></next></block></next></block></statement></block></xml>
26+
`</field><data>{"commentRefs":[],"fieldData":{"img":null}}</data></shadow></value><value name="kind"><shadow type="spritekind" id="Iou|A`Vo1j)NWkg380_*"><field name="MEMBER">Player</field></shadow></value></block></value><next><block type="mapplaceontile" id="Kj+f+]H]J;Qg#;XlCk])"><value name="sprite"><shadow type="variables_get" id="kJdF%w,!#Vb~OsmdBI4N"><field name="VAR" id="XmZ?|I8uFqea?GG=mAQr">mySprite</field></shadow></value><value name="loc"><shadow type="mapgettile" id="HpghHe0_,r%?TbnbA2i{"><value name="col"><shadow type="math_number" id="TQ~6R7y4*1G.Qn?))jWT"><field name="NUM">2</field></shadow></value><value name="row"><shadow type="math_number" id="[(5xC/d[yO}O!Fcojt0W"><field name="NUM">2</field></shadow></value></shadow></value><next><block type="game_control_sprite" id=".Oy3Z3U+aKz5JHeYc(:/"><mutation xmlns="http://www.w3.org/1999/xhtml" _expanded="0" _input_init="true"></mutation><value name="sprite"><shadow type="variables_get" id="k@Xo?$K~//EZwy3ZM*oi"><field name="VAR" id="XmZ?|I8uFqea?GG=mAQr">mySprite</field></shadow></value><next><block type="camerafollow" id="=d*)mC~V.RV_y#yOb14T"><value name="sprite"><shadow type="variables_get" id="[_t-V[:j6TEVzHGLXKgv"><field name="VAR" id="XmZ?|I8uFqea?GG=mAQr">mySprite</field></shadow></value><next><block type="pxt_controls_for_of" id="ARXn2B_D(xDFWIBUHz*}"><value name="VAR"><shadow type="variables_get_reporter" id="@_e$$(IR)M?gXj;fn|e%"><field name="VAR" id="5;`sD*6[T$8SjI)Lq|iu">value</field></shadow></value><value name="LIST"><block type="tilesExt_getRandomTilesByType" id="390DvuoW9}?Osc!UZ9XY"><value name="maxCount"><shadow type="math_number" id="/(z)0927WGK/?S36zA|c"><field name="NUM">10</field></shadow></value><value name="tile"><shadow type="tileset_tile_picker" id="chGhBHeraD?3shW:iPfn"><field name="tile">sprites.castle.tileGrass2</field></shadow></value></block></value><statement name="DO"><block type="mapsettileat" id="=6.,0RUVRmVKE68*8xMb"><value name="tile"><shadow type="tileset_tile_picker" id="yeYYT1CY1aB858)2=k@$"><field name="tile">sprites.dungeon.chestClosed</field></shadow></value><value name="loc"><shadow type="mapgettile"></shadow><block type="variables_get" id="Ox^wUgI@(l-$MpV~wp$R"><field name="VAR" id="5;`sD*6[T$8SjI)Lq|iu">value</field></block></value></block></statement><next><block type="tilesExt_line_statement" id="X3NzW:TzMo9rv.Y+Tr[~"><field name="lineType">LineType.Diagonal</field><value name="HANDLER_DRAG_PARAM_loc"><shadow type="argument_reporter_custom" id="82y=PlvT4?`Bb]fGFq{g"><mutation typename="tiles.Location"></mutation><field name="VALUE">loc</field></shadow></value><value name="l1"><shadow type="mapgettile" id="_@ZTDgE[zo6#y{uO}%Ux"><value name="col"><shadow type="math_number" id="LvP-9.PLJxMrQhXa/F`u"><field name="NUM">0</field></shadow></value><value name="row"><shadow type="math_number" id="a^UX7uzK{Sd5bdjt;~,f"><field name="NUM">0</field></shadow></value></shadow></value><value name="l2"><shadow type="mapgettile" id="b/^egZo{WH#!?pffIA3="><value name="col"><shadow type="math_number" id="$s,fX)K)rsSQ~JQ{?(hP"><field name="NUM">5</field></shadow></value><value name="row"><shadow type="math_number" id="dE[9xPpwxcjPA`S8P.D:"><field name="NUM">5</field></shadow></value></shadow></value><value name="exclusive"><shadow type="logic_boolean" id="bte)q.[!/#hB6)GT.$QO"><field name="BOOL">TRUE</field></shadow></value><statement name="HANDLER"><block type="mapsettileat" id="QEdhC/]i91%5S+_t;kX_"><value name="tile"><shadow type="tileset_tile_picker" id="{qc@(go8C7J3qi8p]=f!"><field name="tile">sprites.builtin.brick</field></shadow></value><value name="loc"><shadow type="mapgettile"></shadow><block type="argument_reporter_custom" id="~qt1l~HH$#?5O,8luKRv"><mutation typename="tiles.Location"></mutation><field name="VALUE">loc</field></block></value></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type="forever" id="mUn[9@g{%U1ho.Y#M.sW" x="120" y="720"><statement name="HANDLER"><block type="controls_if" id="H5a?dF}$LRyBu$quJwZ!"><value name="IF0"><shadow type="logic_boolean" id="jrLmm`SdNQ#WE)0XBr89"><field name="BOOL">TRUE</field></shadow></value></block></statement></block></xml>

main.ts

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,18 @@ let mySprite = sprites.create(img`
2424
........................
2525
........................
2626
........................
27-
`, SpriteKind.Player);
28-
tiles.placeOnTile(mySprite, tiles.getTileLocation(2, 2));
29-
controller.moveSprite(mySprite);
30-
scene.cameraFollowSprite(mySprite);
27+
`, SpriteKind.Player)
28+
tiles.placeOnTile(mySprite, tiles.getTileLocation(2, 2))
29+
controller.moveSprite(mySprite)
30+
scene.cameraFollowSprite(mySprite)
3131
for (let value of tilesExt.getRandomTilesByType(sprites.castle.tileGrass2, 10)) {
3232
tiles.setTileAt(value, sprites.dungeon.chestClosed)
3333
}
34-
//tilesExt.setTileBetweenLocations(new tiles.Location(0,0,undefined), new tiles.Location(5,6,undefined), sprites.builtin.brick);
35-
36-
// tilesExt.line(
37-
// LineType.Diagonal,
38-
// new tiles.Location(0,0,undefined),
39-
// new tiles.Location(7,5,undefined),
40-
// true,
41-
// (x,y) => tiles.setTileAt(new tiles.Location(x,y,undefined), sprites.builtin.brick));
42-
43-
// tilesExt.line(
44-
// LineType.Diagonal,
45-
// new tiles.Location(0,1,undefined),
46-
// new tiles.Location(7,6,undefined),
47-
// true,
48-
// (x,y) => tiles.setTileAt(new tiles.Location(x,y,undefined), sprites.builtin.brick));
49-
game.debug = true;
34+
tilesExt._line(LineType.Diagonal, tiles.getTileLocation(0, 0), tiles.getTileLocation(5, 5), true, function (loc) {
35+
tiles.setTileAt(loc, sprites.builtin.brick)
36+
})
37+
forever(function () {
38+
if (true) {
39+
40+
}
41+
})

pxt.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@
2828
"supportedTargets": [
2929
"arcade"
3030
],
31-
"preferredEditor": "blocksprj"
32-
}
31+
"preferredEditor": "tsprj"
32+
}

tilemap.g.jres

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
2-
"myTiles.transparency16": {
3-
"id": "myTiles.transparency16",
2+
"transparency16": {
43
"data": "hwQQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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wMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMA==",
1711
"tileset": [
1812
"myTiles.transparency16",
1913
"sprites.castle.tileGrass2",
2014
"sprites.dungeon.chestClosed",
2115
"sprites.dungeon.floorDark0",
2216
"sprites.builtin.brick"
23-
]
17+
],
18+
"displayName": "testTileset"
19+
},
20+
"*": {
21+
"mimeType": "image/x-mkcd-f4",
22+
"dataEncoding": "base64",
23+
"namespace": "myTiles"
2424
}
2525
}

tilemap.g.ts

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,3 @@
1-
// Auto-generated code. Do not edit.
2-
namespace myImages {
3-
4-
helpers._registerFactory("image", function(name: string) {
5-
switch(helpers.stringTrim(name)) {
6-
case "myTiles.transparency16":return img`
7-
. . . . . . . . . . . . . . . .
8-
. . . . . . . . . . . . . . . .
9-
. . . . . . . . . . . . . . . .
10-
. . . . . . . . . . . . . . . .
11-
. . . . . . . . . . . . . . . .
12-
. . . . . . . . . . . . . . . .
13-
. . . . . . . . . . . . . . . .
14-
. . . . . . . . . . . . . . . .
15-
. . . . . . . . . . . . . . . .
16-
. . . . . . . . . . . . . . . .
17-
. . . . . . . . . . . . . . . .
18-
. . . . . . . . . . . . . . . .
19-
. . . . . . . . . . . . . . . .
20-
. . . . . . . . . . . . . . . .
21-
. . . . . . . . . . . . . . . .
22-
. . . . . . . . . . . . . . . .
23-
`;
24-
}
25-
return null;
26-
})
27-
28-
helpers._registerFactory("animation", function(name: string) {
29-
switch(helpers.stringTrim(name)) {
30-
31-
}
32-
return null;
33-
})
34-
35-
helpers._registerFactory("song", function(name: string) {
36-
switch(helpers.stringTrim(name)) {
37-
38-
}
39-
return null;
40-
})
41-
42-
}
43-
// Auto-generated code. Do not edit.
44-
451
// Auto-generated code. Do not edit.
462
namespace myTiles {
473
//% fixedInstance jres blockIdentity=images._tile
@@ -74,7 +30,7 @@ namespace myTiles {
7430

7531
helpers._registerFactory("tile", function(name: string) {
7632
switch(helpers.stringTrim(name)) {
77-
case "transparency16":return myTiles.transparency16;
33+
case "transparency16":return transparency16;
7834
}
7935
return null;
8036
})

0 commit comments

Comments
 (0)