onsengame 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/NEWS.md +10 -0
  3. data/README.md +9 -0
  4. data/data/fonts/licenses/PressStart2P/FONTLOG.txt +69 -0
  5. data/data/fonts/licenses/PressStart2P/LICENSE.txt +94 -0
  6. data/lib/onsengame/command.rb +3 -22
  7. data/lib/onsengame/generator.rb +1 -0
  8. data/lib/onsengame/generator/new.rb +65 -0
  9. data/lib/onsengame/generator/template/new/.gitignore.tt +3 -0
  10. data/lib/onsengame/generator/template/new/Gemfile.tt +4 -0
  11. data/lib/onsengame/generator/template/new/LICENSE.txt.tt +22 -0
  12. data/lib/onsengame/generator/template/new/NAME.gemspec.tt +25 -0
  13. data/lib/onsengame/generator/template/new/README.md.tt +21 -0
  14. data/lib/onsengame/generator/template/new/Rakefile.tt +11 -0
  15. data/lib/onsengame/generator/template/new/bin/NAME.tt +9 -0
  16. data/lib/onsengame/generator/template/new/lib/NAME.tt +5 -0
  17. data/lib/onsengame/generator/template/new/lib/NAME/command.tt +6 -0
  18. data/lib/onsengame/generator/template/new/lib/NAME/object.tt +1 -0
  19. data/lib/onsengame/generator/template/new/lib/NAME/object/base.tt +9 -0
  20. data/lib/onsengame/generator/template/new/lib/NAME/scene.tt +3 -0
  21. data/lib/onsengame/generator/template/new/lib/NAME/scene/base.tt +9 -0
  22. data/lib/onsengame/generator/template/new/lib/NAME/scene/main.tt +9 -0
  23. data/lib/onsengame/generator/template/new/lib/NAME/scene/title.tt +10 -0
  24. data/lib/onsengame/generator/template/new/lib/NAME/version.tt +3 -0
  25. data/lib/onsengame/generator/template/new/lib/NAME/window.tt +7 -0
  26. data/lib/onsengame/generator/template/new/lib/NAME/z_order.tt +11 -0
  27. data/lib/onsengame/object/base.rb +0 -8
  28. data/lib/onsengame/version.rb +1 -1
  29. data/lib/onsengame/window.rb +23 -1
  30. data/onsengame.gemspec +0 -1
  31. metadata +24 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: adfa3bf9592cbeabb39c621dc8480623018279dd
4
- data.tar.gz: dcd9f986f4a2ed588417ea49b28186e9d917572c
3
+ metadata.gz: 47f2a140809c4654db3a923b5c5170976b29a1d6
4
+ data.tar.gz: cc95e86c64de10576e942c24e2512fe3a21877c0
5
5
  SHA512:
6
- metadata.gz: ca45aa43807676b0b6f899ef4ba58ce5f65d77dc7e8bc5c77fedc6aae48a30615ff49b1fe75e66abeef681fc27c689f596b8cc4abc7e8da299dff01bef4b7ccb
7
- data.tar.gz: 15dd49f84fe189e29b71b6850391e52da18b84f25c5e6864dbb5f82c4bdecbfd2b4b849fa25659ef4e521a9e557eb45d5d3de1521c7d54965378c1915356321c
6
+ metadata.gz: a933198d5afd97bf003d631ecbb655b2fd28c1a736762e4786b3b6dc5b0e00cbfeb79619ba53766734e3b4b63dd04f824f72ab927db14c8baeec9c08d012acdd
7
+ data.tar.gz: 53b08bdb8d1621ebb7d84523768eb1e8a138494da907d5e4710d1fa5fbb658297009e39673a6d88666729b5e1e3365a4128a8fb03f76f1f6f3fa8ca099f9d41e
data/NEWS.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # NEWS
2
2
 
