Mercurial > hg > Game > WebGL
comparison Vacuum/resources/title.js @ 0:718974a1a32b
Vacuum
author | <e085737> |
---|---|
date | Tue, 07 Dec 2010 17:31:15 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:718974a1a32b |
---|---|
1 function title_collision(node, sgroot, w, h){ | |
2 var pad = new sgroot.getController() | |
3 | |
4 if(pad.start_isHold()){ | |
5 var back = new sgroot.createSceneGraph3() | |
6 | |
7 var vacuum = new sgroot.createSceneGraph1("BIGCUBE") | |
8 vacuum.xyz[0] = w/2 | |
9 vacuum.xyz[1] = h/2 | |
10 vacuum.set_move_collision(vacuum_move, vacuum_coll) | |
11 | |
12 back.addChild(vacuum) | |
13 add_cubecollision_object(redcube.name, vacuum, w, h, sgroot) | |
14 | |
15 sgroot.setSceneData(vacuum) | |
16 } | |
17 } |