onsengame 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47f2a140809c4654db3a923b5c5170976b29a1d6
4
- data.tar.gz: cc95e86c64de10576e942c24e2512fe3a21877c0
3
+ metadata.gz: a875b7b4cd1e5df81cc3fd4ffa61eb159bc1909e
4
+ data.tar.gz: 9589a2444b2b9bc82455625811896c00572bacf4
5
5
  SHA512:
6
- metadata.gz: a933198d5afd97bf003d631ecbb655b2fd28c1a736762e4786b3b6dc5b0e00cbfeb79619ba53766734e3b4b63dd04f824f72ab927db14c8baeec9c08d012acdd
7
- data.tar.gz: 53b08bdb8d1621ebb7d84523768eb1e8a138494da907d5e4710d1fa5fbb658297009e39673a6d88666729b5e1e3365a4128a8fb03f76f1f6f3fa8ca099f9d41e
6
+ metadata.gz: 0f2f3f8b2a7039f42a82a4a91e899976a5882ba82e93d386a9ec807308dead7a8d9d263aa73a976589a6e5eb42f7699d38ab6fe89c8e04c66e125a98664bd014
7
+ data.tar.gz: 2001453583eeb7e4089e08430371b3a8e4b5d54eb646b19ffa56638544fe83a55140d994cfdae1b599c98197084cc20b310cc31fc61219063f9a23a5a0572e61
data/NEWS.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # NEWS
2
2
 
3
+ ## 0.0.4: 2015-05-09
4
+
5
+ ### Improvements
6
+
7
+ * Specified framework version.
8
+
9
+ ### Fixes
10
+
11
+ * Fixed used classes to use child classes.
12
+
3
13
  ## 0.0.3: 2015-05-09
4
14
 
5
15
  ### Improvements
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_runtime_dependency("onsengame")
21
+ spec.add_runtime_dependency("onsengame", ">= <%= Onsengame::VERSION %>")
22
22
 
23
23
  spec.add_development_dependency("bundler")
24
24
  spec.add_development_dependency("rake")
@@ -1,6 +1,18 @@
1
- require "onsengame/command"
1
+ require "thor"
2
+ require "<%= name %>"
2
3
 
3
4
  module <%= name.capitalize %>
4
- class Command < Onsengame::Command
5
+ class Command < Thor
6
+ desc "version", "Show version"
7
+ def version
8
+ puts(VERSION)
9
+ end
10
+
11
+ desc "start [OPTIONS]", "Run game"
12
+ option :fullscreen, type: :boolean
13
+ def start
14
+ @window = Window.new(options.dup)
15
+ @window.show
16
+ end
5
17
  end
6
18
  end
@@ -1,10 +1,15 @@
1
1
  require "onsengame/scene/title"
2
- require "<%= name %>/scene/base"
3
- require "<%= name %>/scene/main"
2
+ require "<%= name %>/scene"
4
3
 
5
4
  module <%= name.capitalize %>
6
5
  module Scene
7
6
  class Title < Onsengame::Scene::Title
7
+ def button_down(id)
8
+ case id
9
+ when Gosu::KbReturn
10
+ @window.scenes.unshift(Main.new(@window))
11
+ end
12
+ end
8
13
  end
9
14
  end
10
15
  end
@@ -3,5 +3,11 @@ require "<%= name %>/scene"
3
3
 
4
4
  module <%= name.capitalize %>
5
5
  class Window < Onsengame::Window
6
+ def initialize(options={})
7
+ super
8
+ self.caption = "<%= name.capitalize %>"
9
+ @scenes = []
10
+ @scenes << Scene::Title.new(self)
11
+ end
6
12
  end
7
13
  end
@@ -1,3 +1,3 @@
1
1
  module Onsengame
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onsengame
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masafumi Yokoyama