aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <holden.rohrer@gmail.com>2019-12-27 13:11:45 -0500
committerHolden Rohrer <holden.rohrer@gmail.com>2019-12-27 13:11:45 -0500
commitb4c0c263dffeb9c7a3b162c6e168a2d46c8389c5 (patch)
tree0393f4131d42350ac0e479d8ba7ff29926866cad
parenta59b6c0cfdeb469cecb00648cf6b3c03627322b8 (diff)
added tileToChar to vec
-rw-r--r--utils/vec.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/vec.js b/utils/vec.js
index 9808c8b..f4a625c 100644
--- a/utils/vec.js
+++ b/utils/vec.js
@@ -24,3 +24,6 @@ exports.sub = function(orig, vec){
exports.dot = function(orig,vec){
return elem(orig, vec, (a,b) => a*b);
}
+exports.tileToChar = function(orig){
+ return exports.dot(orig, [8,16]);
+}