Module: Goblins
- Defined in:
- lib/goblins.rb,
lib/goblins.rb,
lib/goblins/version.rb
Overview
add convenience pre-configurated generatored with build-in spritesheet (see config)
Defined Under Namespace
Classes: Image, Spritesheet
Constant Summary
collapse
- SpriteSheet =
add convenience (alternate spelling) alias - why? why not?
Spritesheet
- Sheet =
Spritesheet
- Sprite =
Spritesheet
- MAJOR =
0
- MINOR =
1
- PATCH =
0
- VERSION =
[MAJOR,MINOR,PATCH].join('.')
Class Method Summary
collapse
Class Method Details
.banner ⇒ Object
14
15
16
|
# File 'lib/goblins/version.rb', line 14
def self.banner
"goblins/#{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}] in (#{root})"
end
|
.generator ⇒ Object
20
21
22
23
24
25
|
# File 'lib/goblins.rb', line 20
def self.generator
@generator ||= Pixelart::Generator.new( "#{root}/config/spritesheet-24x24.png",
"#{root}/config/spritesheet-24x24.csv",
width: 24,
height: 24 )
end
|
.root ⇒ Object
18
19
20
|
# File 'lib/goblins/version.rb', line 18
def self.root
File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
end
|
.version ⇒ Object
10
11
12
|
# File 'lib/goblins/version.rb', line 10
def self.version
VERSION
end
|