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 +4 -4
- data/carpet_diem.gemspec +1 -1
- data/lib/carpet.rb +1 -1
- data/lib/endboss.rb +1 -1
- data/lib/lamp_with_genie.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1af6f768ae176508c2eb4b43b1fa5c0232159b7e
|
4
|
+
data.tar.gz: c694676c111392c1503f3731d0d0bdf5bbba94c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55ef62d622a9a35136d6069931b1876be96332dcee19c932a22768e0b4e72ebe924166e72ac801616ab925326bb471cd0534baa58dee0a8db9b23e5ef398bab0
|
7
|
+
data.tar.gz: 7812892c5938f910e2a179bdabe0010b6088cdabd6481b61a6184d77238ba134d68bc6237dd8ff88933e71de0e9419e20165b32baaffd7b8b2c495a38200bec4
|
data/carpet_diem.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'carpet_diem'
|
3
|
-
s.version = '0.0.
|
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!"
|
data/lib/carpet.rb
CHANGED
@@ -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
|
data/lib/endboss.rb
CHANGED
data/lib/lamp_with_genie.rb
CHANGED
@@ -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, "
|
45
|
-
@sound = Gosu::Sample.new(window, "
|
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
|