no magic numbers
This commit is contained in:
		
							parent
							
								
									83c34d496e
								
							
						
					
					
						commit
						784d63a780
					
				
					 2 changed files with 16 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -11,7 +11,6 @@
 | 
			
		|||
    }
 | 
			
		||||
    #player {
 | 
			
		||||
      position: absolute;
 | 
			
		||||
      bottom: 10%;
 | 
			
		||||
    }
 | 
			
		||||
    #enemy {
 | 
			
		||||
      position: absolute;
 | 
			
		||||
| 
						 | 
				
			
			@ -28,7 +27,7 @@
 | 
			
		|||
  </style>
 | 
			
		||||
</head>
 | 
			
		||||
 | 
			
		||||
<body onload="gameLoop();">
 | 
			
		||||
<body onload="init();">
 | 
			
		||||
  <div id="enemy">3</div>
 | 
			
		||||
  <div id="player"><</div>
 | 
			
		||||
  <div id="pewpew"></div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue