Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Eben Blaisdell
blockcode
Commits
12930ea8
Commit
12930ea8
authored
Feb 06, 2017
by
Eben Blaisdell
Browse files
message changes
parent
e6b13812
Changes
1
Hide whitespace changes
Inline
Side-by-side
index.js
View file @
12930ea8
...
...
@@ -479,7 +479,7 @@ Block.prototype.sendMessage = function(dir){
messagex
=
this
.
x
+
Block
.
dx
(
dir
);
messagey
=
this
.
y
+
Block
.
dy
(
dir
);
if
(
messagex
>=
0
&&
messagey
>=
0
&&
messagex
<
this
.
game
.
width
&&
messagey
<
this
.
game
.
height
&&
this
.
game
.
board
[
messagex
][
messagey
]
!=
null
)
{
this
.
game
.
board
[
messagex
][
messagey
].
onMessage
((
dir
+
2
)
%
4
);
this
.
game
.
board
[
messagex
][
messagey
].
onMessage
((
(
parseInt
(
dir
)
+
2
)
%
4
)
.
toString
())
;
}
}
Block
.
prototype
.
onMessage
=
function
(
dir
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment