gamebox 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/.gitignore +6 -0
  2. data/History.txt +6 -0
  3. data/Rakefile +25 -23
  4. data/TODO.txt +5 -3
  5. data/VERSION +1 -0
  6. data/bin/gamebox +2 -2
  7. data/docs/CODE_REVIEW +48 -0
  8. data/docs/getting_started.rdoc +30 -14
  9. data/gamebox.gemspec +184 -0
  10. data/lib/gamebox/actor.rb +29 -37
  11. data/lib/gamebox/actor_factory.rb +7 -24
  12. data/lib/gamebox/actors/curtain.rb +57 -0
  13. data/lib/gamebox/actors/label.rb +23 -0
  14. data/lib/gamebox/actors/score.rb +9 -5
  15. data/lib/gamebox/arbiter.rb +75 -0
  16. data/lib/gamebox/backstage.rb +17 -0
  17. data/lib/gamebox/behavior.rb +24 -1
  18. data/lib/gamebox/behaviors/animated.rb +2 -0
  19. data/lib/gamebox/behaviors/audible.rb +34 -0
  20. data/lib/gamebox/behaviors/collidable.rb +41 -0
  21. data/lib/gamebox/class_finder.rb +29 -0
  22. data/lib/gamebox/data/config/objects.yml +0 -1
  23. data/lib/gamebox/director.rb +13 -0
  24. data/lib/gamebox/gamebox_application.rb +2 -0
  25. data/lib/gamebox/input_manager.rb +58 -36
  26. data/lib/gamebox/{templates/template_app/lib → lib}/code_statistics.rb +0 -0
  27. data/lib/gamebox/lib/platform.rb +1 -0
  28. data/lib/gamebox/lib/surface_ext.rb +1 -1
  29. data/lib/gamebox/sound_manager.rb +11 -5
  30. data/lib/gamebox/spec/helper.rb +25 -0
  31. data/lib/gamebox/stage.rb +69 -2
  32. data/lib/gamebox/stage_manager.rb +6 -5
  33. data/lib/gamebox/tasks/gamebox_tasks.rb +18 -0
  34. data/lib/gamebox/templates/template_app/.gitignore +6 -0
  35. data/lib/gamebox/templates/template_app/README +3 -9
  36. data/lib/gamebox/templates/template_app/Rakefile +0 -13
  37. data/lib/gamebox/templates/template_app/spec/helper.rb +1 -1
  38. data/lib/gamebox/templates/template_app/src/demo_stage.rb +1 -1
  39. data/lib/gamebox/version.rb +1 -1
  40. data/lib/gamebox/views/graphical_actor_view.rb +13 -21
  41. data/spec/actor_spec.rb +12 -4
  42. data/spec/actor_view_spec.rb +16 -0
  43. data/spec/animated_spec.rb +1 -0
  44. data/spec/backstage_spec.rb +45 -0
  45. data/spec/behavior_spec.rb +11 -0
  46. data/spec/collidable_spec.rb +15 -0
  47. data/spec/label_spec.rb +11 -0
  48. data/spec/resource_manager_spec.rb +14 -0
  49. data/spec/stage_spec.rb +65 -0
  50. metadata +66 -34
  51. data/Manifest.txt +0 -97
  52. data/lib/gamebox/ftor.rb +0 -2
  53. data/lib/gamebox/templates/template_app/lib/platform.rb +0 -16
