petermorphose 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. data/COPYING +3 -0
  2. data/README.md +31 -0
  3. data/bin/petermorphose +3 -0
  4. data/levels/flgr_Der_Alkohol_und_seine_Folgen.pml +447 -0
  5. data/levels/jr_Am_Tempel_des_Harlow-Karlow.pml +413 -0
  6. data/levels/jr_Auf_der_Flucht.pml +456 -0
  7. data/levels/jr_Die_zwei_Baeume.pml +447 -0
  8. data/levels/jr_Feuertauchen.pml +343 -0
  9. data/levels/jr_Gemuetlicher_Aufstieg.pml +329 -0
  10. data/levels/jr_Gruenhuegelshausen.pml +423 -0
  11. data/levels/jr_Gruselgrotte.pml +421 -0
  12. data/levels/jr_Hoch_hinaus.pml +265 -0
  13. data/levels/jr_Vom_Ozean_in_die_Traufe.pml +342 -0
  14. data/levels/jr_Weg_durchs_Feuer.pml +544 -0
  15. data/levels/sl_Heimweg_zu_Henk.pml +307 -0
  16. data/media/arg1.wav +0 -0
  17. data/media/arg2.wav +0 -0
  18. data/media/arrow_hit.wav +0 -0
  19. data/media/blocker_break.wav +0 -0
  20. data/media/bow.wav +0 -0
  21. data/media/break1.wav +0 -0
  22. data/media/break2.wav +0 -0
  23. data/media/buttons.png +0 -0
  24. data/media/collect_ammo.wav +0 -0
  25. data/media/collect_freeze.wav +0 -0
  26. data/media/collect_health.wav +0 -0
  27. data/media/collect_key.wav +0 -0
  28. data/media/collect_points.wav +0 -0
  29. data/media/collect_star.wav +0 -0
  30. data/media/danger.png +0 -0
  31. data/media/death.wav +0 -0
  32. data/media/dialogs.bmp +0 -0
  33. data/media/door1.wav +0 -0
  34. data/media/door2.wav +0 -0
  35. data/media/eat.wav +0 -0
  36. data/media/effects.bmp +0 -0
  37. data/media/enemies.bmp +0 -0
  38. data/media/explosion.wav +0 -0
  39. data/media/game.ogg +0 -0
  40. data/media/gui.bmp +0 -0
  41. data/media/help1.wav +0 -0
  42. data/media/help2.wav +0 -0
  43. data/media/jump.wav +0 -0
  44. data/media/lava.wav +0 -0
  45. data/media/lever.wav +0 -0
  46. data/media/menu.ogg +0 -0
  47. data/media/morph.wav +0 -0
  48. data/media/player.bmp +0 -0
  49. data/media/player_arg.wav +0 -0
  50. data/media/shshsh.wav +0 -0
  51. data/media/skies.png +0 -0
  52. data/media/slime1.wav +0 -0
  53. data/media/slime2.wav +0 -0
  54. data/media/slime3.wav +0 -0
  55. data/media/stairs.wav +0 -0
  56. data/media/stairs_steps.wav +0 -0
  57. data/media/stuff.bmp +0 -0
  58. data/media/sword_whoosh.wav +0 -0
  59. data/media/tiles.bmp +0 -0
  60. data/media/title.png +0 -0
  61. data/media/title_dark.png +0 -0
  62. data/media/turbo.wav +0 -0
  63. data/media/water1.wav +0 -0
  64. data/media/water2.wav +0 -0
  65. data/media/whoosh.wav +0 -0
  66. data/media/whoosh_back.wav +0 -0
  67. data/media/won.bmp +0 -0
  68. data/media/yippie.wav +0 -0
  69. data/src/const.rb +301 -0
  70. data/src/en.yml +62 -0
  71. data/src/gosu-preview.rb +116 -0
  72. data/src/helpers/audio.rb +9 -0
  73. data/src/helpers/graphics.rb +24 -0
  74. data/src/helpers/input.rb +28 -0
  75. data/src/ini_file.rb +25 -0
  76. data/src/level_info.rb +63 -0
  77. data/src/localization.rb +19 -0
  78. data/src/main.rb +86 -0
  79. data/src/map.rb +136 -0
  80. data/src/objects/collectible_object.rb +174 -0
  81. data/src/objects/effect_object.rb +120 -0
  82. data/src/objects/game_object.rb +363 -0
  83. data/src/objects/living_object.rb +657 -0
  84. data/src/objects/object_def.rb +45 -0
  85. data/src/script.rb +207 -0
  86. data/src/states/credits.rb +24 -0
  87. data/src/states/game.rb +463 -0
  88. data/src/states/help.rb +268 -0
  89. data/src/states/level_selection.rb +43 -0
  90. data/src/states/menu.rb +45 -0
  91. data/src/states/options.rb +81 -0
  92. data/src/states/state.rb +11 -0
  93. data/src/states/title.rb +17 -0
  94. data/src/states/victory.rb +20 -0
  95. metadata +188 -0
