carpet_diem 0.0.2 → 0.0.3

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: b0960bb7f79885d1d5b68c00616bb909162e2106
4
- data.tar.gz: 9d9bd42f871625f42fca88e1681f3d48aa0197fd
3
+ metadata.gz: 1af6f768ae176508c2eb4b43b1fa5c0232159b7e
4
+ data.tar.gz: c694676c111392c1503f3731d0d0bdf5bbba94c9
5
5
  SHA512:
6
- metadata.gz: 1c178944b661ee20c1cfc45be4c87476c23dfdeaecd0e562b21f015fddabf12c8894fc06cabd2337c1815ce77dc0dc6b783aeb26c8c20aa438b3add1faf756e4
7
- data.tar.gz: 8ac3cae07ac6e0d0900b1de6a1703db73f30f945c01f2ffe36ea5218c5c517bd3dfc9fc705b853c6a56a737495467637760b14a85043212591ca01f90b4fe3c9
6
+ metadata.gz: 55ef62d622a9a35136d6069931b1876be96332dcee19c932a22768e0b4e72ebe924166e72ac801616ab925326bb471cd0534baa58dee0a8db9b23e5ef398bab0
7
+ data.tar.gz: 7812892c5938f910e2a179bdabe0010b6088cdabd6481b61a6184d77238ba134d68bc6237dd8ff88933e71de0e9419e20165b32baaffd7b8b2c495a38200bec4
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'carpet_diem'
3
- s.version = '0.0.2'
3
+ s.version = '0.0.3'
4
4
  s.licenses = ['MIT']
5
5
  s.summary = "A Gosu game about a flying carpet"
6
6
  s.description = "Be a flying carpet that hovers through the clouds. On your way up you will encounter magic lamps. Rub them to see if a good or an evil genie is hidden inside, the one adding points to your score, the other being your worst enemy!"
@@ -9,7 +9,7 @@ class Carpet
9
9
  alias :image :carpet_image
10
10
  undef :carpet_image
11
11
 
12
- def initialize(window, carpet_image_file = 'carpet.png', carpet_image_flipped_file = 'carpet_flipped.png')
12
+ def initialize(window, carpet_image_file = 'media/carpet.png', carpet_image_flipped_file = 'media/carpet_flipped.png')
13
13
  @carpet_image = @carpet_image_right = Gosu::Image.new(window, carpet_image_file)
14
14
  @carpet_image_left = Gosu::Image.new(window, carpet_image_flipped_file)
15
15
  @window = window
@@ -1,7 +1,7 @@
1
1
  class Endboss
2
2
 
3
3
  def initialize(window)
4
- @image = Gosu::Image.new(window, 'endboss.png')
4
+ @image = Gosu::Image.new(window, 'media/endboss.png')
5
5
  @x = window.width/2 - @image.width/2
6
6
  @y = window.height
7
7
  @scale = 0.0
@@ -9,11 +9,11 @@ class LampWithGenie
9
9
 
10
10
  def initialize(window, flipped)
11
11
  if flipped
12
- @image = Gosu::Image.new(window, 'lamp_flipped.png')
12
+ @image = Gosu::Image.new(window, 'media/lamp_flipped.png')
13
13
  else
14
- @image = Gosu::Image.new(window, 'lamp.png')
14
+ @image = Gosu::Image.new(window, 'media/lamp.png')
15
15
  end
16
- @sound = Gosu::Sample.new(window, 'lamp.m4a')
16
+ @sound = Gosu::Sample.new(window, 'media/lamp.m4a')
17
17
  @rubbed = false
18
18
  @y = -@image.height
19
19
  end
@@ -41,8 +41,8 @@ class LampWithGenie
41
41
  def initialize(window, flipped, lamp)
42
42
  prefix = good? ? 'good' : 'evil'
43
43
  suffix = '_flipped' if flipped
44
- @image = Gosu::Image.new(window, "lib/media/#{prefix}_genie#{suffix}.png")
45
- @sound = Gosu::Sample.new(window, "lib/media/#{prefix}_genie.m4a")
44
+ @image = Gosu::Image.new(window, "media/#{prefix}_genie#{suffix}.png")
45
+ @sound = Gosu::Sample.new(window, "media/#{prefix}_genie.m4a")
46
46
  @lamp = lamp
47
47
  @y = -@image.height
48
48
  @flipped = flipped
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carpet_diem
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
  - Brigitte Markmann