Simple JavaScript Game
This example shows how a simple game can be written in JavaScript.
tera.html
<html>
<head>
<title>
Defender
</title>
<link href="style.css" rel="stylesheet" type="text/css">
<script src="tera.js" type="text/javascript">
</script>
<script src="tera-ship.js" type="text/javascript">
</script>
<script src="tera-init.js" type="text/javascript">
</script>
</head>
<body>
<div class="heading">
Defender
</div>
<div>
This is the basis of a Defender like game...
</div>
<div>
Use the A and Z keys to change height, SPACE to change direction,
# to accelerate and the Return/ Enter key to fire.
</div>
<div>
Why not have a go at completing it :)
</div>
<script type="text/javascript">
init();
</script>
</body>
</html>
© Andrew Scott 2006 -
2024,
All Rights Reserved