form server
This commit is contained in:
		
							parent
							
								
									cbd278177a
								
							
						
					
					
						commit
						d7ea7f3596
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -85,6 +85,9 @@ class Map {
 | 
				
			||||||
  getKeystroke() {
 | 
					  getKeystroke() {
 | 
				
			||||||
    var self = this;
 | 
					    var self = this;
 | 
				
			||||||
    _listener = function (event) {
 | 
					    _listener = function (event) {
 | 
				
			||||||
 | 
					    if (["Space", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"].indexOf(event.code) > -1) {
 | 
				
			||||||
 | 
					        event.preventDefault();
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
      var dontLoop = false;
 | 
					      var dontLoop = false;
 | 
				
			||||||
      if (event.key === "h" || event.key === "a" || event.key === "ArrowLeft") {
 | 
					      if (event.key === "h" || event.key === "a" || event.key === "ArrowLeft") {
 | 
				
			||||||
        self.playerDir = "l";
 | 
					        self.playerDir = "l";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -88,7 +88,7 @@
 | 
				
			||||||
    <hr />
 | 
					    <hr />
 | 
				
			||||||
    <div style="padding: 20px" class="info">
 | 
					    <div style="padding: 20px" class="info">
 | 
				
			||||||
      <h4>How To Play:</h4>
 | 
					      <h4>How To Play:</h4>
 | 
				
			||||||
      You are an old man working in a Sokobanya, a Russian bath house. You need
 | 
					      You are an old man working in Sokobanya, a luxury Russian bath house. You need
 | 
				
			||||||
      to move pieces of coal to the stoves in order to keep the saunas hot. Try
 | 
					      to move pieces of coal to the stoves in order to keep the saunas hot. Try
 | 
				
			||||||
      to move all pieces of coal in the shortest amount of moves possible!
 | 
					      to move all pieces of coal in the shortest amount of moves possible!
 | 
				
			||||||
      <h4>Controls:</h4>
 | 
					      <h4>Controls:</h4>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue