JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://cdn.rawgit.com/danmoop/moople.js---html5-library/master/Examples/Movement/Moople.js"></script>
<title>
  Document</title>

<body>
</body>

JavaScript

window.addEventListener("keypress", keyDown, true);
var game = new moopleGame(800, 800, "canv", {update: update});
game.setColor("#27ae60");

game.loadSprite("http://bit.do/dxg2a", "Cat");
game.loadSprite("http://bit.do/dxg2e", "Doge");

my_Cat = game.addSprite("Cat", "mycat", 0, 0, 100, 100);
my_Doge = game.addSprite("Doge", "mycat", 0, 500, 100, 100);

function update(){
	game.setPos(my_Cat, my_Cat.xcoord+=2, my_Cat.ycoord);
}

function keyDown(e) {
	
}