dxopal 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/DEVELOPMENT.md +3 -1
  4. data/Gemfile.lock +14 -6
  5. data/README.md +2 -2
  6. data/Rakefile +12 -11
  7. data/TODO.md +2 -2
  8. data/build/dxopal.js +35121 -29081
  9. data/build/dxopal.min.js +1 -1
  10. data/config.ru +6 -5
  11. data/doc/api/DXOpal.html +4 -4
  12. data/doc/api/DXOpal/Font.html +30 -19
  13. data/doc/api/DXOpal/Image.html +417 -242
  14. data/doc/api/DXOpal/Input.html +402 -102
  15. data/doc/api/DXOpal/Input/MouseCodes.html +3 -3
  16. data/doc/api/DXOpal/RemoteResource.html +29 -27
  17. data/doc/api/DXOpal/Sound.html +3 -3
  18. data/doc/api/DXOpal/SoundEffect.html +14 -10
  19. data/doc/api/DXOpal/SoundEffect/WaveTypes.html +3 -3
  20. data/doc/api/DXOpal/Sprite.html +3 -3
  21. data/doc/api/DXOpal/Window.html +238 -132
  22. data/doc/api/_index.html +4 -7
  23. data/doc/api/css/style.css +7 -0
  24. data/doc/api/file.README.html +6 -36
  25. data/doc/api/file_list.html +0 -5
  26. data/doc/api/frames.html +1 -1
  27. data/doc/api/index.html +6 -36
  28. data/doc/api/method_list.html +113 -57
  29. data/doc/api/top-level-namespace.html +3 -3
  30. data/doc/en/index.html +12 -0
  31. data/doc/ja/index.html +9 -0
  32. data/dxopal.gemspec +3 -2
  33. data/exe/dxopal +4 -2
  34. data/index.html +2 -0
  35. data/opal/dxopal.rb +42 -0
  36. data/opal/dxopal/font.rb +2 -0
  37. data/opal/dxopal/image.rb +30 -3
  38. data/opal/dxopal/input/key_codes.rb +0 -3
  39. data/opal/dxopal/remote_resource.rb +2 -0
  40. data/opal/dxopal/sound_effect.rb +3 -0
  41. data/opal/dxopal/sprite/collision_check.rb +27 -7
  42. data/opal/dxopal/sprite/collision_checker.rb +2 -0
  43. data/opal/dxopal/sprite/physics.rb +6 -2
  44. data/opal/dxopal/version.rb +1 -1
  45. data/opal/dxopal/window.rb +13 -4
  46. data/template/index.html +4 -1
  47. metadata +20 -6
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: DXOpal::Input::MouseCodes
8
8
 
9
- &mdash; Documentation by YARD 0.9.9
9
+ &mdash; Documentation by YARD 0.9.12
10
10
 
11
11
  </title>
12
12
 
@@ -136,9 +136,9 @@
136
136
  </div>
137
137
 
138
138
  <div id="footer">
139
- Generated on Tue Oct 17 13:56:27 2017 by
139
+ Generated on Mon Feb 5 16:56:41 2018 by
140
140
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
141
- 0.9.9 (ruby-2.4.2).
141
+ 0.9.12 (ruby-2.4.2).
142
142
  </div>
143
143
 
144
144
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: DXOpal::RemoteResource
8
8
 
9
- &mdash; Documentation by YARD 0.9.9
9
+ &mdash; Documentation by YARD 0.9.12
10
10
 
11
11
  </title>
12
12
 
@@ -106,6 +106,8 @@
106
106
  `&lt;klass&gt;.register` and `&lt;<a href="name">klass></a>`. A subclass
107
107
  must impelment `&lt;klass&gt;._load`.</p>
108
108
 
