line-em-up 2.0.1 → 2.0.2

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: ab8a2b6f72c019ac45a4df38b4e56c2239646c04
4
- data.tar.gz: cae5d31fd414ddb83898588a948c4e520a14ff0b
3
+ metadata.gz: f33876d8167fc4cd8f1c3c1bd218574cc020f630
4
+ data.tar.gz: 7d4007a5ea3fcbfea327cb0b169aff270fdea535
5
5
  SHA512:
6
- metadata.gz: 581b26a09ed7bac975a290f70bde5612240c90d58f30ede916b1506899d7bb65464a26a7c04a136962a0eb3e07d1969de615266a7be8e0bd9b4957c115c6190e
7
- data.tar.gz: f61f5666766ef66fee57304beb1dbc1d3366707909e6af33b8aa7aad1d1c029e6c3b21c02a5b266b1e276d9a36b2c9ded9a4ab542072191d25b961a20cc946ba
6
+ metadata.gz: 639c64fd5a5b16ec65f574428f317058462368d19c306d6d1e7598920b17b21a592d2a842d6d01a2408ebee9c57447c38ccd4e702d2a0cf3966118e3b48fbff9
7
+ data.tar.gz: 50dc13ac2460dd1ddd5038c181b7465035aa4c44d5b86bef5d210de6c96c803a2bae70ac2482da025460f209495851e34d61d64d791edcbcb45a59fe12fc4090
@@ -144,6 +144,7 @@ class LoadoutWindow < Gosu::Window
144
144
  @button_id_mapping = self.class.get_id_button_mapping(self)
145
145
  # @loadout_button = LUIT::Button.new(self, :loadout, (@width / 2), get_center_font_ui_y, "Back To Menu", 0, 1)
146
146
  @back_button = LUIT::Button.new(self, :back, (@width / 2), @height, "Back", 0, 1)
147
+ @movement_x, @movement_y = [0.0, 0.0]
147
148
  end
148
149
 
149
150
  def dynamic_get_resolution_fs
@@ -164,7 +165,9 @@ class LoadoutWindow < Gosu::Window
164
165
 
165
166
  # @game_window_width, @game_window_height, @fullscreen = @resolution_menu.get_resolution
166
167
  # @difficulty = @difficulty_menu.get_difficulty
167
- @gl_background.scroll
168
+ # @movement_x += 1.0
169
+ @movement_y += 1.0
170
+ @movement_x, @movement_y = @gl_background.scroll(@scroll_factor, @movement_x, @movement_y)
168
171
  end
169
172
 
170
173
  def draw
@@ -152,7 +152,7 @@ class GLBackground
152
152
  z = @height_map[y][x + 1]
153
153
  # glColor4d(1, 1, 1, z)
154
154
  glTexCoord2d(info.right, info.top)
155
- puts "#{x}, #{offs_x}, #{POINTS_X}, #{y}, #{offs_y}, #{POINTS_Y}, #{z}"
155
+ # puts "#{x}, #{offs_x}, #{POINTS_X}, #{y}, #{offs_y}, #{POINTS_Y}, #{z}"
156
156
  glVertex3d(-0.5 + (x - offs_x + 1.0) / (POINTS_X-1), -0.5 + (y - offs_y - 0.0) / (POINTS_Y-2), z)
157
157
 
158
158
  z = @height_map[y+1][x + 1]
@@ -118,7 +118,7 @@ class Main < Gosu::Window
118
118
  {is_button: true, key: button_key}
119
119
  )
120
120
 
121
-
121
+ @movement_x, @movement_y = [0.0, 0.0]
122
122
 
123
123
 
124
124
  # @font.draw("<", width + 15, get_center_font_ui_y, 1, 1.0, 1.0, 0xff_ffff00)
@@ -138,7 +138,9 @@ class Main < Gosu::Window
138
138
 
139
139
  @game_window_width, @game_window_height, @fullscreen = @resolution_menu.get_values
140
140
  @difficulty = @difficulty_menu.get_values
141
- @gl_background.scroll
141
+ # @movement_x += 0.0
142
+ @movement_y += 1.0
143
+ @movement_x, @movement_y = @gl_background.scroll(1, @movement_x, @movement_y)
142
144
  end
143
145
 
144
146
  def draw
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: line-em-up
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Dana