dxruby_tiled 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/lib/dxruby_tiled/object.rb +3 -3
- data/lib/dxruby_tiled/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fd75c570f011646c94dd2abc14ade3813b7d081
|
4
|
+
data.tar.gz: 9024c5a41e222fc873e25c43e8e0b5d946f43282
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44b527445b4f91126cf83dacd27fab667990bd143325dfe4de33434b3f8c5e0daec2bc012f10282a43fb45629e82a34acac9aba96411afc44b5c78cdc8245179
|
7
|
+
data.tar.gz: 12e74fea4fcfa3e695316692bb4cdcc4c1e09dbbcf58991190d3663a003150b396a2762c0a49dc482316bec64c25d8fade8dec927f3ebe37598ca4b0ef3b08b7
|
data/LICENSE.txt
CHANGED
data/lib/dxruby_tiled/object.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module DXRuby
|
2
2
|
module Tiled
|
3
3
|
class TMEObject < DXRuby::Sprite
|
4
|
-
attr_reader :
|
4
|
+
attr_reader :id, :properties
|
5
5
|
attr_accessor :name, :type
|
6
6
|
|
7
7
|
def self.create_from_hash(hash, map = nil)
|
@@ -40,7 +40,7 @@ module DXRuby
|
|
40
40
|
super x, y, nil
|
41
41
|
@name = options[:name]
|
42
42
|
@type = options[:type]
|
43
|
-
@
|
43
|
+
@id = options[:id]
|
44
44
|
@width = options[:width]
|
45
45
|
@height = options[:height]
|
46
46
|
@properties = options[:properties]
|
@@ -174,7 +174,7 @@ module DXRuby
|
|
174
174
|
attr_accessor :start_time
|
175
175
|
|
176
176
|
def self.evolve(object)
|
177
|
-
new_object = self.new(
|
177
|
+
new_object = self.new(object.x, object.y, object.tile, id: @id)
|
178
178
|
%w[z angle scale_x scale_y center_x center_y
|
179
179
|
alpha blend shader image target
|
180
180
|
collision collision_enable collision_sync visible offset_sync
|
data/lib/dxruby_tiled/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dxruby_tiled
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nodai2hITC
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dxruby
|