Ronela 0.0.5 → 0.0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/ronela +6 -7
- data/lib/ronela.rb +13 -12
- metadata +3 -3
data/bin/ronela
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
require 'rubygems'
|
3
2
|
require 'ronela'
|
4
3
|
require 'optparse'
|
5
4
|
|
@@ -8,24 +7,24 @@ r = Ronela::Ronela.new
|
|
8
7
|
|
9
8
|
guion = ARGV[0]
|
10
9
|
if ARGV.size < 1
|
11
|
-
|
12
10
|
abort "#{$0}: <archivo guion>"
|
13
11
|
end
|
14
|
-
|
12
|
+
|
15
13
|
|
16
14
|
|
17
15
|
opciones = {}
|
18
16
|
OptionParser.new do |opts|
|
19
17
|
opts.banner = "#{$0}: [opciones] <archive guion>"
|
20
18
|
|
21
|
-
opts.on("--guardar-bmp") do |v|
|
22
|
-
opciones[:guardar] =
|
19
|
+
opts.on("--guardar-bmp GUION") do |v|
|
20
|
+
opciones[:guardar] = v
|
23
21
|
end
|
24
|
-
end
|
22
|
+
end.parse!
|
25
23
|
|
26
24
|
unless opciones[:guardar].nil?
|
27
|
-
r.guardar_bmp_guion
|
25
|
+
r.guardar_bmp_guion opciones[:guardar]
|
28
26
|
else
|
27
|
+
abort "#{$0}: No se encontro guion #{guion}, indiquelo\n" unless File.exists? guion
|
29
28
|
r.leer_guion guion
|
30
29
|
end
|
31
30
|
|
data/lib/ronela.rb
CHANGED
@@ -446,11 +446,12 @@ module Ronela
|
|
446
446
|
@@audio = false
|
447
447
|
end
|
448
448
|
|
449
|
+
SDL::WM.setCaption("Ronela", "")
|
449
450
|
$pantalla = SDL.setVideoMode($config[:PANTALLA_ANCHO], $config[:PANTALLA_ALTO], $config[:PANTALLA_BPP], $config[:PANTALLA_FLAGS])
|
450
451
|
end
|
451
452
|
|
452
453
|
def initialize
|
453
|
-
|
454
|
+
|
454
455
|
@salir = false
|
455
456
|
|
456
457
|
#detener lectura de guion
|
@@ -759,17 +760,17 @@ module Ronela
|
|
759
760
|
|
760
761
|
#se detiene hasta que alguien diga algo
|
761
762
|
if @parar
|
762
|
-
while evento = SDL::Event.wait
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
end
|
763
|
+
#while evento = SDL::Event.wait
|
764
|
+
# case evento
|
765
|
+
# when SDL::Event::MouseButtonDown
|
766
|
+
# #se cancela los sonidos
|
767
|
+
# SDL::Mixer.halt(-1)
|
768
|
+
# break
|
769
|
+
# when SDL::Event::Quit
|
770
|
+
# @salir = true
|
771
|
+
# break
|
772
|
+
# end
|
773
|
+
#end
|
773
774
|
@parar = false
|
774
775
|
$pantalla.saveBMP(File.join(dir_bmps, "#{conteo_bmps}.bmp"))
|
775
776
|
conteo_bmps += 1
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Ronela
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.5
|
4
|
+
version: 0.0.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-11-17 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubysdl
|
16
|
-
requirement: &
|
16
|
+
requirement: &68522560 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 0.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *68522560
|
25
25
|
description:
|
26
26
|
email: info@manadalibre.org
|
27
27
|
executables:
|