smalruby 0.0.23 → 0.0.24

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of smalruby might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a76d017fb8b6cd731e780d4a89a9f7c72c69cf30
4
- data.tar.gz: 54b075a46a50612a8669df99649ecf9286ea4fba
3
+ metadata.gz: 1b05433c70630faab08662262c001b7084b7c17e
4
+ data.tar.gz: fd5718255ada65f1d5e3df9aebda766c26042052
5
5
  SHA512:
6
- metadata.gz: 6c67d0a0ca8c4cc53608166a1d811fc0444645cfb11a69fc5babfb1e5b3f60860990b40f8e4fb5733d364e6e42da55ae17db94ddb068a69c73ccb8525d6185d1
7
- data.tar.gz: 1123ef3818f59b4fdbde50e166a98f785fe06266c1dc79c2bd77e83b675f5cd31927b1d02ec58392643f13040fd7fdab2a577181913a3ce91a93f7dc690e38ee
6
+ metadata.gz: eaca15d745db604ef19022a1c91741386bfa7060822f173cf5386e22b5c5416e66d953567f3b389d21ec39eab7f8e200f1a5b850afb47b778033038c1e7a1d61
7
+ data.tar.gz: 1ec6f49633a79896458fc5e021fa418a1d1ae3719d61e4eabd54a432b7f5b95bc5fe2b45d799909ae0c157270634687433ec013427d4c411a5f6c0bb405cce0f
@@ -227,12 +227,13 @@ module Smalruby
227
227
  # ( )に行く
228
228
  def go_to(target)
229
229
  if target == :mouse
230
- self.x = Input.mouse_pos_x - (image.width / 2)
231
- self.y = Input.mouse_pos_y - (image.height / 2)
230
+ x = Input.mouse_pos_x - center_x
231
+ y = Input.mouse_pos_y - center_y
232
232
  else
233
- self.x = target.x
234
- self.y = target.y
233
+ x = target.x
234
+ y = target.y
235
235
  end
236
+ self.position = [x, y]
236
237
  end
237
238
 
238
239
  # @!endgroup
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
  module Smalruby
4
- VERSION = '0.0.23'
4
+ VERSION = '0.0.24'
5
5
  end
data/lib/smalruby.rb CHANGED
@@ -65,6 +65,7 @@ module Smalruby
65
65
  private
66
66
 
67
67
  def init_window_application
68
+ Window.windowed = false unless Util.windows?
68
69
  Window.caption = File.basename($PROGRAM_NAME)
69
70
  Window.fps = 15
70
71
  Window.bgcolor = [255, 255, 255]
data/smalruby.gemspec CHANGED
@@ -40,7 +40,7 @@ Gem::Specification.new do |spec|
40
40
  if is_windows
41
41
  spec.add_runtime_dependency 'dxruby', '1.4.0'
42
42
  else
43
- spec.add_runtime_dependency 'dxruby_sdl', '~> 0.0.9'
43
+ spec.add_runtime_dependency 'dxruby_sdl', '~> 0.0.10'
44
44
  end
45
45
  spec.add_runtime_dependency 'dino', '~> 0.11.2'
46
46
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smalruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
4
+ version: 0.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouji Takao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-01 00:00:00.000000000 Z
11
+ date: 2014-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - ~>
186
186
  - !ruby/object:Gem::Version
187
- version: 0.0.9
187
+ version: 0.0.10
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - ~>
193
193
  - !ruby/object:Gem::Version
194
- version: 0.0.9
194
+ version: 0.0.10
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: dino
197
197
  requirement: !ruby/object:Gem::Requirement