felflame 1.0.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -2
- data/.ruby-version +1 -0
- data/CHANGELOG.mdown +60 -5
- data/Gemfile +2 -3
- data/Gemfile.lock +4 -4
- data/README.mdown +127 -74
- data/Rakefile +30 -10
- data/bin/console +3 -3
- data/docs/FelFlame/ComponentManager.html +131 -519
- data/docs/FelFlame/Components.html +29 -119
- data/docs/FelFlame/Entities.html +125 -387
- data/docs/FelFlame/Order.html +251 -0
- data/docs/FelFlame/Scenes.html +72 -68
- data/docs/FelFlame/Stage.html +30 -56
- data/docs/FelFlame/Systems.html +208 -244
- data/docs/FelFlame.html +34 -32
- data/docs/Felflame_.html +143 -0
- data/docs/_index.html +24 -4
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +145 -83
- data/docs/file.version.html +74 -0
- data/docs/index.html +145 -83
- data/docs/method_list.html +52 -108
- data/docs/top-level-namespace.html +5 -5
- data/felflame.gemspec +22 -22
- data/lib/felflame/component_manager.rb +99 -71
- data/lib/felflame/entity_manager.rb +84 -59
- data/lib/felflame/order.rb +24 -0
- data/lib/felflame/scene_manager.rb +23 -12
- data/lib/felflame/stage_manager.rb +10 -33
- data/lib/felflame/system_manager.rb +92 -47
- data/lib/felflame/version.rb +5 -1
- data/lib/felflame.rb +23 -15
- metadata +34 -53
- data/.yardopts +0 -13
- data/codeclimate/env.rb +0 -1
- data/codeclimate/export-coverage.rb +0 -16
- data/codeclimate/test-reporter-latest-linux-amd64 +0 -0
- data/deprecated/components/00_renderable.rb +0 -19
- data/deprecated/components/01_sprite.rb +0 -57
- data/deprecated/components/02_label.rb +0 -32
- data/deprecated/components/03_player_control.rb +0 -26
- data/deprecated/components/04_map.rb +0 -21
- data/deprecated/components/05_interactable.rb +0 -16
- data/deprecated/components/06_collidable.rb +0 -22
- data/deprecated/components/07_battle.rb +0 -4
- data/deprecated/components/07_indoor.rb +0 -4
- data/deprecated/components/07_overworld.rb +0 -16
- data/deprecated/components/debug_singleton.rb +0 -13
- data/deprecated/helpers/00_tileset.rb +0 -56
- data/deprecated/helpers/01_component.rb +0 -74
- data/deprecated/systems/00_update_levels.rb +0 -34
- data/deprecated/systems/10_player.rb +0 -41
- data/deprecated/systems/99_render.rb +0 -37
- data/logos/felflame-logo-text.png +0 -0
- data/logos/felflame-logo-text.svg +0 -172
- data/logos/felflame-logo.png +0 -0
- data/logos/felflame-logo.svg +0 -97
data/docs/FelFlame/Stage.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
|
-
|
7
|
+
Module: FelFlame::Stage
|
8
8
|
|
9
9
|
— Documentation by YARD 0.9.26
|
10
10
|
|
@@ -37,7 +37,7 @@
|
|
37
37
|
<div id="menu">
|
38
38
|
|
39
39
|
<a href="../_index.html">Index (S)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (
|
40
|
+
<span class='title'><span class='object_link'><a href="../FelFlame.html" title="FelFlame (module)">FelFlame</a></span></span>
|
41
41
|
»
|
42
42
|
<span class="title">Stage</span>
|
43
43
|
|
@@ -59,29 +59,13 @@
|
|
59
59
|
<div class="clear"></div>
|
60
60
|
</div>
|
61
61
|
|
62
|
-
<div id="content"><h1>
|
62
|
+
<div id="content"><h1>Module: FelFlame::Stage
|
63
63
|
|
64
64
|
|
65
65
|
|
66
66
|
</h1>
|
67
67
|
<div class="box_info">
|
68
68
|
|
69
|
-
<dl>
|
70
|
-
<dt>Inherits:</dt>
|
71
|
-
<dd>
|
72
|
-
<span class="inheritName">Object</span>
|
73
|
-
|
74
|
-
<ul class="fullTree">
|
75
|
-
<li>Object</li>
|
76
|
-
|
77
|
-
<li class="next">FelFlame::Stage</li>
|
78
|
-
|
79
|
-
</ul>
|
80
|
-
<a href="#" class="inheritanceTree">show all</a>
|
81
|
-
|
82
|
-
</dd>
|
83
|
-
</dl>
|
84
|
-
|
85
69
|
|
86
70
|
|
87
71
|
|
@@ -94,8 +78,8 @@
|
|
94
78
|
|
95
79
|
<dl>
|
96
80
|
<dt>Defined in:</dt>
|
97
|
-
<dd>felflame.rb<span class="defines">,<br />
|
98
|
-
stage_manager.rb</span>
|
81
|
+
<dd>lib/felflame.rb<span class="defines">,<br />
|
82
|
+
lib/felflame/stage_manager.rb</span>
|
99
83
|
</dd>
|
100
84
|
</dl>
|
101
85
|
|
@@ -104,7 +88,7 @@
|
|
104
88
|
<h2>Overview</h2><div class="docstring">
|
105
89
|
<div class="discussion">
|
106
90
|
|
107
|
-
<p>Stores Scenes which you want to execute on each frame. When called upon will execute all Systems in the Scenes in the Stage and will execute them according to their priority order.</p>
|
91
|
+
<p>Stores Scenes you add to it which you want to execute on each frame. When called upon will execute all Systems in the Scenes in the Stage and will execute them according to their priority order.</p>
|
108
92
|
|
109
93
|
|
110
94
|
</div>
|
@@ -305,12 +289,12 @@
|
|
305
289
|
<pre class="lines">
|
306
290
|
|
307
291
|
|
308
|
-
|
309
|
-
|
310
|
-
|
292
|
+
42
|
293
|
+
43
|
294
|
+
44</pre>
|
311
295
|
</td>
|
312
296
|
<td>
|
313
|
-
<pre class="code"><span class="info file"># File 'stage_manager.rb', line
|
297
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/stage_manager.rb', line 42</span>
|
314
298
|
|
315
299
|
<span class='kw'>def</span> <span class='id identifier rubyid_scenes'>scenes</span>
|
316
300
|
<span class='ivar'>@scenes</span> <span class='op'>||=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
@@ -371,24 +355,18 @@
|
|
371
355
|
<pre class="lines">
|
372
356
|
|
373
357
|
|
374
|
-
11
|
375
|
-
12
|
376
358
|
13
|
377
359
|
14
|
378
360
|
15
|
379
361
|
16
|
380
|
-
17
|
381
|
-
18</pre>
|
362
|
+
17</pre>
|
382
363
|
</td>
|
383
364
|
<td>
|
384
|
-
<pre class="code"><span class="info file"># File 'stage_manager.rb', line
|
365
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/stage_manager.rb', line 13</span>
|
385
366
|
|
386
367
|
<span class='kw'>def</span> <span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_scenes_to_add'>scenes_to_add</span><span class='rparen'>)</span>
|
387
368
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_scenes'>scenes</span> <span class='op'>|=</span> <span class='id identifier rubyid_scenes_to_add'>scenes_to_add</span>
|
388
|
-
<span class='
|
389
|
-
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_systems'>systems</span> <span class='op'>|=</span> <span class='id identifier rubyid_scene'>scene</span><span class='period'>.</span><span class='id identifier rubyid_systems'>systems</span>
|
390
|
-
<span class='kw'>end</span>
|
391
|
-
<span class='id identifier rubyid_systems'>systems</span><span class='period'>.</span><span class='id identifier rubyid_sort_by!'>sort_by!</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:priority</span><span class='rparen'>)</span>
|
369
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_scenes'>scenes</span> <span class='op'>=</span> <span class='id identifier rubyid_scenes'>scenes</span><span class='period'>.</span><span class='id identifier rubyid_sort_by'>sort_by</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:priority</span><span class='rparen'>)</span>
|
392
370
|
<span class='kw'>true</span>
|
393
371
|
<span class='kw'>end</span></pre>
|
394
372
|
</td>
|
@@ -408,7 +386,7 @@
|
|
408
386
|
</h3><div class="docstring">
|
409
387
|
<div class="discussion">
|
410
388
|
|
411
|
-
<p>Executes one frame of the game. This executes all the
|
389
|
+
<p>Executes one frame of the game. This executes all the Scenes added to the Stage in order of their priority.</p>
|
412
390
|
|
413
391
|
|
414
392
|
</div>
|
@@ -440,16 +418,16 @@
|
|
440
418
|
<pre class="lines">
|
441
419
|
|
442
420
|
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
421
|
+
35
|
422
|
+
36
|
423
|
+
37
|
424
|
+
38</pre>
|
447
425
|
</td>
|
448
426
|
<td>
|
449
|
-
<pre class="code"><span class="info file"># File 'stage_manager.rb', line
|
427
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/stage_manager.rb', line 35</span>
|
450
428
|
|
451
429
|
<span class='kw'>def</span> <span class='id identifier rubyid_call'>call</span>
|
452
|
-
<span class='id identifier
|
430
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_scenes'>scenes</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span><span class='lparen'>(</span><span class='op'>&</span><span class='symbol'>:call</span><span class='rparen'>)</span>
|
453
431
|
<span class='kw'>true</span>
|
454
432
|
<span class='kw'>end</span></pre>
|
455
433
|
</td>
|
@@ -501,18 +479,16 @@
|
|
501
479
|
<pre class="lines">
|
502
480
|
|
503
481
|
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
47</pre>
|
482
|
+
28
|
483
|
+
29
|
484
|
+
30
|
485
|
+
31</pre>
|
509
486
|
</td>
|
510
487
|
<td>
|
511
|
-
<pre class="code"><span class="info file"># File 'stage_manager.rb', line
|
488
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/stage_manager.rb', line 28</span>
|
512
489
|
|
513
490
|
<span class='kw'>def</span> <span class='id identifier rubyid_clear'>clear</span>
|
514
|
-
<span class='id identifier
|
515
|
-
<span class='id identifier rubyid_scenes'>scenes</span><span class='period'>.</span><span class='id identifier rubyid_clear'>clear</span>
|
491
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_scenes'>scenes</span><span class='period'>.</span><span class='id identifier rubyid_clear'>clear</span>
|
516
492
|
<span class='kw'>true</span>
|
517
493
|
<span class='kw'>end</span></pre>
|
518
494
|
</td>
|
@@ -564,18 +540,16 @@
|
|
564
540
|
<pre class="lines">
|
565
541
|
|
566
542
|
|
543
|
+
21
|
567
544
|
22
|
568
545
|
23
|
569
|
-
24
|
570
|
-
25
|
571
|
-
26</pre>
|
546
|
+
24</pre>
|
572
547
|
</td>
|
573
548
|
<td>
|
574
|
-
<pre class="code"><span class="info file"># File 'stage_manager.rb', line
|
549
|
+
<pre class="code"><span class="info file"># File 'lib/felflame/stage_manager.rb', line 21</span>
|
575
550
|
|
576
551
|
<span class='kw'>def</span> <span class='id identifier rubyid_remove'>remove</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_scenes_to_remove'>scenes_to_remove</span><span class='rparen'>)</span>
|
577
552
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_scenes'>scenes</span> <span class='op'>-=</span> <span class='id identifier rubyid_scenes_to_remove'>scenes_to_remove</span>
|
578
|
-
<span class='id identifier rubyid_update_systems_list'>update_systems_list</span>
|
579
553
|
<span class='kw'>true</span>
|
580
554
|
<span class='kw'>end</span></pre>
|
581
555
|
</td>
|
@@ -588,7 +562,7 @@
|
|
588
562
|
</div>
|
589
563
|
|
590
564
|
<div id="footer">
|
591
|
-
Generated on
|
565
|
+
Generated on Mon Jan 3 08:23:04 2022 by
|
592
566
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
593
567
|
0.9.26 (ruby-2.7.3).
|
594
568
|
</div>
|