data/Manifest.txt DELETED
@@ -1,97 +0,0 @@
1
- History.txt
2
- Manifest.txt
3
- README.txt
4
- Rakefile
5
- TODO.txt
6
- bin/gamebox
7
- docs/getting_started.rdoc
8
- docs/logo.png
9
- lib/gamebox.rb
10
- lib/gamebox/actor.rb
11
- lib/gamebox/actor_factory.rb
12
- lib/gamebox/actor_view.rb
13
- lib/gamebox/actors/logo.rb
14
- lib/gamebox/actors/score.rb
15
- lib/gamebox/actors/svg_actor.rb
16
- lib/gamebox/ai/line_of_site.rb
17
- lib/gamebox/ai/polaris.rb
18
- lib/gamebox/ai/two_d_grid_location.rb
19
- lib/gamebox/ai/two_d_grid_map.rb
20
- lib/gamebox/behavior.rb
21
- lib/gamebox/behaviors/animated.rb
22
- lib/gamebox/behaviors/graphical.rb
23
- lib/gamebox/behaviors/layered.rb
24
- lib/gamebox/behaviors/physical.rb
25
- lib/gamebox/behaviors/updatable.rb
26
- lib/gamebox/config_manager.rb
27
- lib/gamebox/console_app.rb
28
- lib/gamebox/data/config/objects.yml
29
- lib/gamebox/data/fonts/Asimov.ttf
30
- lib/gamebox/data/fonts/GAMEBOX_FONTS_GO_HERE
31
- lib/gamebox/data/graphics/GAMEBOX_GRAPHICS_GO_HERE
32
- lib/gamebox/data/graphics/logo.png
33
- lib/gamebox/data/music/GAMEBOX_MUSIC_GOES_HERE
34
- lib/gamebox/data/sounds/GAMEBOX_SOUND_FX_GO_HERE
35
- lib/gamebox/director.rb
36
- lib/gamebox/event_compat.rb
37
- lib/gamebox/ftor.rb
38
- lib/gamebox/gamebox_application.rb
39
- lib/gamebox/gamebox_generator.rb
40
- lib/gamebox/generators/actor_generator.rb
41
- lib/gamebox/generators/view_generator.rb
42
- lib/gamebox/input_manager.rb
43
- lib/gamebox/lib/aliasing.rb
44
- lib/gamebox/lib/diy.rb
45
- lib/gamebox/lib/inflections.rb
46
- lib/gamebox/lib/inflector.rb
47
- lib/gamebox/lib/linked_list.rb
48
- lib/gamebox/lib/metaclass.rb
49
- lib/gamebox/lib/numbers_ext.rb
50
- lib/gamebox/lib/platform.rb
51
- lib/gamebox/lib/publisher_ext.rb
52
- lib/gamebox/lib/sorted_list.rb
53
- lib/gamebox/lib/surface_ext.rb
54
- lib/gamebox/stage.rb
55
- lib/gamebox/stage_manager.rb
56
- lib/gamebox/physical_director.rb
57
- lib/gamebox/physical_stage.rb
58
- lib/gamebox/physics.rb
59
- lib/gamebox/resource_manager.rb
60
- lib/gamebox/sound_manager.rb
61
- lib/gamebox/svg_document.rb
62
- lib/gamebox/tasks/gamebox_tasks.rb
63
- lib/gamebox/templates/actor.erb
64
- lib/gamebox/templates/actor_spec.erb
65
- lib/gamebox/templates/actor_view.erb
66
- lib/gamebox/templates/actor_view_spec.erb
67
- lib/gamebox/templates/template_app/README
68
- lib/gamebox/templates/template_app/Rakefile
69
- lib/gamebox/templates/template_app/config/boot.rb
70
- lib/gamebox/templates/template_app/config/environment.rb
71
- lib/gamebox/templates/template_app/config/game.yml
72
- lib/gamebox/templates/template_app/config/stage_config.yml
73
- lib/gamebox/templates/template_app/data/fonts/FONTS_GO_HERE
74
- lib/gamebox/templates/template_app/data/graphics/GRAPHICS_GO_HERE
75
- lib/gamebox/templates/template_app/data/music/MUSIC_GOES_HERE
76
- lib/gamebox/templates/template_app/data/sounds/SOUND_FX_GO_HERE
77
- lib/gamebox/templates/template_app/doc/README_FOR_APP
78
- lib/gamebox/templates/template_app/lib/code_statistics.rb
79
- lib/gamebox/templates/template_app/lib/platform.rb
80
- lib/gamebox/templates/template_app/script/generate
81
- lib/gamebox/templates/template_app/src/app.rb
82
- lib/gamebox/templates/template_app/src/demo_stage.rb
83
- lib/gamebox/templates/template_app/src/game.rb
84
- lib/gamebox/templates/template_app/src/my_actor.rb
85
- lib/gamebox/templates/template_app/spec/helper.rb
86
- lib/gamebox/version.rb
87
- lib/gamebox/viewport.rb
88
- lib/gamebox/views/graphical_actor_view.rb
89
- lib/gamebox/wrapped_screen.rb
90
- script/perf_polaris.rb
91
- spec/helper.rb
92
- spec/actor_spec.rb
93
- spec/animated_spec.rb
94
- spec/line_of_site_spec.rb
95
- spec/physical_spec.rb
96
- spec/polaris_spec.rb
97
- spec/viewport_spec.rb
data/lib/gamebox/ftor.rb DELETED
@@ -1,2 +0,0 @@
1
- require 'rubygame/ftor'
2
- Ftor = Rubygame::Ftor
@@ -1,16 +0,0 @@
1
- # Helper functions for determining platform
2
-
3
- # TODO how do I do this in ruby 1.9, since PLATFORM doesn't exist?
4
- class Platform
5
- def self.mac?
6
- return PLATFORM =~ /darwin/
7
- end
8
-
9
- def self.windows?
10
- return PLATFORM =~ /mswin/
11
- end
12
-
13
- def self.linux?
14
- return PLATFORM =~ /linux/
15
- end
16
- end