create-okona-game 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,13 +1,11 @@
1
1
  {
2
2
  "name": "create-okona-game",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Scaffold a phone-controlled multiplayer HTML5 game for Okona: lobby, join code, six seats, and a game.js to make yours.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://okonaonline.com/developers/docs.html#html5",
7
- "repository": {
8
- "type": "git",
9
- "url": "https://github.com/earthcrosser/okona-platform",
10
- "directory": "create-okona-game"
7
+ "bugs": {
8
+ "email": "support@okonaonline.com"
11
9
  },
12
10
  "keywords": ["okona", "create", "scaffold", "game", "html5", "phone-controller", "multiplayer", "party-game"],
13
11
  "type": "module",
@@ -132,7 +132,7 @@
132
132
  function frame(now) {
133
133
  var dt = Math.min(0.05, (now - last) / 1000);
134
134
  last = now;
135
- var pads = Okona.pads(); // once per frame — justPressed() depends on it
135
+ var pads = Okona.pads(); // exactly once per frame — a second call (or Okona.pad(i)) resets justPressed()
136
136
  for (var i = 0; i < 6; i++) if (pads[i].connected) players[i].joined = true;
137
137
 
138
138
  var sx = canvas.width / W, sy = canvas.height / H;