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 +4 -4
- data/demo/index.html +1 -1
- data/lib/opal/phaser/core.rb +2 -0
- data/lib/opal/phaser/core/anchor.rb +7 -0
- data/lib/opal/phaser/core/game_object_factory.rb +1 -0
- data/lib/opal/phaser/core/physics.rb +4 -2
- data/lib/opal/phaser/core/sprite.rb +3 -3
- data/lib/opal/phaser/core/tween.rb +5 -1
- data/lib/opal/phaser/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a232d359c2f70f16e05b890b2dbdeec290b3150a
|
4
|
+
data.tar.gz: 25a2978ee8de1acbc76743441e03fc31f7d26396
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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="//
|
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
|
|
data/lib/opal/phaser/core.rb
CHANGED
@@ -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'
|
@@ -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
|
data/lib/opal/phaser/version.rb
CHANGED
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.
|
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-
|
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
|