Skip to content

Instantly share code, notes, and snippets.

View yonekawa's full-sized avatar

Kenichi Yonekawa yonekawa

  • freee K.K.
  • Japan
View GitHub Profile
diff --git a/enchant.js b/enchant.js
index bf83ff1..0d0ed17 100644
--- a/enchant.js
+++ b/enchant.js
@@ -1809,7 +1809,8 @@ enchant.Sprite = enchant.Class.create(enchant.Entity, {
if (this._dirty) {
this._style[enchant.ENV.VENDOR_PREFIX + 'Transform'] = [
'rotate(', this._rotation, 'deg)',
- 'scale(', this._scaleX, ',', this._scaleY, ')'
+ 'scale(', this._scaleX, ',', this._scaleY, ')',
@yonekawa
yonekawa / gist:3356846
Created August 15, 2012 06:03
enchant.js issues?
window.onload = function() {
enchant();
var game = new Game(640, 960);
game.fps = 60;
game.preload('bg.jpg');
game.preload('chara1.png');
game.onload = function () {
var bg = new Sprite(640, 960);
bg.image = game.assets['bg.jpg'];