109
+ <p>TODO: better name? (SoundEffect is not actually &#39;remote&#39;)</p>
110
+
109
111
 
110
112
  </div>
111
113
  </div>
@@ -377,16 +379,16 @@ must impelment `&lt;klass&gt;._load`.</p>
377
379
  <pre class="lines">
378
380
 
379
381
 
380
- 26
381
- 27
382
382
  28
383
383
  29
384
384
  30
385
385
  31
386
- 32</pre>
386
+ 32
387
+ 33
388
+ 34</pre>
387
389
  </td>
388
390
  <td>
389
- <pre class="code"><span class="info file"># File 'opal/dxopal/remote_resource.rb', line 26</span>
391
+ <pre class="code"><span class="info file"># File 'opal/dxopal/remote_resource.rb', line 28</span>
390
392
 
391
393
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='op'>[]</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
392
394
  <span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_ret'>ret</span> <span class='op'>=</span> <span class='cvar'>@@instances</span><span class='lbracket'>[</span><span class='id identifier rubyid__klass_name'>_klass_name</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='rbracket'>]</span><span class='rparen'>)</span>
@@ -426,12 +428,12 @@ must impelment `&lt;klass&gt;._load`.</p>
426
428
  <pre class="lines">
427
429
 
428
430
 
429
- 61
430
- 62
431
- 63</pre>
431
+ 63
432
+ 64
433
+ 65</pre>
432
434
  </td>
433
435
  <td>
434
- <pre class="code"><span class="info file"># File 'opal/dxopal/remote_resource.rb', line 61</span>
436
+ <pre class="code"><span class="info file"># File 'opal/dxopal/remote_resource.rb', line 63</span>
435
437
 
436
438
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid__klass_name'>_klass_name</span>
437
439
  <span class='kw'>return</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>::</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_last'>last</span>
@@ -467,12 +469,12 @@ must impelment `&lt;klass&gt;._load`.</p>
467
469
  <pre class="lines">
468
470
 
469
471
 
470
- 56
471
- 57
472
- 58</pre>
472
+ 58
473
+ 59
474
+ 60</pre>
473
475
  </td>
474
476
  <td>
475
- <pre class="code"><span class="info file"># File 'opal/dxopal/remote_resource.rb', line 56</span>
477
+ <pre class="code"><span class="info file"># File 'opal/dxopal/remote_resource.rb', line 58</span>
476
478
 
477
479
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid__load'>_load</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
478
480
  <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>override me</span><span class='tstring_end'>&quot;</span></span>
@@ -508,8 +510,6 @@ must impelment `&lt;klass&gt;._load`.</p>
508
510
  <pre class="lines">
509
511
 
510
512
 
511
- 35
512
- 36
513
513
  37
514
514
  38
515
515
  39
@@ -525,10 +525,12 @@ must impelment `&lt;klass&gt;._load`.</p>
525
525
  49
526
526
  50
527
527
  51
528
- 52</pre>
528
+ 52
529
+ 53
530
+ 54</pre>
529
531
  </td>
530
532
  <td>
531
- <pre class="code"><span class="info file"># File 'opal/dxopal/remote_resource.rb', line 35</span>
533
+ <pre class="code"><span class="info file"># File 'opal/dxopal/remote_resource.rb', line 37</span>
532
534
 
533
535
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid__load_resources'>_load_resources</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
534
536
  <span class='cvar'>@@resources</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_klass_name'>klass_name</span><span class='comma'>,</span> <span class='id identifier rubyid_items'>items</span><span class='op'>|</span>
@@ -568,12 +570,12 @@ must impelment `&lt;klass&gt;._load`.</p>
568
570
  <pre class="lines">
569
571
 
570
572
 
571
- 15
572
- 16
573
- 17</pre>
573
+ 17
574
+ 18
575
+ 19</pre>
574
576
  </td>
575
577
  <td>
576
- <pre class="code"><span class="info file"># File 'opal/dxopal/remote_resource.rb', line 15</span>
578
+ <pre class="code"><span class="info file"># File 'opal/dxopal/remote_resource.rb', line 17</span>
577
579
 
578
580
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_add_class'>add_class</span><span class='lparen'>(</span><span class='id identifier rubyid_subklass'>subklass</span><span class='rparen'>)</span>
579
581
  <span class='cvar'>@@klasses</span><span class='lbracket'>[</span><span class='id identifier rubyid_subklass'>subklass</span><span class='period'>.</span><span class='id identifier rubyid__klass_name'>_klass_name</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_subklass'>subklass</span>
@@ -609,13 +611,13 @@ must impelment `&lt;klass&gt;._load`.</p>
609
611
  <pre class="lines">
610
612
 
611
613
 
612
- 20
613
- 21
614
614
  22
615
- 23</pre>
615
+ 23
616
+ 24
617
+ 25</pre>
616
618
  </td>
617
619
  <td>
618
- <pre class="code"><span class="info file"># File 'opal/dxopal/remote_resource.rb', line 20</span>
620
+ <pre class="code"><span class="info file"># File 'opal/dxopal/remote_resource.rb', line 22</span>
619
621
 
620
622
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_register'>register</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
621
623
  <span class='cvar'>@@resources</span><span class='lbracket'>[</span><span class='id identifier rubyid__klass_name'>_klass_name</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
@@ -631,9 +633,9 @@ must impelment `&lt;klass&gt;._load`.</p>
631
633
  </div>
632
634
 
633
635
  <div id="footer">
634
- Generated on Tue Oct 17 13:56:28 2017 by
636
+ Generated on Mon Feb 5 16:56:41 2018 by
635
637
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
636
- 0.9.9 (ruby-2.4.2).
638
+ 0.9.12 (ruby-2.4.2).
637
639
  </div>
638
640
 
639
641
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: DXOpal::Sound
8
8
 
9
- &mdash; Documentation by YARD 0.9.9
9
+ &mdash; Documentation by YARD 0.9.12
10
10
 
11
11
  </title>
12
12
 
@@ -558,9 +558,9 @@
558
558
  </div>
559
559
 
560
560
  <div id="footer">
561
- Generated on Tue Oct 17 13:56:28 2017 by
561
+ Generated on Mon Feb 5 16:56:41 2018 by
562
562
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
563
- 0.9.9 (ruby-2.4.2).
563
+ 0.9.12 (ruby-2.4.2).
564
564
  </div>
565
565
 
566
566
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: DXOpal::SoundEffect
8
8
 
9
- &mdash; Documentation by YARD 0.9.9
9
+ &mdash; Documentation by YARD 0.9.12
10
10
 
11
11
  </title>
12
12
 
@@ -117,6 +117,8 @@
117
117
  <span class='kw'>end</span>
118
118
  </code></pre>
119
119
 
120
+ <p>This will generate a sound with WebAudio.</p>
121
+
120
122
 
121
123
  </div>
122
124
  </div>
@@ -278,8 +280,6 @@ total length of the sound in milliseconds.</code></pre>
278
280
  <pre class="lines">
279
281
 
280
282
 
281
- 26
282
- 27
283
283
  28
284
284
  29
285
285
  30
@@ -331,10 +331,12 @@ total length of the sound in milliseconds.</code></pre>
331
331
  76
332
332
  77
333
333
  78
334
- 79</pre>
334
+ 79
335
+ 80
336
+ 81</pre>
335
337
  </td>
336
338
  <td>
337
- <pre class="code"><span class="info file"># File 'opal/dxopal/sound_effect.rb', line 26</span>
339
+ <pre class="code"><span class="info file"># File 'opal/dxopal/sound_effect.rb', line 28</span>
338
340
 
339
341
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid__load'>_load</span><span class='lparen'>(</span><span class='id identifier rubyid_time'>time</span><span class='comma'>,</span> <span class='id identifier rubyid_wave_type'>wave_type</span><span class='op'>=</span><span class='const'>WAVE_RECT</span><span class='comma'>,</span> <span class='id identifier rubyid_resolution'>resolution</span><span class='op'>=</span><span class='int'>1000</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
340
342
  <span class='id identifier rubyid_snd'>snd</span> <span class='op'>=</span> <span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>(soundeffect)</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
@@ -416,13 +418,15 @@ total length of the sound in milliseconds.</code></pre>
416
418
  <pre class="lines">
417
419
 
418
420
 
419
- 81
420
- 82</pre>
421
+ 83
422
+ 84
423
+ 85</pre>
421
424
  </td>
422
425
  <td>
423
- <pre class="code"><span class="info file"># File 'opal/dxopal/sound_effect.rb', line 81</span>
426
+ <pre class="code"><span class="info file"># File 'opal/dxopal/sound_effect.rb', line 83</span>
424
427
 
425
428
  <span class='kw'>def</span> <span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='id identifier rubyid_wave_type'>wave_type</span><span class='op'>=</span><span class='const'>WAVE_RECT</span><span class='comma'>,</span> <span class='id identifier rubyid_resolution'>resolution</span><span class='op'>=</span><span class='int'>1000</span><span class='rparen'>)</span>
429
+ <span class='const'>TODO</span>
426
430
  <span class='kw'>end</span></pre>
427
431
  </td>
428
432
  </tr>
@@ -434,9 +438,9 @@ total length of the sound in milliseconds.</code></pre>
434
438
  </div>
435
439
 
436
440
  <div id="footer">
437
- Generated on Tue Oct 17 13:56:28 2017 by
441
+ Generated on Mon Feb 5 16:56:41 2018 by
438
442
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
439
- 0.9.9 (ruby-2.4.2).
443
+ 0.9.12 (ruby-2.4.2).
440
444
  </div>
441
445
 
442
446
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: DXOpal::SoundEffect::WaveTypes
8
8
 
9
- &mdash; Documentation by YARD 0.9.9
9
+ &mdash; Documentation by YARD 0.9.12
10
10
 
11
11
  </title>
12
12
 
@@ -120,9 +120,9 @@
120
120
  </div>
121
121
 
122
122
  <div id="footer">
123
- Generated on Tue Oct 17 13:56:27 2017 by
123
+ Generated on Mon Feb 5 16:56:41 2018 by
124
124
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
125
- 0.9.9 (ruby-2.4.2).
125
+ 0.9.12 (ruby-2.4.2).
126
126
  </div>
127
127
 
128
128
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: DXOpal::Sprite
8
8
 
9
- &mdash; Documentation by YARD 0.9.9
9
+ &mdash; Documentation by YARD 0.9.12
10
10
 
11
11
  </title>
12
12
 
@@ -1409,9 +1409,9 @@
1409
1409
  </div>
1410
1410
 
1411
1411
  <div id="footer">
1412
- Generated on Tue Oct 17 13:56:28 2017 by
1412
+ Generated on Mon Feb 5 16:56:41 2018 by
1413
1413
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1414
- 0.9.9 (ruby-2.4.2).
1414
+ 0.9.12 (ruby-2.4.2).
1415
1415
  </div>
1416
1416
 
1417
1417
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: DXOpal::Window
8
8
 
9
- &mdash; Documentation by YARD 0.9.9
9
+ &mdash; Documentation by YARD 0.9.12
10
10
 
11
11
  </title>
12
12
 
@@ -197,7 +197,7 @@
197
197
  <li class="public ">
198
198
  <span class="summary_signature">
199
199
 
200
- <a href="#_loop-class_method" title="_loop (class method)">.<strong>_loop</strong>(time, &amp;block) &#x21d2; Object </a>
200
+ <a href="#_loop-class_method" title="_loop (class method)">.<strong>_loop</strong>(time = 0) &#x21d2; Object </a>
201
201
 
202
202
 
203
203
 
@@ -211,7 +211,9 @@
211
211
 
212
212
 
213
213
 
214
- <span class="summary_desc"><div class='inline'></div></span>
214
+ <span class="summary_desc"><div class='inline'>
215
+ <p>(internal) call @@block periodically.</p>
216
+ </div></span>
215
217
 
216
218
  </li>
217
219
 
@@ -497,6 +499,28 @@
497
499
 
498
500
 
499
501
 
502
+ <span class="summary_desc"><div class='inline'></div></span>
503
+
504
+ </li>
505
+
506
+
507
+ <li class="public ">
508
+ <span class="summary_signature">
509
+
510
+ <a href="#draw_scale-class_method" title="draw_scale (class method)">.<strong>draw_scale</strong>(x, y, image, scale_x, scale_y, center_x = nil, center_y = nil, z = 0) &#x21d2; Object </a>
511
+
512
+
513
+
514
+ </span>
515
+
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+
500
524
  <span class="summary_desc"><div class='inline'></div></span>
501
525
 
502
526
  </li>
@@ -563,7 +587,9 @@
563
587
 
564
588
 
565
589
 
566
- <span class="summary_desc"><div class='inline'></div></span>
590
+ <span class="summary_desc"><div class='inline'>
591
+ <p>(internal).</p>
592
+ </div></span>
567
593
 
568
594
  </li>
569
595
 
@@ -698,7 +724,9 @@ when loaded.</p>
698
724
 
699
725
 
700
726
 
701
- <span class="summary_desc"><div class='inline'></div></span>
727
+ <span class="summary_desc"><div class='inline'>
728
+ <p>Start main loop.</p>
729
+ </div></span>
702
730
 
703
731
  </li>
704
732
 
@@ -872,10 +900,10 @@ when loaded.</p>
872
900
  <pre class="lines">
873
901
 
874
902
 
875
- 99</pre>
903
+ 110</pre>
876
904
  </td>
877
905
  <td>
878
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 99</span>
906
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 110</span>
879
907
 
880
908
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid__img'>_img</span><span class='semicolon'>;</span> <span class='cvar'>@@img</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
881
909
  </td>
@@ -898,18 +926,22 @@ when loaded.</p>
898
926
  <pre class="lines">
899
927
 
900
928
 
901
- 91
902
- 92
903
- 93
904
- 94
905
- 95
906
- 96</pre>
929
+ 100
930
+ 101
931
+ 102
932
+ 103
933
+ 104
934
+ 105
935
+ 106
936
+ 107</pre>
907
937
  </td>
908
938
  <td>
909
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 91</span>
939
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 100</span>
910
940
 
911
941
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid__init'>_init</span><span class='lparen'>(</span><span class='id identifier rubyid_w'>w</span><span class='comma'>,</span> <span class='id identifier rubyid_h'>h</span><span class='rparen'>)</span>
912
- <span class='id identifier rubyid_canvas'>canvas</span> <span class='op'>=</span> <span class='backtick'>`</span><span class='tstring_content'>document.getElementById(&quot;canvas&quot;)</span><span class='tstring_end'>`</span></span>
942
+ <span class='id identifier rubyid_canvas'>canvas</span> <span class='op'>=</span> <span class='backtick'>`</span><span class='tstring_content'>document.getElementById(&quot;dxopal-canvas&quot;)</span><span class='tstring_end'>`</span></span>
943
+ <span class='backtick'>`</span><span class='tstring_content'>canvas.width = w</span><span class='tstring_end'>`</span></span>
944
+ <span class='backtick'>`</span><span class='tstring_content'>canvas.height = h</span><span class='tstring_end'>`</span></span>
913
945
  <span class='id identifier rubyid_img'>img</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Image.html" title="DXOpal::Image (class)">Image</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="Image.html#initialize-instance_method" title="DXOpal::Image#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_w'>w</span><span class='comma'>,</span> <span class='id identifier rubyid_h'>h</span><span class='comma'>,</span> <span class='label'>canvas:</span> <span class='id identifier rubyid_canvas'>canvas</span><span class='rparen'>)</span>
914
946
  <span class='const'><span class='object_link'><a href="Input.html" title="DXOpal::Input (module)">Input</a></span></span><span class='period'>.</span><span class='id identifier rubyid__init'><span class='object_link'><a href="Input.html#_init-class_method" title="DXOpal::Input._init (method)">_init</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_canvas'>canvas</span><span class='rparen'>)</span>
915
947
  <span class='kw'>return</span> <span class='id identifier rubyid_img'>img</span>
@@ -922,26 +954,29 @@ when loaded.</p>
922
954
  <div class="method_details ">
923
955
  <h3 class="signature " id="_loop-class_method">
924
956
 
925
- .<strong>_loop</strong>(time, &amp;block) &#x21d2; <tt>Object</tt>
957
+ .<strong>_loop</strong>(time = 0) &#x21d2; <tt>Object</tt>
926
958
 
927
959
 
928
960
 
929
961
 
930
962
 
931
- </h3><table class="source_code">
963
+ </h3><div class="docstring">
964
+ <div class="discussion">
965
+
966
+ <p>(internal) call @@block periodically</p>
967
+
968
+
969
+ </div>
970
+ </div>
971
+ <div class="tags">
972
+
973
+
974
+ </div><table class="source_code">
932
975
  <tr>
933
976
  <td>
934
977
  <pre class="lines">
935
978
 
936
979
 
937
- 41
938
- 42
939
- 43
940
- 44
941
- 45
942
- 46
943
- 47
944
- 48
945
980
  49
946
981
  50
947
982
  51
@@ -982,12 +1017,21 @@ when loaded.</p>
982
1017
  86
983
1018
  87
984
1019
  88
985
- 89</pre>
1020
+ 89
1021
+ 90
1022
+ 91
1023
+ 92
1024
+ 93
1025
+ 94
1026
+ 95
1027
+ 96
1028
+ 97
1029
+ 98</pre>
986
1030
  </td>
987
1031
  <td>
988
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 41</span>
1032
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 49</span>
989
1033
 
990
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid__loop'>_loop</span><span class='lparen'>(</span><span class='id identifier rubyid_time'>time</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1034
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid__loop'>_loop</span><span class='lparen'>(</span><span class='id identifier rubyid_time'>time</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
991
1035
  <span class='cvar'>@@img</span> <span class='op'>||=</span> <span class='id identifier rubyid__init'>_init</span><span class='lparen'>(</span><span class='cvar'>@@width</span><span class='comma'>,</span> <span class='cvar'>@@height</span><span class='rparen'>)</span>
992
1036
  <span class='id identifier rubyid_t0'>t0</span> <span class='op'>=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_now'>now</span>
993
1037
 
@@ -1011,7 +1055,7 @@ when loaded.</p>
1011
1055
  <span class='kw'>if</span> <span class='cvar'>@@paused</span>
1012
1056
  <span class='const'><span class='object_link'><a href="" title="DXOpal::Window (module)">Window</a></span></span><span class='period'>.</span><span class='id identifier rubyid_draw_pause_screen'><span class='object_link'><a href="#draw_pause_screen-class_method" title="DXOpal::Window.draw_pause_screen (method)">draw_pause_screen</a></span></span>
1013
1057
  <span class='kw'>else</span>
1014
- <span class='id identifier rubyid_block'>block</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span>
1058
+ <span class='const'><span class='object_link'><a href="../DXOpal.html" title="DXOpal (module)">DXOpal</a></span></span><span class='period'>.</span><span class='id identifier rubyid_dump_error'>dump_error</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='cvar'>@@block</span><span class='rparen'>)</span>
1015
1059
  <span class='kw'>end</span>
1016
1060
 
1017
1061
  <span class='comment'># Draw
@@ -1021,6 +1065,7 @@ when loaded.</p>
1021
1065
  <span class='kw'>case</span> <span class='id identifier rubyid_item'>item</span><span class='lbracket'>[</span><span class='int'>2</span><span class='rbracket'>]</span>
1022
1066
  <span class='kw'>when</span> <span class='symbol'>:image</span> <span class='kw'>then</span> <span class='cvar'>@@img</span><span class='period'>.</span><span class='id identifier rubyid_draw'>draw</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_drop'>drop</span><span class='lparen'>(</span><span class='int'>3</span><span class='rparen'>)</span><span class='rparen'>)</span>
1023
1067
  <span class='kw'>when</span> <span class='symbol'>:image_rot</span> <span class='kw'>then</span> <span class='cvar'>@@img</span><span class='period'>.</span><span class='id identifier rubyid_draw_rot'>draw_rot</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_drop'>drop</span><span class='lparen'>(</span><span class='int'>3</span><span class='rparen'>)</span><span class='rparen'>)</span>
1068
+ <span class='kw'>when</span> <span class='symbol'>:image_scale</span> <span class='kw'>then</span> <span class='cvar'>@@img</span><span class='period'>.</span><span class='id identifier rubyid_draw_scale'>draw_scale</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_drop'>drop</span><span class='lparen'>(</span><span class='int'>3</span><span class='rparen'>)</span><span class='rparen'>)</span>
1024
1069
  <span class='kw'>when</span> <span class='symbol'>:draw_ex</span> <span class='kw'>then</span> <span class='cvar'>@@img</span><span class='period'>.</span><span class='id identifier rubyid_draw_ex'>draw_ex</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_drop'>drop</span><span class='lparen'>(</span><span class='int'>3</span><span class='rparen'>)</span><span class='rparen'>)</span>
1025
1070
  <span class='kw'>when</span> <span class='symbol'>:font</span> <span class='kw'>then</span> <span class='cvar'>@@img</span><span class='period'>.</span><span class='id identifier rubyid_draw_font'>draw_font</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_drop'>drop</span><span class='lparen'>(</span><span class='int'>3</span><span class='rparen'>)</span><span class='rparen'>)</span>
1026
1071
  <span class='kw'>when</span> <span class='symbol'>:pixel</span> <span class='kw'>then</span> <span class='cvar'>@@img</span><span class='period'>.</span><span class='op'>[]=</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_item'>item</span><span class='period'>.</span><span class='id identifier rubyid_drop'>drop</span><span class='lparen'>(</span><span class='int'>3</span><span class='rparen'>)</span><span class='rparen'>)</span>
@@ -1034,7 +1079,7 @@ when loaded.</p>
1034
1079
  <span class='kw'>end</span>
1035
1080
  <span class='kw'>end</span>
1036
1081
 
1037
- <span class='backtick'>`</span><span class='tstring_content'>window</span><span class='tstring_end'>`</span></span><span class='period'>.</span><span class='const'>JS</span><span class='period'>.</span><span class='id identifier rubyid_requestAnimationFrame'>requestAnimationFrame</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_time'>time</span><span class='op'>|</span> <span class='id identifier rubyid__loop'>_loop</span><span class='lparen'>(</span><span class='id identifier rubyid_time'>time</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
1082
+ <span class='backtick'>`</span><span class='tstring_content'>window</span><span class='tstring_end'>`</span></span><span class='period'>.</span><span class='const'>JS</span><span class='period'>.</span><span class='id identifier rubyid_requestAnimationFrame'>requestAnimationFrame</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_time'>time</span><span class='op'>|</span> <span class='id identifier rubyid__loop'>_loop</span><span class='lparen'>(</span><span class='id identifier rubyid_time'>time</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
1038
1083
  <span class='kw'>end</span></pre>
1039
1084
  </td>
1040
1085
  </tr>
@@ -1056,10 +1101,10 @@ when loaded.</p>
1056
1101
  <pre class="lines">
1057
1102
 
1058
1103
 
1059
- 109</pre>
1104
+ 120</pre>
1060
1105
  </td>
1061
1106
  <td>
1062
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 109</span>
1107
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 120</span>
1063
1108
 
1064
1109
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_bgcolor'>bgcolor</span><span class='semicolon'>;</span> <span class='cvar'>@@bgcolor</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1065
1110
  </td>
@@ -1082,10 +1127,10 @@ when loaded.</p>
1082
1127
  <pre class="lines">
1083
1128
 
1084
1129
 
1085
- 110</pre>
1130
+ 121</pre>
1086
1131
  </td>
1087
1132
  <td>
1088
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 110</span>
1133
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 121</span>
1089
1134
 
1090
1135
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_bgcolor='>bgcolor=</span><span class='lparen'>(</span><span class='id identifier rubyid_col'>col</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='cvar'>@@bgcolor</span> <span class='op'>=</span> <span class='id identifier rubyid_col'>col</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1091
1136
  </td>
@@ -1108,12 +1153,12 @@ when loaded.</p>
1108
1153
  <pre class="lines">
1109
1154
 
1110
1155
 
1111
- 112
1112
- 113
1113
- 114</pre>
1156
+ 123
1157
+ 124
1158
+ 125</pre>
1114
1159
  </td>
1115
1160
  <td>
1116
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 112</span>
1161
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 123</span>
1117
1162
 
1118
1163
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw'>draw</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_image'>image</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1119
1164
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:image</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_image'>image</span><span class='rparen'>)</span>
@@ -1138,12 +1183,12 @@ when loaded.</p>
1138
1183
  <pre class="lines">
1139
1184
 
1140
1185
 
1141
- 138
1142
- 139
1143
- 140</pre>
1186
+ 153
1187
+ 154
1188
+ 155</pre>
1144
1189
  </td>
1145
1190
  <td>
1146
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 138</span>
1191
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 153</span>
1147
1192
 
1148
1193
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_box'>draw_box</span><span class='lparen'>(</span><span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1149
1194
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:box</span><span class='comma'>,</span> <span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span>
@@ -1168,12 +1213,12 @@ when loaded.</p>
1168
1213
  <pre class="lines">
1169
1214
 
1170
1215
 
1171
- 142
1172
- 143
1173
- 144</pre>
1216
+ 157
1217
+ 158
1218
+ 159</pre>
1174
1219
  </td>
1175
1220
  <td>
1176
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 142</span>
1221
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 157</span>
1177
1222
 
1178
1223
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_box_fill'>draw_box_fill</span><span class='lparen'>(</span><span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1179
1224
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:box_fill</span><span class='comma'>,</span> <span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span>
@@ -1198,12 +1243,12 @@ when loaded.</p>
1198
1243
  <pre class="lines">
1199
1244
 
1200
1245
 
1201
- 146
1202
- 147
1203
- 148</pre>
1246
+ 161
1247
+ 162
1248
+ 163</pre>
1204
1249
  </td>
1205
1250
  <td>
1206
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 146</span>
1251
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 161</span>
1207
1252
 
1208
1253
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_circle'>draw_circle</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_r'>r</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1209
1254
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:circle</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_r'>r</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span>
@@ -1228,12 +1273,12 @@ when loaded.</p>
1228
1273
  <pre class="lines">
1229
1274
 
1230
1275
 
1231
- 150
1232
- 151
1233
- 152</pre>
1276
+ 165
1277
+ 166
1278
+ 167</pre>
1234
1279
  </td>
1235
1280
  <td>
1236
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 150</span>
1281
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 165</span>
1237
1282
 
1238
1283
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_circle_fill'>draw_circle_fill</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_r'>r</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1239
1284
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:circle_fill</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_r'>r</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span>
@@ -1258,12 +1303,12 @@ when loaded.</p>
1258
1303
  <pre class="lines">
1259
1304
 
1260
1305
 
1261
- 120
1262
- 121
1263
- 122</pre>
1306
+ 135
1307
+ 136
1308
+ 137</pre>
1264
1309
  </td>
1265
1310
  <td>
1266
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 120</span>
1311
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 135</span>
1267
1312
 
1268
1313
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_ex'>draw_ex</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_image'>image</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
1269
1314
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:z</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='int'>0</span><span class='comma'>,</span> <span class='symbol'>:draw_ex</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_image'>image</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
@@ -1288,14 +1333,14 @@ when loaded.</p>
1288
1333
  <pre class="lines">
1289
1334
 
1290
1335
 
1291
- 124
1292
- 125
1293
- 126
1294
- 127
1295
- 128</pre>
1336
+ 139
1337
+ 140
1338
+ 141
1339
+ 142
1340
+ 143</pre>
1296
1341
  </td>
1297
1342
  <td>
1298
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 124</span>
1343
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 139</span>
1299
1344
 
1300
1345
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_font'>draw_font</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_string'>string</span><span class='comma'>,</span> <span class='id identifier rubyid_font'>font</span><span class='comma'>,</span> <span class='id identifier rubyid_option'>option</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
1301
1346
  <span class='id identifier rubyid_z'>z</span> <span class='op'>=</span> <span class='id identifier rubyid_option'>option</span><span class='lbracket'>[</span><span class='symbol'>:z</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='int'>0</span>
@@ -1322,12 +1367,12 @@ when loaded.</p>
1322
1367
  <pre class="lines">
1323
1368
 
1324
1369
 
1325
- 134
1326
- 135
1327
- 136</pre>
1370
+ 149
1371
+ 150
1372
+ 151</pre>
1328
1373
  </td>
1329
1374
  <td>
1330
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 134</span>
1375
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 149</span>
1331
1376
 
1332
1377
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_line'>draw_line</span><span class='lparen'>(</span><span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1333
1378
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:line</span><span class='comma'>,</span> <span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span>
@@ -1352,13 +1397,13 @@ when loaded.</p>
1352
1397
  <pre class="lines">
1353
1398
 
1354
1399
 
1355
- 36
1356
- 37
1357
- 38
1358
- 39</pre>
1400
+ 43
1401
+ 44
1402
+ 45
1403
+ 46</pre>
1359
1404
  </td>
1360
1405
  <td>
1361
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 36</span>
1406
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 43</span>
1362
1407
 
1363
1408
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_pause_screen'>draw_pause_screen</span>
1364
1409
  <span class='const'><span class='object_link'><a href="" title="DXOpal::Window (module)">Window</a></span></span><span class='period'>.</span><span class='id identifier rubyid_draw_box_fill'><span class='object_link'><a href="#draw_box_fill-class_method" title="DXOpal::Window.draw_box_fill (method)">draw_box_fill</a></span></span><span class='lparen'>(</span><span class='int'>0</span><span class='comma'>,</span> <span class='int'>0</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="" title="DXOpal::Window (module)">Window</a></span></span><span class='period'>.</span><span class='id identifier rubyid_width'><span class='object_link'><a href="#width-class_method" title="DXOpal::Window.width (method)">width</a></span></span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="" title="DXOpal::Window (module)">Window</a></span></span><span class='period'>.</span><span class='id identifier rubyid_height'><span class='object_link'><a href="#height-class_method" title="DXOpal::Window.height (method)">height</a></span></span><span class='comma'>,</span> <span class='const'>C_BLACK</span><span class='rparen'>)</span>
@@ -1384,12 +1429,12 @@ when loaded.</p>
1384
1429
  <pre class="lines">
1385
1430
 
1386
1431
 
1387
- 130
1388
- 131
1389
- 132</pre>
1432
+ 145
1433
+ 146
1434
+ 147</pre>
1390
1435
  </td>
1391
1436
  <td>
1392
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 130</span>
1437
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 145</span>
1393
1438
 
1394
1439
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_pixel'>draw_pixel</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1395
1440
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:pixel</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span>
@@ -1414,12 +1459,12 @@ when loaded.</p>
1414
1459
  <pre class="lines">
1415
1460
 
1416
1461
 
1417
- 116
1418
- 117
1419
- 118</pre>
1462
+ 131
1463
+ 132
1464
+ 133</pre>
1420
1465
  </td>
1421
1466
  <td>
1422
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 116</span>
1467
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 131</span>
1423
1468
 
1424
1469
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_rot'>draw_rot</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_image'>image</span><span class='comma'>,</span> <span class='id identifier rubyid_angle'>angle</span><span class='comma'>,</span> <span class='id identifier rubyid_center_x'>center_x</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_center_y'>center_y</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1425
1470
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:image_rot</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_image'>image</span><span class='comma'>,</span> <span class='id identifier rubyid_angle'>angle</span><span class='comma'>,</span> <span class='id identifier rubyid_center_x'>center_x</span><span class='comma'>,</span> <span class='id identifier rubyid_center_y'>center_y</span><span class='rparen'>)</span>
@@ -1427,6 +1472,36 @@ when loaded.</p>
1427
1472
  </td>
1428
1473
  </tr>
1429
1474
  </table>
1475
+ </div>
1476
+
1477
+ <div class="method_details ">
1478
+ <h3 class="signature " id="draw_scale-class_method">
1479
+
1480
+ .<strong>draw_scale</strong>(x, y, image, scale_x, scale_y, center_x = nil, center_y = nil, z = 0) &#x21d2; <tt>Object</tt>
1481
+
1482
+
1483
+
1484
+
1485
+
1486
+ </h3><table class="source_code">
1487
+ <tr>
1488
+ <td>
1489
+ <pre class="lines">
1490
+
1491
+
1492
+ 127
1493
+ 128
1494
+ 129</pre>
1495
+ </td>
1496
+ <td>
1497
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 127</span>
1498
+
1499
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_scale'>draw_scale</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_image'>image</span><span class='comma'>,</span> <span class='id identifier rubyid_scale_x'>scale_x</span><span class='comma'>,</span> <span class='id identifier rubyid_scale_y'>scale_y</span><span class='comma'>,</span> <span class='id identifier rubyid_center_x'>center_x</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_center_y'>center_y</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1500
+ <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:image_scale</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_image'>image</span><span class='comma'>,</span> <span class='id identifier rubyid_scale_x'>scale_x</span><span class='comma'>,</span> <span class='id identifier rubyid_scale_y'>scale_y</span><span class='comma'>,</span> <span class='id identifier rubyid_center_x'>center_x</span><span class='comma'>,</span> <span class='id identifier rubyid_center_y'>center_y</span><span class='rparen'>)</span>
1501
+ <span class='kw'>end</span></pre>
1502
+ </td>
1503
+ </tr>
1504
+ </table>
1430
1505
  </div>
1431
1506
 
1432
1507
  <div class="method_details ">
@@ -1444,12 +1519,12 @@ when loaded.</p>
1444
1519
  <pre class="lines">
1445
1520
 
1446
1521
 
1447
- 154
1448
- 155
1449
- 156</pre>
1522
+ 169
1523
+ 170
1524
+ 171</pre>
1450
1525
  </td>
1451
1526
  <td>
1452
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 154</span>
1527
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 169</span>
1453
1528
 
1454
1529
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_triangle'>draw_triangle</span><span class='lparen'>(</span><span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='comma'>,</span> <span class='id identifier rubyid_x3'>x3</span><span class='comma'>,</span> <span class='id identifier rubyid_y3'>y3</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1455
1530
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:triangle</span><span class='comma'>,</span> <span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='comma'>,</span> <span class='id identifier rubyid_x3'>x3</span><span class='comma'>,</span> <span class='id identifier rubyid_y3'>y3</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span>
@@ -1474,12 +1549,12 @@ when loaded.</p>
1474
1549
  <pre class="lines">
1475
1550
 
1476
1551
 
1477
- 158
1478
- 159
1479
- 160</pre>
1552
+ 173
1553
+ 174
1554
+ 175</pre>
1480
1555
  </td>
1481
1556
  <td>
1482
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 158</span>
1557
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 173</span>
1483
1558
 
1484
1559
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_triangle_fill'>draw_triangle_fill</span><span class='lparen'>(</span><span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='comma'>,</span> <span class='id identifier rubyid_x3'>x3</span><span class='comma'>,</span> <span class='id identifier rubyid_y3'>y3</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1485
1560
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:triangle_fill</span><span class='comma'>,</span> <span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='comma'>,</span> <span class='id identifier rubyid_x3'>x3</span><span class='comma'>,</span> <span class='id identifier rubyid_y3'>y3</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span>
@@ -1498,18 +1573,29 @@ when loaded.</p>
1498
1573
 
1499
1574
 
1500
1575
 
1501
- </h3><table class="source_code">
1576
+ </h3><div class="docstring">
1577
+ <div class="discussion">
1578
+
1579
+ <p>(internal)</p>
1580
+
1581
+
1582
+ </div>
1583
+ </div>
1584
+ <div class="tags">
1585
+
1586
+
1587
+ </div><table class="source_code">
1502
1588
  <tr>
1503
1589
  <td>
1504
1590
  <pre class="lines">
1505
1591
 
1506
1592
 
1507
- 162
1508
- 163
1509
- 164</pre>
1593
+ 178
1594
+ 179
1595
+ 180</pre>
1510
1596
  </td>
1511
1597
  <td>
1512
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 162</span>
1598
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 178</span>
1513
1599
 
1514
1600
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
1515
1601
  <span class='cvar'>@@draw_queue</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='cvar'>@@draw_queue</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rbracket'>]</span><span class='rparen'>)</span>
@@ -1534,10 +1620,10 @@ when loaded.</p>
1534
1620
  <pre class="lines">
1535
1621
 
1536
1622
 
1537
- 101</pre>
1623
+ 112</pre>
1538
1624
  </td>
1539
1625
  <td>
1540
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 101</span>
1626
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 112</span>
1541
1627
 
1542
1628
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_fps'>fps</span><span class='semicolon'>;</span> <span class='cvar'>@@fps</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1543
1629
  </td>
@@ -1560,10 +1646,10 @@ when loaded.</p>
1560
1646
  <pre class="lines">
1561
1647
 
1562
1648
 
1563
- 102</pre>
1649
+ 113</pre>
1564
1650
  </td>
1565
1651
  <td>
1566
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 102</span>
1652
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 113</span>
1567
1653
 
1568
1654
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_fps='>fps=</span><span class='lparen'>(</span><span class='id identifier rubyid_w'>w</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='cvar'>@@fps</span> <span class='op'>=</span> <span class='id identifier rubyid_w'>w</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1569
1655
  </td>
@@ -1586,10 +1672,10 @@ when loaded.</p>
1586
1672
  <pre class="lines">
1587
1673
 
1588
1674
 
1589
- 106</pre>
1675
+ 117</pre>
1590
1676
  </td>
1591
1677
  <td>
1592
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 106</span>
1678
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 117</span>
1593
1679
 
1594
1680
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_height'>height</span><span class='semicolon'>;</span> <span class='cvar'>@@height</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1595
1681
  </td>
@@ -1612,10 +1698,10 @@ when loaded.</p>
1612
1698
  <pre class="lines">
1613
1699
 
1614
1700
 
1615
- 107</pre>
1701
+ 118</pre>
1616
1702
  </td>
1617
1703
  <td>
1618
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 107</span>
1704
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 118</span>
1619
1705
 
1620
1706
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_height='>height=</span><span class='lparen'>(</span><span class='id identifier rubyid_h'>h</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='cvar'>@@height</span> <span class='op'>=</span> <span class='id identifier rubyid_h'>h</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1621
1707
  </td>
@@ -1652,13 +1738,17 @@ when loaded</p>
1652
1738
 
1653
1739
  16
1654
1740
  17
1655
- 18</pre>
1741
+ 18
1742
+ 19
1743
+ 20</pre>
1656
1744
  </td>
1657
1745
  <td>
1658
1746
  <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 16</span>
1659
1747
 
1660
1748
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_load_resources'>load_resources</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1661
- <span class='const'><span class='object_link'><a href="RemoteResource.html" title="DXOpal::RemoteResource (class)">RemoteResource</a></span></span><span class='period'>.</span><span class='id identifier rubyid__load_resources'><span class='object_link'><a href="RemoteResource.html#_load_resources-class_method" title="DXOpal::RemoteResource._load_resources (method)">_load_resources</a></span></span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1749
+ <span class='const'><span class='object_link'><a href="RemoteResource.html" title="DXOpal::RemoteResource (class)">RemoteResource</a></span></span><span class='period'>.</span><span class='id identifier rubyid__load_resources'><span class='object_link'><a href="RemoteResource.html#_load_resources-class_method" title="DXOpal::RemoteResource._load_resources (method)">_load_resources</a></span></span> <span class='kw'>do</span>
1750
+ <span class='const'><span class='object_link'><a href="../DXOpal.html" title="DXOpal (module)">DXOpal</a></span></span><span class='period'>.</span><span class='id identifier rubyid_dump_error'>dump_error</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1751
+ <span class='kw'>end</span>
1662
1752
  <span class='kw'>end</span></pre>
1663
1753
  </td>
1664
1754
  </tr>
@@ -1674,23 +1764,39 @@ when loaded</p>
1674
1764
 
1675
1765
 
1676
1766
 
1677
- </h3><table class="source_code">
1767
+ </h3><div class="docstring">
1768
+ <div class="discussion">
1769
+
1770
+ <p>Start main loop</p>
1771
+
1772
+ <p>When called twice, previous loop is stopped (this is useful when
1773
+ implementing interactive game editor, etc.)</p>
1774
+
1775
+
1776
+ </div>
1777
+ </div>
1778
+ <div class="tags">
1779
+
1780
+
1781
+ </div><table class="source_code">
1678
1782
  <tr>
1679
1783
  <td>
1680
1784
  <pre class="lines">
1681
1785
 
1682
1786
 
1683
- 20
1684
- 21
1685
- 22
1686
- 23</pre>
1787
+ 26
1788
+ 27
1789
+ 28
1790
+ 29
1791
+ 30</pre>
1687
1792
  </td>
1688
1793
  <td>
1689
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 20</span>
1794
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 26</span>
1690
1795
 
1691
1796
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_loop'>loop</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1797
+ <span class='id identifier rubyid_already_running'>already_running</span> <span class='op'>=</span> <span class='op'>!</span><span class='op'>!</span><span class='cvar'>@@block</span>
1692
1798
  <span class='cvar'>@@block</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
1693
- <span class='backtick'>`</span><span class='tstring_content'>window</span><span class='tstring_end'>`</span></span><span class='period'>.</span><span class='const'>JS</span><span class='period'>.</span><span class='id identifier rubyid_requestAnimationFrame'>requestAnimationFrame</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_time'>time</span><span class='op'>|</span> <span class='id identifier rubyid__loop'>_loop</span><span class='lparen'>(</span><span class='id identifier rubyid_time'>time</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
1799
+ <span class='id identifier rubyid__loop'>_loop</span> <span class='kw'>unless</span> <span class='id identifier rubyid_already_running'>already_running</span>
1694
1800
  <span class='kw'>end</span></pre>
1695
1801
  </td>
1696
1802
  </tr>
@@ -1723,14 +1829,14 @@ when loaded</p>
1723
1829
  <pre class="lines">
1724
1830
 
1725
1831
 
1726
- 26
1727
- 27
1728
- 28
1729
- 29
1730
- 30</pre>
1832
+ 33
1833
+ 34
1834
+ 35
1835
+ 36
1836
+ 37</pre>
1731
1837
  </td>
1732
1838
  <td>
1733
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 26</span>
1839
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 33</span>
1734
1840
 
1735
1841
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_pause'>pause</span>
1736
1842
  <span class='cvar'>@@paused</span> <span class='op'>=</span> <span class='kw'>true</span>
@@ -1779,10 +1885,10 @@ when loaded</p>
1779
1885
  <pre class="lines">
1780
1886
 
1781
1887
 
1782
- 31</pre>
1888
+ 38</pre>
1783
1889
  </td>
1784
1890
  <td>
1785
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 31</span>
1891
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 38</span>
1786
1892
 
1787
1893
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_paused?'>paused?</span><span class='semicolon'>;</span> <span class='cvar'>@@paused</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1788
1894
  </td>
@@ -1805,10 +1911,10 @@ when loaded</p>
1805
1911
  <pre class="lines">
1806
1912
 
1807
1913
 
1808
- 103</pre>
1914
+ 114</pre>
1809
1915
  </td>
1810
1916
  <td>
1811
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 103</span>
1917
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 114</span>
1812
1918
 
1813
1919
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_real_fps'>real_fps</span><span class='semicolon'>;</span> <span class='cvar'>@@real_fps</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1814
1920
  </td>
@@ -1831,13 +1937,13 @@ when loaded</p>
1831
1937
  <pre class="lines">
1832
1938
 
1833
1939
 
1834
- 32
1835
- 33
1836
- 34
1837
- 35</pre>
1940
+ 39
1941
+ 40
1942
+ 41
1943
+ 42</pre>
1838
1944
  </td>
1839
1945
  <td>
1840
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 32</span>
1946
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 39</span>
1841
1947
 
1842
1948
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_resume'>resume</span>
1843
1949
  <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Window.resume is called before Window.loop</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='cvar'>@@block</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
@@ -1863,10 +1969,10 @@ when loaded</p>
1863
1969
  <pre class="lines">
1864
1970
 
1865
1971
 
1866
- 104</pre>
1972
+ 115</pre>
1867
1973
  </td>
1868
1974
  <td>
1869
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 104</span>
1975
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 115</span>
1870
1976
 
1871
1977
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_width'>width</span><span class='semicolon'>;</span> <span class='cvar'>@@width</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1872
1978
  </td>
@@ -1889,10 +1995,10 @@ when loaded</p>
1889
1995
  <pre class="lines">
1890
1996
 
1891
1997
 
1892
- 105</pre>
1998
+ 116</pre>
1893
1999
  </td>
1894
2000
  <td>
1895
- <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 105</span>
2001
+ <pre class="code"><span class="info file"># File 'opal/dxopal/window.rb', line 116</span>
1896
2002
 
1897
2003
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_width='>width=</span><span class='lparen'>(</span><span class='id identifier rubyid_w'>w</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='cvar'>@@width</span> <span class='op'>=</span> <span class='id identifier rubyid_w'>w</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1898
2004
  </td>
@@ -1905,9 +2011,9 @@ when loaded</p>
1905
2011
  </div>
1906
2012
 
1907
2013
  <div id="footer">
1908
- Generated on Tue Oct 17 13:56:27 2017 by
2014
+ Generated on Mon Feb 5 16:56:41 2018 by
1909
2015
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1910
- 0.9.9 (ruby-2.4.2).
2016
+ 0.9.12 (ruby-2.4.2).
1911
2017
  </div>
1912
2018
 
1913
2019
  </div>