| 
									
										
										
										
											2024-12-17 12:44:19 +01:00
										 |  |  | <!DOCTYPE html> | 
					
						
							|  |  |  | <html lang="en"> | 
					
						
							|  |  |  | <head> | 
					
						
							|  |  |  |   <meta charset="UTF-8"> | 
					
						
							|  |  |  |   <meta name="viewport" content="width=device-width, initial-scale=1.0"> | 
					
						
							|  |  |  |   <title>Asteroid Shooter</title> | 
					
						
							|  |  |  |   <link rel="stylesheet" href="style.css"> | 
					
						
							|  |  |  | </head> | 
					
						
							|  |  |  | <body> | 
					
						
							|  |  |  |   <canvas id="gameCanvas"></canvas> | 
					
						
							| 
									
										
										
										
											2024-12-17 14:42:17 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |   <!-- Virtual buttons for mobile --> | 
					
						
							|  |  |  |   <div class="controls"> | 
					
						
							|  |  |  |     <button id="leftBtn" class="control-btn" onmousedown="btnMoveLeft(true)" onmouseup="btnMoveLeft(false)">Left</button> | 
					
						
							|  |  |  |     <button id="shootBtn" class="control-btn" onclick="btnShoot()">Shoot</button> | 
					
						
							|  |  |  |     <button id="rightBtn" class="control-btn" onmousedown="btnMoveRight(true)" onmouseup="btnMoveRight(false)">Right</button> | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-12-17 12:44:19 +01:00
										 |  |  |   <script src="game.js"></script> | 
					
						
							|  |  |  | </body> | 
					
						
							|  |  |  | </html> |