You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
393 B
20 lines
393 B
require('../../sass/board/muncher.scss');
|
|
|
|
var React = require('react');
|
|
|
|
module.exports = React.createClass({
|
|
getInitialState() {
|
|
return {
|
|
x: 0,
|
|
y: 0
|
|
};
|
|
},
|
|
|
|
render() {
|
|
var classname = ['muncher', 'x' + this.state.x, 'y' + this.state.y];
|
|
|
|
return (
|
|
<div className={classname.join(' ')}></div>
|
|
);
|
|
}
|
|
});
|
|
|