<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mantra.js Gallery Page - boomerang</title>
<script src="https://yantra.gg/mantra.js"></script>
<script src="https://yantra.gg/worlds.mantra.js"></script>
</head>
<body>
<script>
let game = new MANTRA.Game({
graphics: ['css'],
plugins: ['Player', 'Key', 'Block', 'Collectable', 'Teleporter', 'Gamepad'],
width: 400,
height: 300
});
game.use('Boomerang');
game.start(function () {
game.config.mouseActionButton = 'LEFT';
game.config.mouseMovementButton = 'RIGHT';
game.reset();
game.setBackground('#000000');
game.make().Player().createEntity();
for (let i = 0; i < 10; i++) {
let randomRadial = game.radialSpread(0, 0, 100, 10, i);
game.make().Key({
position: randomRadial
}).createEntity();
}
</script>
</body>
</html>