ya2 · news · projects · code · about

json: instructions
[pmachines.git] / pmachines / scenes / scene_basketball.py
index a51e0622867860dc8d919d4d0fb167f891468168..dbea5f6dbf39e6e1c08e9d241c3fcb5589ce7b91 100644 (file)
@@ -5,9 +5,9 @@ class SceneBasketBall(Scene):
 
     filename = 'assets/scenes/basketball.json'
 
-    @staticmethod
-    def name():
-        return _('Basket ball')
+    @staticmethod
+    def name():
+        return _('Basket ball')
 
     # def _set_items(self):
     #     super()._set_items()
@@ -50,12 +50,12 @@ class SceneBasketBall(Scene):
     #     self._set_test_item('drag_stop_0', (-.42, 1.03))
     #     self._set_test_item('drag_stop_1', (-4.19, 4.66))
 
-    def _instr_txt(self):
-        txt = _('Scene: ') + self.name() + '\n\n'
-        txt += _('Goal: you must hit every domino piece\n\n')
-        txt += _('keep \5mouse_l\5 pressed to drag an item\n\n'
-                'keep \5mouse_r\5 pressed to rotate an item')
-        return txt
+    def _instr_txt(self):
+        txt = _('Scene: ') + self.name() + '\n\n'
+        txt += _('Goal: you must hit every domino piece\n\n')
+        txt += _('keep \5mouse_l\5 pressed to drag an item\n\n'
+                'keep \5mouse_r\5 pressed to rotate an item')
+        return txt
 
     # def _win_condition(self):
     #     return all(itm.strategy.win_condition() for itm in self.items) and not self._paused