COS3712 ASSIGNMENT 2
READY TO SUBMIT SOLUTIONS
, PUT IN HTML FILE(index.html)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Simple Village</title>
<style>
body {
margin: 0;
}
canvas {
display: block;
}
#controls {
position: absolute;
top: 10px;
left: 10px;
z-index: 1;
}
</style>
</head>
<body>
<div id="controls">
<button id="toggleRotation">Toggle Rotation</button>
<button id="toggleDirection">Toggle Rotation
Direction</button>
<input type="range" id="rotationSpeed" min="0.1" max="2"
step="0.1" value="1">
READY TO SUBMIT SOLUTIONS
, PUT IN HTML FILE(index.html)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Simple Village</title>
<style>
body {
margin: 0;
}
canvas {
display: block;
}
#controls {
position: absolute;
top: 10px;
left: 10px;
z-index: 1;
}
</style>
</head>
<body>
<div id="controls">
<button id="toggleRotation">Toggle Rotation</button>
<button id="toggleDirection">Toggle Rotation
Direction</button>
<input type="range" id="rotationSpeed" min="0.1" max="2"
step="0.1" value="1">