Gosu#enable_undocumented_retrofication
to stop it from blurring, run at 640x480 (or 800x600) res and scale it down with:class Game < Chingu::Window
def draw
scale 0.5 do
super
end
end
end
factor
attribute), ended up every objects that should be 'landed' on terrains falling down and messing sword-swinging animation as well.self.factor
gives the exact thing I needed. Now I'm remaking sample levels to fits the scaled objects. Thanks anyway :D
center_around
method but it didn't resulting a good one; the scrolling became weirder! :p
def center_around(object)
self.x = object.x * @factor_x - 320 / 2
self.y = object.y * @factor_y - 240 / 2
end
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require': ./lib/player.rb:428: syntax error, unexpected '.', expecting kEND (SyntaxError)
.then {@image = @animations[:shoot].next}
^
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
require'
from main.rb:8
from main.rb:8:in `each'
from main.rb:8
rvm
.
/Users/paulmeskers/.rvm/gems/ruby-1.9.3-p194/gems/texplay-0.4.3/lib/texplay/texplay.bundle: [BUG] Segmentation fault
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.2.0]
bundler (1.2.1)
chingu (0.9rc9, 0.9rc7, 0.8.1)
crack (0.3.1)
diff-lcs (1.1.3)
gosu (0.7.45 universal-darwin, 0.7.41 universal-darwin)
mime-types (1.19)
rake (0.9.2.2)
rest-client (1.6.7)
rspec (2.11.0)
rspec-core (2.11.1)
rspec-expectations (2.11.3)
rspec-mocks (2.11.3)
rubygems-bundler (1.1.0)
rvm (1.11.3.5)
texplay (0.4.3)
require "chingu"
, it will always pick 0.8.1 over 0.9rc*. You can get past it if it uses Bundler, but it doesn't, so you literally have to have the --pre version as the only one on the machine (well, in that Ruby installation) so it is the only one it can pick.gem 'chingu', '~> 0.9rc9' # Use 0.9rc9 or higher
require 'bundler/setup'
require
at the main.rb.Gemfile
without a version. If you ever run gem update
and realize that everything is broken, then you either revert the Gemfile.lock
or you take the time to make everything work with the latest gem versions. Or if you are in a hurry and only need to update one gem, you can use gem update gemname
.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill