mirror of
https://github.com/amark/gun.git
synced 2025-07-02 02:42:34 +00:00
gun slinger!
This commit is contained in:
parent
81ad933994
commit
d682a119d7
@ -123,7 +123,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
game.fire = function(){
|
game.fire = function(){
|
||||||
alert("bang!");
|
console.log('bang', me);
|
||||||
if(!me.started || me.fired){ return }
|
if(!me.started || me.fired){ return }
|
||||||
me.fired = (+ new Date());
|
me.fired = (+ new Date());
|
||||||
if(me.fired < me.scheduled){ // DQ
|
if(me.fired < me.scheduled){ // DQ
|
||||||
@ -132,6 +132,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
gun.path('dqed').get(function(yes){
|
gun.path('dqed').get(function(yes){
|
||||||
|
alert("DQed! " + yes);
|
||||||
if(yes){ return }
|
if(yes){ return }
|
||||||
game.$duel.css({background: 'gold'}).find('h2').text("STOP!");
|
game.$duel.css({background: 'gold'}).find('h2').text("STOP!");
|
||||||
gun.path('sling').set(me.player);
|
gun.path('sling').set(me.player);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user