Sha256: f92003d064c853ad589f6fe6b5e252008d04bfca79e9be6704e5cb43999916f4
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
describe Joybox::Actions::Skew do behaves_like "Action Sprite" it "should skew the sprite by x & y" do @sprite.run_action Skew.by x: 15, y: 15 @sprite.skewX.should == 0 @sprite.skewY.should == 0 wait 0.2 do @sprite.skewX.should.not == 0 @sprite.skewY.should.not == 0 @sprite.skewX.should.not.be.close 15, 0.1 @sprite.skewY.should.not.be.close 15, 0.1 end wait 0.4 do @sprite.skewX.should.not == 0 @sprite.skewY.should.not == 0 @sprite.skewX.should.be.close 15, 0.1 @sprite.skewY.should.be.close 15, 0.1 end end it "should skew the sprite to x & y" do @sprite.run_action Skew.to x: 15, y: 15 @sprite.skewX.should == 0 @sprite.skewY.should == 0 wait 0.2 do @sprite.skewX.should.not == 0 @sprite.skewY.should.not == 0 @sprite.skewX.should.not.be.close 15, 0.1 @sprite.skewY.should.not.be.close 15, 0.1 end wait 0.4 do @sprite.skewX.should.not == 0 @sprite.skewY.should.not == 0 @sprite.skewX.should.be.close 15, 0.1 @sprite.skewY.should.be.close 15, 0.1 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.1.1 | spec/motion/joybox/actions/skew_spec.rb |
joybox-1.1.0 | spec/motion/joybox/actions/skew_spec.rb |