opal-phaser 0.1.2 → 0.1.3

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: 078132e5c5155a244152bb228be5b54d461d4957
4
- data.tar.gz: 485e278e98bac952f02e278725c435b755402c26
3
+ metadata.gz: a232d359c2f70f16e05b890b2dbdeec290b3150a
4
+ data.tar.gz: 25a2978ee8de1acbc76743441e03fc31f7d26396
5
5
  SHA512:
6
- metadata.gz: ef8532dd0e4dcc2da01a4d84c5c282a234c18a626eee3e02327098565cb7b5f314f67090fd57019e99baa172a0613f48d0e44e087ab93abdac745e3fe9231852
7
- data.tar.gz: b28b8d4ee2e3e50c2066a8eb71c3ab5f4d79c10f899320bbc47177010bf756b6b0760d48db8733d04f2df0647f6e33eb03a25bec17af260fa2bcc773c6765898
6
+ metadata.gz: f5a78740983822466e131e0e2b50388536249e1ccd0ec79369d59fbacb6a0cf3f5e44a3d7920de24d22e20ac01ca66f2b8a9b02607ce07bd700ee5a24d451b28
7
+ data.tar.gz: ad26640e5b906806cc2ba7b03177dcc6a74836d2d119de9be4d38a45c013ff178e9a676c496766416e81504322bf254314c12bb4a9b6111bdd6e4bbc30f3599f
data/demo/index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <meta charset= "utf-8" />
5
5
  <title>Opal-Phaser</title>
6
6
  <link rel="stylesheet" href="style.css">
7
- <script src="//cdnjs.cloudflare.com/ajax/libs/phaser/2.2.1/phaser.js"></script>
7
+ <script src="//cdn.jsdelivr.net/phaser/2.2.2/phaser.js"></script>
8
8
  <script src="/assets/main.js"></script>
9
9
  </head>
10
10
 
@@ -5,8 +5,10 @@ require 'opal/phaser/core/physics'
5
5
  require 'opal/phaser/core/group'
6
6
  require 'opal/phaser/core/animation'
7
7
  require 'opal/phaser/core/animation_manager'
8
+ require 'opal/phaser/core/anchor'
8
9
  require 'opal/phaser/core/sprite'
9
10
  require 'opal/phaser/core/image'
11
+ require 'opal/phaser/core/tween'
10
12
  require 'opal/phaser/core/text'
11
13
  require 'opal/phaser/core/cache'
12
14
  require 'opal/phaser/core/world'
@@ -0,0 +1,7 @@
1
+ module Phaser
2
+ class Anchor
3
+ include Native
4
+
5
+ alias_native :set_to, :setTo
6
+ end
7
+ end
@@ -5,6 +5,7 @@ module Phaser
5
5
  alias_native :sprite, :sprite, as: Sprite
6
6
  alias_native :group, :group, as: Group
7
7
  alias_native :text, :text, as: Text
8
+ alias_native :tween, :tween, as: Tween
8
9
  alias_native :tile_sprite, :tileSprite
9
10
  end
10
11
  end
@@ -4,13 +4,14 @@ module Phaser
4
4
 
5
5
  class Arcade
6
6
  include Native
7
-
7
+
8
8
  alias_native :enable
9
9
  alias_native :collide
10
10
  alias_native :overlap
11
11
  alias_native :distance_to_pointer, :distanceToPointer
12
12
  alias_native :move_to_pointer, :moveToPointer
13
-
13
+ alias_native :check_collision, :checkCollision
14
+
14
15
  class Body
15
16
  end
16
17
  end
@@ -22,6 +23,7 @@ module Phaser
22
23
 
23
24
  alias_native :start_system, :startSystem
24
25
  alias_native :arcade, :arcade, as: Arcade
26
+ alias_native :enable
25
27
 
26
28
  end
27
29
  end
@@ -2,12 +2,11 @@ module Phaser
2
2
  class Sprite
3
3
  include Native
4
4
 
5
- alias_native :anchor
6
5
  alias_native :events
7
6
  alias_native :scale
8
7
  alias_native :body
9
8
  alias_native :bounce
10
-
9
+
11
10
  alias_native :kill
12
11
 
13
12
  alias_native :visible=
@@ -22,11 +21,12 @@ module Phaser
22
21
  alias_native :y
23
22
  alias_native :y=
24
23
  alias_native :width
25
-
24
+
26
25
  def input_enabled=(bool)
27
26
  `#@native.inputEnabled = bool`
28
27
  end
29
28
 
29
+ alias_native :anchor, :anchor, as: Anchor
30
30
  alias_native :animations, :animations, as: AnimationManager
31
31
  end
32
32
  end
@@ -1,4 +1,8 @@
1
1
  module Phaser
2
- class Tween < `Phaser.Tween`
2
+ class Tween
3
+ include Native
4
+
5
+ alias_native :to
6
+ alias_native :start
3
7
  end
4
8
  end
@@ -1,5 +1,5 @@
1
1
  module Opal
2
2
  module Phaser
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
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.2
4
+ version: 0.1.3
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-14 00:00:00.000000000 Z
11
+ date: 2015-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal
@@ -80,6 +80,7 @@ files:
80
80
  - lib/opal-phaser.rb
81
81
  - lib/opal/phaser.rb
82
82
  - lib/opal/phaser/core.rb
83
+ - lib/opal/phaser/core/anchor.rb
83
84
  - lib/opal/phaser/core/animation.rb
84
85
  - lib/opal/phaser/core/animation_manager.rb
85
86
  - lib/opal/phaser/core/cache.rb