Skip to content

Commit

Permalink
Added more letters to text drawing utility
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed May 31, 2019
1 parent 0288179 commit 6c08f4f
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 9 deletions.
12 changes: 8 additions & 4 deletions lib/res/default_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -53686,19 +53686,23 @@
25600
],
[
28200,
28400,
25600
],
[
28400,
24400
],
[
29400,
29200,
24400
],
[
29400,
29200,
25600
],
[
28200,
28400,
25600
],
[
Expand Down
56 changes: 51 additions & 5 deletions util/super_hackish_map_text_drawing.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ const CHARACTERS = {
],
"O": [
[0,0],
[0,3],
[3,3],
[3,0],
[0,0],
[0.5,0],
[0.5,3],
[2.5,3],
[2.5,0],
[0.5,0],
[3,0]
],
"WHITESPACE": [
Expand Down Expand Up @@ -61,6 +62,51 @@ const CHARACTERS = {
[1.5,3],
[1.5,0],
[3,0]
],
"V": [
[0,0],
[1.5,0],
[0,3],
[1.5,0],
[3,3],
[1.5,0],
[3,0]
],
"L": [
[0,0],
[0.5,0],
[0.5,3],
[0.5,0],
[0.5,3],
[0.5,0],
[2,0],
[0.5,0],
[3,0]
],
"U": [
[0,0],
[0.5,0],
[0.5,3],
[0.5,0],
[2.5,0],
[2.5,3],
[2.5,0],
[0.5,0],
[3,0]
],
"E": [
[0,0],
[0.5,0],
[0.5,3],
[2.5,3],
[0.5,3],
[0.5,1.5],
[2,1.5],
[0.5,1.5],
[0.5,0],
[2.5,0],
[0.5,0],
[3,0]
]
};

Expand Down Expand Up @@ -150,7 +196,7 @@ console.log(JSON.stringify({
"obstacle_strong": WALL
}
},
"PATH": {
"path": {
"current_angle": 0,
"points": PATH
},
Expand Down

0 comments on commit 6c08f4f

Please sign in to comment.