3
+ ## 0.0.3: 2015-05-09
4
+
5
+ ### Improvements
6
+
7
+ * Added LICENSE.txt for "Press Start" font.
8
+ * Moved a utility method `draw_rectangle` to Window class.
9
+ * Added a utility method `draw_rectangle_outline`.
10
+ * Added new generator using Thor and ERB.
11
+ * Changed Onsengame's classes to super class.
12
+
3
13
  ## 0.0.2: 2015-05-06
4
14
 
5
15
  ### Improvements
data/README.md CHANGED
@@ -19,8 +19,17 @@ A 2D game framework using Gosu with Ruby.
19
19
 
20
20
  ## License
21
21
 
22
+ ### Source Code
23
+
22
24
  MIT License. See LICENSE.txt for details.
23
25
 
26
+ ### Fonts
27
+
28
+ #### Press Start 2P
29
+
30
+ SIL Open Font License, Version 1.1.
31
+ See data/fonts/licenses/PressStart2P/LICENSE.txt for details.
32
+
24
33
  ## Contributing
25
34
 
26
35
  1. Fork it
@@ -0,0 +1,69 @@
1
+ FONTLOG for the Press Start 2P fonts
2
+
3
+ This file provides detailed information on the Press Start 2P Font Software.
4
+ This information should be distributed along with the Press Start 2P fonts
5
+ and any derivative works.
6
+
7
+
8
+ Basic Font Information
9
+
10
+ Press Start 2P is a bitmap font based on the font design from 1980s Namco
11
+ arcade games. Although the design of uppercase letters and digits dates
12
+ back to Atari's "Sprint" (1977), the specific glyph forms in this TrueType
13
+ conversion are based on those from "Return of Ishtar" (1986), one of the
14
+ first games to include and regularly use lowercase as well as uppercase
15
+ letters in its screen font.
16
+
17
+ Unlike the original font from the "Return of Ishtar" ROM, Press Start 2P
18
+ includes a wide variety of non-ASCII Unicode characters for pan-European
19
+ use, including Greek and Cyrillic.
20
+
21
+
22
+ ChangeLog
23
+
24
+ 1 November 2012 (Cody Boisclair) Press Start 2P version 2.14
25
+ - Add necessary flags for Windows to recognize as a valid Greek/Cyrillic font
26
+ - Change line gap to zero to match version on Google Web Fonts
27
+
28
+ 15 June 2011 (Cody Boisclair) Press Start 2P version 2.13
29
+ - Correct accent marks on U+00D9 Ù and U+00DA Ú
30
+
31
+ 13 June 2011 (Cody Boisclair) Press Start 2P version 2.12
32
+ - Correct glyph for underscore _
33
+ - Move glyphs for Greek iota one pixel to left
34
+ - Fix 'notdef' glyph, whose encoding was broken during last update
35
+
36
+ 13 June 2011 (Cody Boisclair) Press Start 2P version 2.11
37
+ - Retrace characters from bitmaps to fix glyph width bug
38
+ - Add glyphs for Spacing Modifier Letters
39
+ - Move U+201E „ one pixel to left, U+201A ‚ one pixel to right
40
+
41
+ 13 June 2011 (Cody Boisclair) Press Start 2P version 2.10
42
+ - Add Greek and Cyrillic alphabets.
43
+ - Redesign U+0138 ĸ to match shape of Greek kappa
44
+ - Correct glyph shape for grave accent `
45
+ - Move U+00B7 · down one row to appear more centered
46
+ - Modify FONTLOG description to reflect Greek & Cyrillic addition
47
+
48
+ 13 June 2011 (Cody Boisclair) Press Start 2P version 2.01
49
+ - Correct glyph for @; improve glyphs for © and ® based on original @.
50
+
51
+ 12 June 2011 (Cody Boisclair) Press Start 2P version 2.0
52
+ - Initial public release.
53
+
54
+
55
+ Acknowledgements
56
+
57
+ If you make modifications be sure to add your name (N), email (E),
58
+ web-address (if you have one) (W) and description (D).
59
+ This list is in alphabetical order.
60
+
61
+ N: Cody Boisclair ("CodeMan38")
62
+ E: cody@zone38.net
63
+ W: http://zone38.net/font/
64
+ D: Conversion of glyphs to TrueType; creation of non-ASCII glyphs
65
+
66
+ N: "QTQ"
67
+ E: [unknown]
68
+ W: http://www22.atpages.jp/nbgifan/namco.html
69
+ D: Original extraction of glyph bitmaps
@@ -0,0 +1,94 @@
1
+ Copyright (c) 2011, Cody "CodeMan38" Boisclair (cody@zone38.net),
2
+ with Reserved Font Name "Press Start".
3
+
4
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
5
+ This license is copied below, and is also available with a FAQ at:
6
+ http://scripts.sil.org/OFL
7
+
8
+
9
+ -----------------------------------------------------------
10
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
11
+ -----------------------------------------------------------
12
+
13
+ PREAMBLE
14
+ The goals of the Open Font License (OFL) are to stimulate worldwide
15
+ development of collaborative font projects, to support the font creation
16
+ efforts of academic and linguistic communities, and to provide a free and
17
+ open framework in which fonts may be shared and improved in partnership
18
+ with others.
19
+
20
+ The OFL allows the licensed fonts to be used, studied, modified and
21
+ redistributed freely as long as they are not sold by themselves. The
22
+ fonts, including any derivative works, can be bundled, embedded,
23
+ redistributed and/or sold with any software provided that any reserved
24
+ names are not used by derivative works. The fonts and derivatives,
25
+ however, cannot be released under any other type of license. The
26
+ requirement for fonts to remain under this license does not apply
27
+ to any document created using the fonts or their derivatives.
28
+
29
+ DEFINITIONS
30
+ "Font Software" refers to the set of files released by the Copyright
31
+ Holder(s) under this license and clearly marked as such. This may
32
+ include source files, build scripts and documentation.
33
+
34
+ "Reserved Font Name" refers to any names specified as such after the
35
+ copyright statement(s).
36
+
37
+ "Original Version" refers to the collection of Font Software components as
38
+ distributed by the Copyright Holder(s).
39
+
40
+ "Modified Version" refers to any derivative made by adding to, deleting,
41
+ or substituting -- in part or in whole -- any of the components of the
42
+ Original Version, by changing formats or by porting the Font Software to a
43
+ new environment.
44
+
45
+ "Author" refers to any designer, engineer, programmer, technical
46
+ writer or other person who contributed to the Font Software.
47
+
48
+ PERMISSION & CONDITIONS
49
+ Permission is hereby granted, free of charge, to any person obtaining
50
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
51
+ redistribute, and sell modified and unmodified copies of the Font
52
+ Software, subject to the following conditions:
53
+
54
+ 1) Neither the Font Software nor any of its individual components,
55
+ in Original or Modified Versions, may be sold by itself.
56
+
57
+ 2) Original or Modified Versions of the Font Software may be bundled,
58
+ redistributed and/or sold with any software, provided that each copy
59
+ contains the above copyright notice and this license. These can be
60
+ included either as stand-alone text files, human-readable headers or
61
+ in the appropriate machine-readable metadata fields within text or
62
+ binary files as long as those fields can be easily viewed by the user.
63
+
64
+ 3) No Modified Version of the Font Software may use the Reserved Font
65
+ Name(s) unless explicit written permission is granted by the corresponding
66
+ Copyright Holder. This restriction only applies to the primary font name as
67
+ presented to the users.
68
+
69
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
70
+ Software shall not be used to promote, endorse or advertise any
71
+ Modified Version, except to acknowledge the contribution(s) of the
72
+ Copyright Holder(s) and the Author(s) or with their explicit written
73
+ permission.
74
+
75
+ 5) The Font Software, modified or unmodified, in part or in whole,
76
+ must be distributed entirely under this license, and must not be
77
+ distributed under any other license. The requirement for fonts to
78
+ remain under this license does not apply to any document created
79
+ using the Font Software.
80
+
81
+ TERMINATION
82
+ This license becomes null and void if any of the above conditions are
83
+ not met.
84
+
85
+ DISCLAIMER
86
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
87
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
88
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
89
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
90
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
91
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
92
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
93
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
94
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -1,10 +1,12 @@
1
- require "fileutils"
2
1
  require "thor"
2
+ require "onsengame/generator"
3
3
  require "onsengame/version"
4
4
  require "onsengame/window"
5
5
 
6
6
  module Onsengame
7
7
  class Command < Thor
8
+ register(Generator::New, "new", "new NAME", "Generate new game")
9
+
8
10
  desc "version", "Show version"
9
11
  def version
10
12
  puts(VERSION)
@@ -16,26 +18,5 @@ module Onsengame
16
18
  @window = Window.new(options.dup)
17
19
  @window.show
18
20
  end
19
-
20
- desc "generate NAME", "Generate project"
21
- def generate(name)
22
- raise "Error: File exists." if File.exist?(name)
23
-
24
- onsengame_dir = File.expand_path("../../..", __FILE__)
25
- paths = Dir.glob("#{onsengame_dir}/*")
26
- paths << File.join(onsengame_dir, ".gitignore")
27
- paths.each do |path_from|
28
- FileUtils.mkdir_p(name)
29
- path_to = File.join(name, File.basename(path_from))
30
- FileUtils.cp_r(path_from, path_to)
31
- end
32
-
33
- FileUtils.cd(name) do
34
- system("git", "init")
35
- system("git", "add", ".")
36
- system("git", "commit -m 'Initial commit'")
37
- system("rename_project", "onsengame", name)
38
- end
39
- end
40
21
  end
41
22
  end
@@ -0,0 +1 @@
1
+ require "onsengame/generator/new"
@@ -0,0 +1,65 @@
1
+ require "thor"
2
+
3
+ module Onsengame
4
+ module Generator
5
+ class New < Thor::Group
6
+ include Thor::Actions
7
+
8
+ argument :name
9
+
10
+ def self.source_root
11
+ File.join(File.dirname(__FILE__), "template", "new")
12
+ end
13
+
14
+ def create_lib_file
15
+ [
16
+ "NAME",
17
+ "NAME/command",
18
+ "NAME/object",
19
+ "NAME/object/base",
20
+ "NAME/scene",
21
+ "NAME/scene/base",
22
+ "NAME/scene/title",
23
+ "NAME/scene/main",
24
+ "NAME/version",
25
+ "NAME/window",
26
+ "NAME/z_order",
27
+ ].each do |path|
28
+ template("lib/#{path}.tt",
29
+ "#{name}/lib/#{path.gsub("NAME", name)}.rb")
30
+ end
31
+ end
32
+
33
+ def create_bin_file
34
+ [
35
+ "NAME",
36
+ ].each do |path|
37
+ src = "bin/#{path}.tt"
38
+ dist = "#{name}/bin/#{path.gsub("NAME", name)}"
39
+ template(src, dist)
40
+ chmod(dist, 0755)
41
+ end
42
+ end
43
+
44
+ def create_root_file
45
+ config = {
46
+ name: `git config user.name`.chomp,
47
+ email: `git config user.email`.chomp
48
+ }
49
+
50
+ [
51
+ "NAME.gemspec",
52
+ ".gitignore",
53
+ "Gemfile",
54
+ "LICENSE.txt",
55
+ "Rakefile",
56
+ "README.md",
57
+ ].each do |path|
58
+ template("#{path}.tt",
59
+ "#{name}/#{path.gsub("NAME", name)}",
60
+ config)
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,3 @@
1
+ /.bundle/
2
+ /pkg/
3
+ /tmp/
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in <%= name %>.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) <%= Time.now.year %> <%= config[:name] || 'YOUR NAME' %>
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib_dir = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
4
+ require "<%= name %>/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "<%= name %>"
8
+ spec.version = <%= name.capitalize %>::VERSION
9
+ spec.authors = ["<%= config[:name] || 'TODO: Write your name' %>"]
10
+ spec.email = ["<%= config[:email] || 'TODO: Write your email address' %>"]
11
+ spec.summary = %q{TODO: Write a short summary, because Rubygems requires one.}
12
+ spec.description = %q{TODO: Write a longer description or delete this line.}
13
+ spec.homepage = "TODO: Put your gem's website or public repo URL here."
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) {|f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_runtime_dependency("onsengame")
22
+
23
+ spec.add_development_dependency("bundler")
24
+ spec.add_development_dependency("rake")
25
+ end
@@ -0,0 +1,21 @@
1
+ # <%= name.capitalize %> [![Gem Version](https://badge.fury.io/rb/<%= name %>.svg)](http://badge.fury.io/rb/<%= name %>)
2
+
3
+ TODO: Describe your game
4
+
5
+ ## Dependencies
6
+
7
+ * [Gosu](https://www.libgosu.org/)
8
+
9
+ ## Usage
10
+
11
+ ### Production commands
12
+
13
+ $ bin/<%= name %>
14
+
15
+ ### Development commands
16
+
17
+ $ rake help
18
+
19
+ ## License
20
+
21
+ MIT License. See LICENSE.txt for details.
@@ -0,0 +1,11 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ task :demo do
4
+ sh("bin/<%= name %>", "demo")
5
+ end
6
+
7
+ task :help do
8
+ sh("rake", "-T")
9
+ end
10
+
11
+ task :default => :help
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ base_dir = File.expand_path("../..", __FILE__)
4
+ lib_dir = File.join(base_dir, "lib")
5
+ $LOAD_PATH.unshift(lib_dir)
6
+
7
+ require "<%= name %>/command"
8
+
9
+ <%= name.capitalize %>::Command.start
@@ -0,0 +1,5 @@
1
+ require "<%= name %>/window"
2
+ require "<%= name %>/object"
3
+ require "<%= name %>/scene"
4
+ require "<%= name %>/version"
5
+ require "<%= name %>/z_order"
@@ -0,0 +1,6 @@
1
+ require "onsengame/command"
2
+
3
+ module <%= name.capitalize %>
4
+ class Command < Onsengame::Command
5
+ end
6
+ end
@@ -0,0 +1 @@
1
+ require "<%= name %>/object/base"
@@ -0,0 +1,9 @@
1
+ require "onsengame/object/base"
2
+
3
+ module <%= name.capitalize %>
4
+ module Object
5
+ module Base
6
+ include Onsengame::Object::Base
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ require "<%= name %>/scene/base"
2
+ require "<%= name %>/scene/title"
3
+ require "<%= name %>/scene/main"
@@ -0,0 +1,9 @@
1
+ require "onsengame/scene/base"
2
+
3
+ module <%= name.capitalize %>
4
+ module Scene
5
+ module Base
6
+ include Onsengame::Scene::Base
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ require "onsengame/scene/main"
2
+ require "<%= name %>/scene/base"
3
+
4
+ module <%= name.capitalize %>
5
+ module Scene
6
+ class Main < Onsengame::Scene::Main
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,10 @@
1
+ require "onsengame/scene/title"
2
+ require "<%= name %>/scene/base"
3
+ require "<%= name %>/scene/main"
4
+
5
+ module <%= name.capitalize %>
6
+ module Scene
7
+ class Title < Onsengame::Scene::Title
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,3 @@
1
+ module <%= name.capitalize %>
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,7 @@
1
+ require "onsengame/window"
2
+ require "<%= name %>/scene"
3
+
4
+ module <%= name.capitalize %>
5
+ class Window < Onsengame::Window
6
+ end
7
+ end
@@ -0,0 +1,11 @@
1
+ module <%= name.capitalize %>
2
+ module ZOrder
3
+ [
4
+ :BACK,
5
+ :OBJECT,
6
+ :TEXT,
7
+ ].each_with_index do |type, i|
8
+ const_set(type, i)
9
+ end
10
+ end
11
+ end
@@ -25,14 +25,6 @@ module Onsengame
25
25
 
26
26
  def draw
27
27
  end
28
-
29
- def draw_rectangle(x1, y1, x2, y2, color, z_order)
30
- @window.draw_quad(x1, y1, color,
31
- x2, y1, color,
32
- x2, y2, color,
33
- x1, y2, color,
34
- z_order)
35
- end
36
28
  end
37
29
  end
38
30
  end
@@ -1,3 +1,3 @@
1
1
  module Onsengame
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -35,9 +35,31 @@ module Onsengame
35
35
  end
36
36
  end
37
37
 
38
- private
39
38
  def current_scene
40
39
  @scenes[0]
41
40
  end
41
+
42
+ def draw_rectangle(x1, y1, x2, y2, color, z_order)
43
+ draw_quad(x1, y1, color,
44
+ x2, y1, color,
45
+ x2, y2, color,
46
+ x1, y2, color,
47
+ z_order)
48
+ end
49
+
50
+ def draw_rectangle_outline(x1, y1, x2, y2, color, z_order)
51
+ draw_line(x1, y1, color,
52
+ x2, y1, color,
53
+ z_order)
54
+ draw_line(x1, y1, color,
55
+ x1, y2, color,
56
+ z_order)
57
+ draw_line(x1, y2, color,
58
+ x2, y2, color,
59
+ z_order)
60
+ draw_line(x2, y1, color,
61
+ x2, y2, color,
62
+ z_order)
63
+ end
42
64
  end
43
65
  end
@@ -20,7 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_runtime_dependency("gosu")
22
22
  spec.add_runtime_dependency("thor")
23
- spec.add_runtime_dependency("rename_project")
24
23
 
25
24
  spec.add_development_dependency("test-unit")
26
25
  spec.add_development_dependency("bundler")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onsengame
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masafumi Yokoyama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-06 00:00:00.000000000 Z
11
+ date: 2015-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gosu
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: rename_project
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: test-unit
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -110,8 +96,30 @@ files:
110
96
  - Rakefile
111
97
  - bin/onsengame
112
98
  - data/fonts/PressStart2P.ttf
99
+ - data/fonts/licenses/PressStart2P/FONTLOG.txt
100
+ - data/fonts/licenses/PressStart2P/LICENSE.txt
113
101
  - lib/onsengame.rb
114
102
  - lib/onsengame/command.rb
103
+ - lib/onsengame/generator.rb
104
+ - lib/onsengame/generator/new.rb
105
+ - lib/onsengame/generator/template/new/.gitignore.tt
106
+ - lib/onsengame/generator/template/new/Gemfile.tt
107
+ - lib/onsengame/generator/template/new/LICENSE.txt.tt
108
+ - lib/onsengame/generator/template/new/NAME.gemspec.tt
109
+ - lib/onsengame/generator/template/new/README.md.tt
110
+ - lib/onsengame/generator/template/new/Rakefile.tt
111
+ - lib/onsengame/generator/template/new/bin/NAME.tt
112
+ - lib/onsengame/generator/template/new/lib/NAME.tt
113
+ - lib/onsengame/generator/template/new/lib/NAME/command.tt
114
+ - lib/onsengame/generator/template/new/lib/NAME/object.tt
115
+ - lib/onsengame/generator/template/new/lib/NAME/object/base.tt
116
+ - lib/onsengame/generator/template/new/lib/NAME/scene.tt
117
+ - lib/onsengame/generator/template/new/lib/NAME/scene/base.tt
118
+ - lib/onsengame/generator/template/new/lib/NAME/scene/main.tt
119
+ - lib/onsengame/generator/template/new/lib/NAME/scene/title.tt
120
+ - lib/onsengame/generator/template/new/lib/NAME/version.tt
121
+ - lib/onsengame/generator/template/new/lib/NAME/window.tt
122
+ - lib/onsengame/generator/template/new/lib/NAME/z_order.tt
115
123
  - lib/onsengame/object.rb
116
124
  - lib/onsengame/object/base.rb
117
125
  - lib/onsengame/scene.rb