@@ -0,0 +1,17 @@
1
+ class Title < State
2
+ def initialize
3
+ @title = Gosu::Image.new 'media/title.png'
4
+ song(:menu).play
5
+ end
6
+
7
+ def draw
8
+ @title.draw 0, 0, 0
9
+ end
10
+
11
+ def button_down id
12
+ if menu_confirm? id or menu_cancel? id then
13
+ sound(:whoosh).play
14
+ State.current = LevelSelection.new#Menu.new
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,20 @@
1
+ class Victory < State
2
+ # case Data.State of
3
+ # State_WonInfo: begin
4
+ # if not (DXDraw.CanDraw and Application.Active) then Exit;
5
+ # DXDraw.Surface.Fill(0);
6
+ # DXImageList.Items[Image_Won].Draw(DXDraw.Surface, 0, 0, 0);
7
+ # DrawBMPText('‹brige Lebensenergie (je Punkt 5 Punkte): ' + IntToStr(TPMLiving(Data.ObjPlayers.Next).Life), 40, 150, 255, DXImageList.Items[Image_Font], DXDraw.Surface, Data.OptQuality);
8
+ # DrawBMPText('‹brige Schl¸ssel (je Schl¸ssel 25 Punkte): ' + IntToStr(Data.Keys), 40, 180, 245, DXImageList.Items[Image_Font], DXDraw.Surface, Data.OptQuality);
9
+ # DrawBMPText('‹brige Sterne (je Stern 3 Punkte): ' + IntToStr(Data.Stars - Data.StarsGoal), 40, 210, 235, DXImageList.Items[Image_Font], DXDraw.Surface, Data.OptQuality);
10
+ # DrawBMPText('‹brige Munition (je Schuss 2 Punkte): ' + IntToStr(Data.Ammo), 40, 240, 225, DXImageList.Items[Image_Font], DXDraw.Surface, Data.OptQuality);
11
+ # DrawBMPText('‹brige Bomben (je Bombe 5 Punkte): ' + IntToStr(Data.Bombs), 40, 270, 215, DXImageList.Items[Image_Font], DXDraw.Surface, Data.OptQuality);
12
+ # if Data.Map.LavaScore = 1 then begin
13
+ # DrawBMPText('‹brige Lava-Einfrierzeit (pro Bild 1 Punkt): ' + IntToStr(Data.Map.LavaTimeLeft) + ' Bilder', 40, 300, 205, DXImageList.Items[Image_Font], DXDraw.Surface, Data.OptQuality);
14
+ # DrawBMPText('Abstand zur Lava bei Spielende (pro Pixel 0.1 Punkte): ' + IntToStr(Data.Map.LavaPos - Data.Map.LevelTop) + ' Pixel', 40, 330, 195, DXImageList.Items[Image_Font], DXDraw.Surface, Data.OptQuality);
15
+ # end;
16
+ # DrawBMPText('Gesamtpunktestand: ' + IntToStr(Data.Score) + ' Punkte!', 40, 380, 255, DXImageList.Items[Image_Font], DXDraw.Surface, Data.OptQuality);
17
+ # DrawBMPText('(Taste dr¸cken)', 252, 440, 128, DXImageList.Items[Image_Font], DXDraw.Surface, Data.OptQuality);
18
+ # DXDraw.Flip;
19
+ # end;
20
+ end
metadata ADDED
@@ -0,0 +1,188 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: petermorphose
3
+ version: !ruby/object:Gem::Version
4
+ hash: 15
5
+ prerelease:
6
+ segments:
7
+ - 2
8
+ - 0
9
+ - 0
10
+ version: 2.0.0
11
+ platform: ruby
12
+ authors:
13
+ - Julian Raschke
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-08-23 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: gosu
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: locale
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ hash: 3
43
+ segments:
44
+ - 0
45
+ version: "0"
46
+ type: :runtime
47
+ version_requirements: *id002
48
+ description: Bundler manages an application's dependencies through its entire life, across many machines, systematically and repeatably
49
+ email:
50
+ - julian@raschke.de
51
+ executables:
52
+ - petermorphose
53
+ extensions: []
54
+
55
+ extra_rdoc_files: []
56
+
57
+ files:
58
+ - bin/petermorphose
59
+ - src/const.rb
60
+ - src/en.yml
61
+ - src/gosu-preview.rb
62
+ - src/helpers/audio.rb
63
+ - src/helpers/graphics.rb
64
+ - src/helpers/input.rb
65
+ - src/ini_file.rb
66
+ - src/level_info.rb
67
+ - src/localization.rb
68
+ - src/main.rb
69
+ - src/map.rb
70
+ - src/objects/collectible_object.rb
71
+ - src/objects/effect_object.rb
72
+ - src/objects/game_object.rb
73
+ - src/objects/living_object.rb
74
+ - src/objects/object_def.rb
75
+ - src/script.rb
76
+ - src/states/credits.rb
77
+ - src/states/game.rb
78
+ - src/states/help.rb
79
+ - src/states/level_selection.rb
80
+ - src/states/menu.rb
81
+ - src/states/options.rb
82
+ - src/states/state.rb
83
+ - src/states/title.rb
84
+ - src/states/victory.rb
85
+ - media/arg1.wav
86
+ - media/arg2.wav
87
+ - media/arrow_hit.wav
88
+ - media/blocker_break.wav
89
+ - media/bow.wav
90
+ - media/break1.wav
91
+ - media/break2.wav
92
+ - media/buttons.png
93
+ - media/collect_ammo.wav
94
+ - media/collect_freeze.wav
95
+ - media/collect_health.wav
96
+ - media/collect_key.wav
97
+ - media/collect_points.wav
98
+ - media/collect_star.wav
99
+ - media/danger.png
100
+ - media/death.wav
101
+ - media/dialogs.bmp
102
+ - media/door1.wav
103
+ - media/door2.wav
104
+ - media/eat.wav
105
+ - media/effects.bmp
106
+ - media/enemies.bmp
107
+ - media/explosion.wav
108
+ - media/game.ogg
109
+ - media/gui.bmp
110
+ - media/help1.wav
111
+ - media/help2.wav
112
+ - media/jump.wav
113
+ - media/lava.wav
114
+ - media/lever.wav
115
+ - media/menu.ogg
116
+ - media/morph.wav
117
+ - media/player.bmp
118
+ - media/player_arg.wav
119
+ - media/shshsh.wav
120
+ - media/skies.png
121
+ - media/slime1.wav
122
+ - media/slime2.wav
123
+ - media/slime3.wav
124
+ - media/stairs.wav
125
+ - media/stairs_steps.wav
126
+ - media/stuff.bmp
127
+ - media/sword_whoosh.wav
128
+ - media/tiles.bmp
129
+ - media/title.png
130
+ - media/title_dark.png
131
+ - media/turbo.wav
132
+ - media/water1.wav
133
+ - media/water2.wav
134
+ - media/whoosh.wav
135
+ - media/whoosh_back.wav
136
+ - media/won.bmp
137
+ - media/yippie.wav
138
+ - levels/flgr_Der_Alkohol_und_seine_Folgen.pml
139
+ - levels/jr_Am_Tempel_des_Harlow-Karlow.pml
140
+ - levels/jr_Auf_der_Flucht.pml
141
+ - levels/jr_Die_zwei_Baeume.pml
142
+ - levels/jr_Feuertauchen.pml
143
+ - levels/jr_Gemuetlicher_Aufstieg.pml
144
+ - levels/jr_Gruenhuegelshausen.pml
145
+ - levels/jr_Gruselgrotte.pml
146
+ - levels/jr_Hoch_hinaus.pml
147
+ - levels/jr_Vom_Ozean_in_die_Traufe.pml
148
+ - levels/jr_Weg_durchs_Feuer.pml
149
+ - levels/sl_Heimweg_zu_Henk.pml
150
+ - COPYING
151
+ - README.md
152
+ homepage: https://github.com/jlnr/petermorphose
153
+ licenses: []
154
+
155
+ post_install_message:
156
+ rdoc_options: []
157
+
158
+ require_paths:
159
+ - lib
160
+ required_ruby_version: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ hash: 3
166
+ segments:
167
+ - 0
168
+ version: "0"
169
+ required_rubygems_version: !ruby/object:Gem::Requirement
170
+ none: false
171
+ requirements:
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ hash: 21
175
+ segments:
176
+ - 1
177
+ - 3
178
+ - 7
179
+ version: 1.3.7
180
+ requirements: []
181
+
182
+ rubyforge_project:
183
+ rubygems_version: 1.8.7
184
+ signing_key:
185
+ specification_version: 3
186
+ summary: A platformer based
187
+ test_files: []
188
+