Dr Andrew Scott G7VAV

My photo
 
March 2024
Mo Tu We Th Fr Sa Su
26 27 28 29 1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
1 2 3 4 5 6 7


Simple JavaScript Game
This example shows how a simple game can be written in JavaScript.
Image of game

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>


for client 3.95.39.127
© Andrew Scott 2006 - 2024,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/