motion-game 1.1.12 → 1.1.13

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3369fe8e3655e3ce26151581634000136987dd1a
4
- data.tar.gz: 24c2861bf5c3fd6d4e33127aefcce69aa8d968fe
3
+ metadata.gz: da80c1e5b97cca281ce018bc893ddec7f9e47c4a
4
+ data.tar.gz: f164559e593ded11f3caffcc57d2e7acac204f1c
5
5
  SHA512:
6
- metadata.gz: 9e6cb41f0ed6ca0c81999095de6b302121503e89761f5fd828933ffe7837a1ebdfa44f9d1b582682798b6a32a7987ab3f0c71774ec4c43efd93d9ef451e590a9
7
- data.tar.gz: dc713bb0d0415343afa0236d27e681ec4500d35d081f1556ed2e5ca54213bea8698661c336bf5296bd113d3d8e8c899032656054fc730fdafde1a09ffb8fa4d7
6
+ metadata.gz: 3c3b3ca47295053a53c5413151e93aadb3a230e179a24ab954412aa5ed52d6daa94ad4b133d28b9dc2bea75966191d208e4013bb75142e2dec5d248cb7e36ac5
7
+ data.tar.gz: ef5b9b9c42555d62f96dad465b63de004f63275712e9a46393ed4ba6a4d96d3c8cf4be47c7015e3c740469583797d1ea335ef46546484cea82b8ed88ed2a86fd
data/README.md CHANGED
@@ -95,7 +95,7 @@ $ rake android:device
95
95
 
96
96
  ### API reference
97
97
 
98
- The whole framework API is documented. The [API reference](http://www.rubydoc.info/gems/motion-game/1.1.12) is available online.
98
+ The whole framework API is documented. The [API reference](http://www.rubydoc.info/gems/motion-game/) is available online.
99
99
 
100
100
  You can also build the API reference locally:
101
101
 
Binary file
Binary file
@@ -525,6 +525,9 @@ class Events::Touch < Object
525
525
  # @return [Point] the current location of the touch event.
526
526
  attr_reader :location
527
527
 
528
+ # @return [Point] the start_location of the touch event.
529
+ attr_reader :start_location
530
+
528
531
  end
529
532
 
530
533
  class File
@@ -819,6 +822,9 @@ class Node < Object
819
822
  # @return [self] the receiver.
820
823
  def unschedule(key); end
821
824
 
825
+ # @return [Integer] the number of running actions for the node.
826
+ def number_of_running_actions; end
827
+
822
828
  end
823
829
 
824
830
  class Parallax < Node
@@ -1141,11 +1147,21 @@ class Point < Object
1141
1147
  # @return [Point] A new Point object.
1142
1148
  def -(point); end
1143
1149
 
1150
+ # check if the coordinates of the receiver and the coordinates of the given
1151
+ # point object is equal.
1152
+ # @param point [Point] A coordinate.
1153
+ # @return [Boolean] true if the two points contain the same X and Y values.
1154
+ def equal?(point); end
1155
+
1144
1156
  # Calculates the distance between two points.
1145
1157
  # @param point [Point] A point to calculate the distance.
1146
1158
  # @return [Float] the distance.
1147
1159
  def distance(point); end
1148
1160
 
1161
+ # Calculates the angle in radians between this vector and the x-axis.
1162
+ # @return [Float] the angle.
1163
+ def angle; end
1164
+
1149
1165
  end
1150
1166
  # A size represents the dimensions of width and height of an object.
1151
1167
  # When calling a method that expects a +Size+ object, a 2-element +Array+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-game
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.12
4
+ version: 1.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - HipByte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-31 00:00:00.000000000 Z
11
+ date: 2017-02-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: motion-game allows you to write cross-platform native mobile games in
14
14
  Ruby.