91921c24540db7e4301695b0c8b5409d93bc5e88
1 from pmachines
.scene
import Scene
2 from pmachines
.items
.box
import Box
3 from pmachines
.items
.shelf
import Shelf
4 from pmachines
.items
.domino
import Domino
, TargetDomino
5 from pmachines
.items
.basketball
import Basketball
6 from pmachines
.items
.teetertooter
import TeeterTooter
9 class SceneDominoBox(Scene
):
15 return _('Domino and box')
19 self
.items
+= [Box(self
._world
, self
._mouse
_plane
_node
, self
.cb_inst
, self
.current_bottom
, self
.repos
, mass
=5, count
=2)]
20 #self.items += [Shelf(self._world, self._mouse_plane_node, self.cb_inst, self.current_bottom, self.repos, count=9)]
21 self
.items
+= [Shelf(self
._world
, self
._mouse
_plane
_node
, self
.cb_inst
, self
.current_bottom
, self
.repos
, mass
=0, pos
=(-.56, 0, .21))]
22 self
.items
+= [Shelf(self
._world
, self
._mouse
_plane
_node
, self
.cb_inst
, self
.current_bottom
, self
.repos
, mass
=0, pos
=(1.67, 0, .21))]
23 self
.items
+= [Shelf(self
._world
, self
._mouse
_plane
_node
, self
.cb_inst
, self
.current_bottom
, self
.repos
, mass
=0, pos
=(-.56, 0, -1.45))]
24 self
.items
+= [Shelf(self
._world
, self
._mouse
_plane
_node
, self
.cb_inst
, self
.current_bottom
, self
.repos
, mass
=0, pos
=(1.67, 0, -1.45))]
25 self
.items
+= [Shelf(self
._world
, self
._mouse
_plane
_node
, self
.cb_inst
, self
.current_bottom
, self
.repos
, mass
=0, pos
=(3.78, 0, -1.45))]
26 #self.items += [Domino(self._world, self._mouse_plane_node, self.cb_inst, self.current_bottom, self.repos, count=9)]
27 self
.items
+= [TargetDomino(self
._world
, self
._mouse
_plane
_node
, self
.cb_inst
, self
.current_bottom
, self
.repos
, pos
=(-.61, 0, -.94), r
=37, tgt_degrees
=60)]
28 self
.items
+= [TargetDomino(self
._world
, self
._mouse
_plane
_node
, self
.cb_inst
, self
.current_bottom
, self
.repos
, pos
=(-.06, 0, -.89), tgt_degrees
=60)]
29 self
.items
+= [TargetDomino(self
._world
, self
._mouse
_plane
_node
, self
.cb_inst
, self
.current_bottom
, self
.repos
, pos
=(0.91, 0, -.89), tgt_degrees
=60)]
30 self
.items
+= [TargetDomino(self
._world
, self
._mouse
_plane
_node
, self
.cb_inst
, self
.current_bottom
, self
.repos
, pos
=(1.73, 0, -.89), tgt_degrees
=60)]
31 self
.items
+= [TargetDomino(self
._world
, self
._mouse
_plane
_node
, self
.cb_inst
, self
.current_bottom
, self
.repos
, pos
=(2.57, 0, -.89), tgt_degrees
=88)]
32 self
.items
+= [TargetDomino(self
._world
, self
._mouse
_plane
_node
, self
.cb_inst
, self
.current_bottom
, self
.repos
, pos
=(-.61, 0, .73), r
=37, tgt_degrees
=60)]
33 self
.items
+= [TargetDomino(self
._world
, self
._mouse
_plane
_node
, self
.cb_inst
, self
.current_bottom
, self
.repos
, pos
=(-.06, 0, .78), tgt_degrees
=60)]
34 self
.items
+= [TargetDomino(self
._world
, self
._mouse
_plane
_node
, self
.cb_inst
, self
.current_bottom
, self
.repos
, pos
=(0.91, 0, .78), tgt_degrees
=60)]
35 self
.items
+= [TargetDomino(self
._world
, self
._mouse
_plane
_node
, self
.cb_inst
, self
.current_bottom
, self
.repos
, pos
=(1.73, 0, .78), tgt_degrees
=60)]
36 self
.items
+= [TargetDomino(self
._world
, self
._mouse
_plane
_node
, self
.cb_inst
, self
.current_bottom
, self
.repos
, pos
=(2.57, 0, .78), tgt_degrees
=88)]
37 #self.items += [Basketball(self._world, self._mouse_plane_node, self.cb_inst, self.current_bottom, self.repos, count=3)]
38 #self.items += [TeeterTooter(self._world, self._mouse_plane_node, self.cb_inst, self.current_bottom, self.repos, count=3)]
41 txt
= _('Scene: ') + self
.name() + '\n\n'
42 txt
+= _('Goal: at least one domino piece per row must be up\n\n')
43 txt
+= _('keep \5mouse_l\5 pressed to drag an item\n\n'
44 'keep \5mouse_r\5 pressed to rotate an item')