add fixture autofire
This commit is contained in:
parent
d9e8e217c6
commit
8e0c4b02e4
9 changed files with 40 additions and 8 deletions
|
@ -15,7 +15,7 @@ class Player {
|
|||
let packet = {};
|
||||
|
||||
packet.thrust = ['w', 'a', 'd', 's'].map(k => +input.keys.held[k] || 0);
|
||||
packet.fire = [1, 1, 3].map(k => +input.mouse.pressed[k] || 0);
|
||||
packet.fire = [1, 1, 3].map(k => +input.mouse.held[k] || 0);
|
||||
packet.aim = [
|
||||
+input.mouse.wx.toFixed(2),
|
||||
+input.mouse.wy.toFixed(2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue