Explorar o código

Added missing aquire_input_focus call in snake tutorial (#230)

Hana %!s(int64=3) %!d(string=hai) anos
pai
achega
eb676729c3
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      docs/en/tutorials/snake.md

+ 2 - 0
docs/en/tutorials/snake.md

@@ -226,6 +226,8 @@ A proper solution to this problem is to store the input in a queue and pull entr
 
 ```lua
 function init(self)
+    msg.post(".", "acquire_input_focus")
+
     self.segments = {
         {x = 7, y = 24},
         {x = 8, y = 24},