ruby-miyako 2.1.16 → 2.1.17

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.
@@ -1,4 +1,4 @@
1
- # -*- encoding: utf-8 -*-
1
+ # -*- encoding: utf-8 -*-
2
2
  =begin
3
3
  --
4
4
  Miyako v2.1
@@ -204,11 +204,7 @@ module Miyako
204
204
  first = @slist[0]
205
205
  set_layout_size(first.ow, first.oh)
206
206
  move_to!(first.x, first.y)
207
- @slist.each{|ss|
208
- # ss.snap(self)
209
- # ss.left!.top!
210
- ss.move_to!(first.x, first.y)
211
- }
207
+ @slist.each{|ss| ss.move_to!(first.x, first.y) }
212
208
  end
213
209
 
214
210
  #===複写時に呼び出されるメソッド
@@ -484,9 +480,8 @@ module Miyako
484
480
  #ブロックの引数は、|インスタンスのSpriteUnit|となる。
485
481
  #visibleメソッドの値がfalseのときは描画されない。
486
482
  def render
483
+ return self unless @visible
487
484
  return self unless @now
488
- # pos = @now.move(*@move_offset[@pnum])
489
- # @now.render_xy(*pos)
490
485
  @now.render_d(*@move_offset[@pnum])
491
486
  end
492
487
 
@@ -503,6 +498,16 @@ module Miyako
503
498
  pos = @now.move(*@move_offset[@pnum])
504
499
  @now.render_xy_to(dst, *pos)
505
500
  end
501
+
502
+ def show
503
+ @visible = true
504
+ self
505
+ end
506
+
507
+ def hide
508
+ @visible = false
509
+ self
510
+ end
506
511
  end
507
512
  end
508
513
 
Binary file
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-miyako
3
3
  version: !ruby/object:Gem::Version
4
- hash: 43
4
+ hash: 41
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 16
10
- version: 2.1.16
9
+ - 17
10
+ version: 2.1.17
11
11
  platform: ruby
12
12
  authors:
13
13
  - Cyross Makoto
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-29 00:00:00 +09:00
18
+ date: 2010-10-06 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -28,6 +28,7 @@ extensions:
28
28
  extra_rdoc_files: []
29
29
 
30
30
  files:
31
+ - ./ChangeLog.txt
31
32
  - ./defines.h
32
33
  - ./extconf.rb
33
34
  - ./extern.h