Mercurial > hg > Game > WebGL
diff Vacuum/resources/gameover.js @ 0:718974a1a32b
Vacuum
author | <e085737> |
---|---|
date | Tue, 07 Dec 2010 17:31:15 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Vacuum/resources/gameover.js Tue Dec 07 17:31:15 2010 +0900 @@ -0,0 +1,28 @@ +gameover_scene = function(w, h, node, sgroot){ + + var over = new sgroot.createSceneGraph1("gameover") + over.xyz[0] = w/2 + over.xyz[1] = h/2 + over.set_move_collision(gameover_idle,gameover_collision) + node.addChild(over) +} + + +gameover_idle = function(node, sgroot, screen_w, screen_h){ + +} + + +gameover_collision = function(node, sgroot, screen_w, screen_h){ + + var pad = new sgroot.getController() + + if(pad.start_isHold()){ + + var title = new sgroot.createSceneGraph1("TITLE") + title.xyz[0] = screen_w/2 + title.xyz[1] = screen_h/2 + title.set_move_collision(no_move_idle, title_collision) + sgroot.setSceneData(title) + } +}