ya2 · news · projects · code · about

removed python scenes
[pmachines.git] / pmachines / scenes / scene_box.py
diff --git a/pmachines/scenes/scene_box.py b/pmachines/scenes/scene_box.py
deleted file mode 100644 (file)
index a2ee10b..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-from pmachines.scene import Scene
-
-
-class SceneBox(Scene):
-
-    filename = 'assets/scenes/box.json'
-
-    # @staticmethod
-    # def name():
-    #     return _('Box')
-
-    # def _set_items(self):
-    #     super()._set_items()
-        # self.items += [Box(self._world, self._mouse_plane_node, self.cb_inst, self.current_bottom, self.repos, count=3)]
-        #self.items += [Shelf(self._world, self._mouse_plane_node, self.cb_inst, self.current_bottom, self.repos, count=3)]
-        # self.items += [Shelf(self._world, self._mouse_plane_node, self.cb_inst, self.current_bottom, self.repos, mass=0, pos=(.46, 0, -3.95))]
-        # self.items += [Shelf(self._world, self._mouse_plane_node, self.cb_inst, self.current_bottom, self.repos, mass=0, pos=(4.43, 0, -3.95))]
-        # self.items += [Shelf(self._world, self._mouse_plane_node, self.cb_inst, self.current_bottom, self.repos, mass=0, pos=(-1.29, 0, .26), r=28.45)]
-        # self.items += [Shelf(self._world, self._mouse_plane_node, self.cb_inst, self.current_bottom, self.repos, mass=0, pos=(2.15, 0, -1.49), r=28.45)]
-        # self.items += [Box(self._world, self._mouse_plane_node, self.cb_inst, self.current_bottom, self.repos, pos=(-1.55, 0, 1.23), friction=.4)]
-        # self.items += [Box(self._world, self._mouse_plane_node, self.cb_inst, self.current_bottom, self.repos, pos=(4.38, 0, -3.35))]
-        # self.items[-1].set_strategy(HitStrategy(self.items[-2], self.items[-1].node, self.items[-1]._world))
-        #self.items += [Domino(self._world, self._mouse_plane_node, self.cb_inst, self.current_bottom, self.repos, count=2)]
-        #self.items += [TargetDomino(self._world, self._mouse_plane_node, self.cb_inst, self.current_bottom, self.repos, pos=(-1.14, 0, -.04), tgt_degrees=60)]
-        #self.items += [TargetDomino(self._world, self._mouse_plane_node, self.cb_inst, self.current_bottom, self.repos, pos=(-.49, 0, -.04), tgt_degrees=60)]
-        #self.items += [TargetDomino(self._world, self._mouse_plane_node, self.cb_inst, self.current_bottom, self.repos, pos=(0.94, 0, -.04), tgt_degrees=60)]
-        #self.items += [TargetDomino(self._world, self._mouse_plane_node, self.cb_inst, self.current_bottom, self.repos, pos=(1.55, 0, -.04), tgt_degrees=60)]
-        #self.items += [TargetDomino(self._world, self._mouse_plane_node, self.cb_inst, self.current_bottom, self.repos, pos=(2.09, 0, -.04), tgt_degrees=88)]
-        #self.items += [Basketball(self._world, self._mouse_plane_node, self.cb_inst, self.current_bottom, self.repos, count=3)]
-        #self.items += [TeeterTooter(self._world, self._mouse_plane_node, self.cb_inst, self.current_bottom, self.repos, count=3)]
-
-    # def _define_test_items(self):
-    #     self._pos_mgr.register('drag_start_0', (65, 60))
-    #     self._set_test_item('drag_stop_0', (.42, -3.29))
-    #     self._set_test_item('drag_stop_1', (.42, -2.18))
-    #     self._set_test_item('drag_stop_2', (.35, -1.06))
-
-    # def _instr_txt(self):
-    #     txt = _('Scene: ') + self.name() + '\n\n'
-    #     txt += _('Goal: the left box must hit the right box\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