opal-phaser 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c8db445335b009eb04258d22cd1ccf95061ed935
4
- data.tar.gz: 55aec3d59d709ec6a0376567fa86094d7bd3e1ef
3
+ metadata.gz: 078132e5c5155a244152bb228be5b54d461d4957
4
+ data.tar.gz: 485e278e98bac952f02e278725c435b755402c26
5
5
  SHA512:
6
- metadata.gz: fe1aaa43aa0c36b90f553ad3c96ca2a1c5410da370406f01d616e6f4b29d5da821222e0e24fccddfe627a1cff84f04c3a3d88a868dc239bb5ef024d1b788c505
7
- data.tar.gz: 654ee75749dda21b55097805740f2d33838d093b43d0379101024ab0a852f6a64c72a8a9eed91bc29bce94924be0bae806e8a21e478768c2d23653e8a827e06a
6
+ metadata.gz: ef8532dd0e4dcc2da01a4d84c5c282a234c18a626eee3e02327098565cb7b5f314f67090fd57019e99baa172a0613f48d0e44e087ab93abdac745e3fe9231852
7
+ data.tar.gz: b28b8d4ee2e3e50c2066a8eb71c3ab5f4d79c10f899320bbc47177010bf756b6b0760d48db8733d04f2df0647f6e33eb03a25bec17af260fa2bcc773c6765898
@@ -9,5 +9,6 @@ require 'opal/phaser/core/sprite'
9
9
  require 'opal/phaser/core/image'
10
10
  require 'opal/phaser/core/text'
11
11
  require 'opal/phaser/core/cache'
12
+ require 'opal/phaser/core/world'
12
13
  require 'opal/phaser/core/game_object_factory'
13
14
  require 'opal/phaser/core/game'
@@ -37,7 +37,7 @@ module Phaser
37
37
  alias_native :add, :add, as: GameObjectFactory
38
38
 
39
39
  alias_native :load
40
- alias_native :world
40
+ alias_native :world, :world, as: World
41
41
  alias_native :stage
42
42
  alias_native :physics, :physics, as: Physics
43
43
  alias_native :debug
@@ -3,6 +3,14 @@ module Phaser
3
3
  include Native
4
4
 
5
5
  class Arcade
6
+ include Native
7
+
8
+ alias_native :enable
9
+ alias_native :collide
10
+ alias_native :overlap
11
+ alias_native :distance_to_pointer, :distanceToPointer
12
+ alias_native :move_to_pointer, :moveToPointer
13
+
6
14
  class Body
7
15
  end
8
16
  end
@@ -13,7 +21,7 @@ module Phaser
13
21
  BOX2D = `Phaser.Physics.BOX2D`
14
22
 
15
23
  alias_native :start_system, :startSystem
16
- alias_native :arcade
24
+ alias_native :arcade, :arcade, as: Arcade
17
25
 
18
26
  end
19
27
  end
@@ -0,0 +1,11 @@
1
+ module Phaser
2
+ class World
3
+ include Native
4
+
5
+ alias_native :width
6
+ alias_native :height
7
+
8
+ alias_native :x_center, :centerX
9
+ alias_native :y_center, :centerY
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  module Opal
2
2
  module Phaser
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal-phaser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Plymale
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-13 00:00:00.000000000 Z
11
+ date: 2015-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal
@@ -93,6 +93,7 @@ files:
93
93
  - lib/opal/phaser/core/state.rb
94
94
  - lib/opal/phaser/core/text.rb
95
95
  - lib/opal/phaser/core/tween.rb
96
+ - lib/opal/phaser/core/world.rb
96
97
  - lib/opal/phaser/version.rb
97
98
  - opal-phaser.gemspec
98
99
  homepage: http://github.com/orbitalimpact/opal-phaser