ya2 · news · projects · code · about

json: instructions
[pmachines.git] / pmachines / scenes / scene_domino_box_basketball.py
index 4a577ed1637abf448cdf1ebb196c915274290f1a..ed189c37dd0c67ee65fe9b979f9f443f99e2d6ea 100644 (file)
@@ -5,9 +5,9 @@ class SceneDominoBoxBasketball(Scene):
 
     filename = 'assets/scenes/domino_box_basketball.json'
 
-    @staticmethod
-    def name():
-        return _('Domino, box and basket ball')
+    @staticmethod
+    def name():
+        return _('Domino, box and basket ball')
 
     # def _set_items(self):
     #     super()._set_items()
@@ -45,12 +45,12 @@ class SceneDominoBoxBasketball(Scene):
     #     self._set_test_item('drag_start_3', (-.28, -.85))
     #     self._set_test_item('drag_stop_4', (-.42, -.85))
 
-    def _instr_txt(self):
-        txt = _('Scene: ') + self.name() + '\n\n'
-        txt += _('Goal: every domino piece must be hit\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: every domino piece must be hit\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