Commit graph

7176 commits

Author SHA1 Message Date
photonstorm
3b74721bdb Alpha Release tag. 2017-07-31 14:41:58 +01:00
photonstorm
ef95209c32 Dev build now builds to examples/dev.js.
Updated dist build.
2017-07-31 14:23:28 +01:00
photonstorm
41b9e7d655 Delta history populated with _target value. resetDelta uses smaller value (target or previous dt). Step only resets dt if > target. 2017-07-31 11:49:18 +01:00
photonstorm
1a2520aa1b Removed matter.js build file for now. 2017-07-31 11:48:43 +01:00
photonstorm
073df815fa Added dist build config. 2017-07-31 11:48:34 +01:00
Richard Davey
0f553c275f Added Camera.setScroll 2017-07-29 02:56:45 +01:00
Richard Davey
fae3223000 Only consider inputEnabled cameras and removed some old jsdocs 2017-07-29 02:52:12 +01:00
Richard Davey
ed59579220 Pointer now records which camera it used and all events now carry a camera property 2017-07-29 01:55:17 +01:00
Richard Davey
cbe54a1c58 Added getCameraBelowPointer to the Camera Manager 2017-07-29 01:54:44 +01:00
Richard Davey
e9d7940e74 HitTest only tests the camera below the pointer and there is no benefit polling every single camera 2017-07-29 01:54:17 +01:00
Richard Davey
8980616962 Input Manager now uses Camera Manager directly 2017-07-29 01:53:49 +01:00
Richard Davey
3e3599d03f Added Camera.setName method for chaining. 2017-07-29 01:53:31 +01:00
Richard Davey
08ce1c37da Fixed HitTest issue with scrollFactor 2017-07-29 01:05:46 +01:00
photonstorm
db113b58da Exposed the camera responsible for the input event. 2017-07-28 18:22:57 +01:00
photonstorm
c8a1dc32cc Updated drag event. 2017-07-28 18:00:04 +01:00
photonstorm
486e80f0a9 Added Camera.setRotation method for chaining. 2017-07-28 17:59:50 +01:00
photonstorm
a4b197b71d Added Camera.setZoom method for chaining. 2017-07-28 17:53:19 +01:00
photonstorm
38171795f5 Maximum FPS rate removed from TimeStep. When the delta resets it now resets to zero. Target FPS used as limiter during recovery from browser raf idle period. 2017-07-28 15:53:28 +01:00
photonstorm
9e10fca98d Added Touch support. Doesn't handle multi-touch yet, but single touch works perfectly with all current input tests. 2017-07-28 03:28:10 +01:00
photonstorm
7cc5a61d50 Zone now uses x/y as center for drop zone shapes. 2017-07-28 02:22:41 +01:00
photonstorm
e20d4b1156 Now possible to clear interactive objects. 2017-07-28 01:17:18 +01:00
photonstorm
d2f08f0818 Added 'dropped' property to the DragEnd event. 2017-07-28 00:46:37 +01:00
photonstorm
a2d1f86079 Added DragEnter, DragOver and DragLeave events for drop zones. 2017-07-28 00:29:22 +01:00
Felipe Alfonso
1c5da095f6 Fixed text rendering state leakage on webgl 2017-07-27 15:26:12 -04:00
photonstorm
98f75599a5 Added Drop Event and handler for it. 2017-07-27 18:24:04 +01:00
photonstorm
b71972fac5 Reverted dragX/Y calc. 2017-07-27 17:56:48 +01:00
photonstorm
228ca47274 Updating drag values. 2017-07-27 17:40:22 +01:00
photonstorm
c152156da2 Zone now working again and useful for interactive hit areas not bound to Sprites or other GOs. 2017-07-27 17:40:15 +01:00
photonstorm
8e8d43dcf1 Added setName method. 2017-07-27 17:39:46 +01:00
photonstorm
80aa157a11 Falls back to GO width / height if no frame. 2017-07-27 17:38:31 +01:00
photonstorm
d5ed070fe6 Added missing reference in onDrag. 2017-07-27 14:33:03 +01:00
photonstorm
d6abc26ba7 Fixed bug in FloatBetween. 2017-07-27 14:32:47 +01:00
photonstorm
619caae3c3 Added new drag callbacks to allowed types list. 2017-07-27 14:23:41 +01:00
photonstorm
5fb219a800 GameObjects that cannot render are not considered for input. 2017-07-27 14:23:30 +01:00
photonstorm
bd2e25e791 Swapped back to using non-class IO. 2017-07-27 14:23:14 +01:00
photonstorm
a1dc398a8e Added callback hooks and removed duplicated vars. 2017-07-27 14:22:58 +01:00
photonstorm
68270e7eee Swapped back from being a class to just being an object. No need for class overhead here. 2017-07-27 14:22:44 +01:00
photonstorm
b2713fa017 Added GameObject.willRender method. 2017-07-27 14:22:05 +01:00
Richard Davey
a9b00d36d6 Merge pull request #3035 from Antriel/master
Unified usage of "framerate" into "frameRate".
2017-07-27 14:07:42 +01:00
Antriel
08c54df892 Unified usage of "framerate" into "frameRate". 2017-07-27 09:22:52 +02:00
Richard Davey
a8a642bc29 Fixed assignments 2017-07-27 03:59:45 +01:00
Richard Davey
5cc32c4804 Fixed splice bug. 2017-07-27 03:50:21 +01:00
Richard Davey
795fa5f5cb Merging in the draggable input handler 2017-07-27 03:40:58 +01:00
Richard Davey
848ba127ab Exposed the alpha corner values and implemented into the Sprite Batch. 2017-07-25 22:28:02 +01:00
Richard Davey
aac61e5b57 Removed button property from event, get it from the Pointer instead 2017-07-25 12:34:06 +01:00
Richard Davey
f918942cfc Pointer has methods that expose the state of the buttons 2017-07-25 12:33:53 +01:00
Richard Davey
87edd6cb94 Added option to disable context menu
Added to both the game config and as a function in the Mouse Manager.
2017-07-25 12:33:37 +01:00
Richard Davey
1b4e53d06f Exposed buttons event property. 2017-07-25 04:53:23 +01:00
Richard Davey
e17118c1aa Tidying up after refactor.
Everything working properly and faster than before. Swapped InteractiveObject for a class to help internal optimisation.
2017-07-25 04:10:50 +01:00
Richard Davey
320a0b893d Preparing to normalize game object data 2017-07-25 02:47:26 +01:00