Hello guys, i want to create a scoreboard with div in babylonjs, can u give me a sample, this is my code:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Babylon.js sample code</title>
<!-- Babylon.js -->
<script src="http://www.babylonjs.com/hand.minified-1.2.js"></script>
<script src="http://www.babylonjs.com/cannon.js"></script>
<script src="http://www.babylonjs.com/oimo.js"></script>
<script src="http://www.babylonjs.com/babylon.js"></script>
<style>
html, body {
overflow: hidden;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
#renderCanvas {
width: 100%;
height: 100%;
touch-action: none;
}
#ammoLabel {
position:absolute;
top:20px;
left : 20px;
color:green;
font-size: 2em;
}
</style>
</head>
<body>
<div id="scoreBoard">Score: 3</div>