UNPKG
swordio
Version:
latest (0.2.0)
0.2.0
0.1.1
0.1.0
A medieval warrior-based programming language
github.com/mrfishie/swordio
cpdt/swordio
swordio
/
lib
/
cells
/
GrassCell.js
11 lines
(9 loc)
•
210 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
function
GrassCell
(
map
) {
this
.
map
= map; }
GrassCell
.
type
=
" "
;
GrassCell
.
prototype
.
encounter
=
function
(
enemy, vector
) { enemy.
x
+= vector.
x
; enemy.
y
+= vector.
y
; };
module
.
exports
=
GrassCell
;