Permalink
Browse files

change user owner from louisstow to craftyjs, correct drawing compone…

…nt - image on canvas
  • Loading branch information...
1 parent 5793c6b commit 81a75644ee9810971590a88b080f40da6f8becf8 @radzikowski radzikowski committed Apr 8, 2012
Showing with 11 additions and 11 deletions.
  1. +3 −3 README.md
  2. +2 −2 package.json
  3. +6 −6 src/drawing.js
View
@@ -26,12 +26,12 @@ then call the `area` method also inherited from the `2D` component.
This is the workflow for committing to Crafty when you are working on more than one features. Replace _pengyu_ by your own github user name.
-Following [Fork A Repo](http://help.github.com/fork-a-repo/), fork louisstow/Crafty to get pengyu/Crafty.
+Following [Fork A Repo](http://help.github.com/fork-a-repo/), fork craftyjs/Crafty to get pengyu/Crafty.
# Obviously not necessarily if you have already cloned it.
1. git clone git@github.com:pengyu/Crafty.git
# Give the name 'upstream' to the central repository
- 2. git remote add upstream https://github.com/louisstow/Crafty.git
+ 2. git remote add upstream https://github.com/craftyjs/Crafty.git
3. git checkout develop
# Work on a different branch
4. git checkout -b <some_arbitary_name>
@@ -41,7 +41,7 @@ Following [Fork A Repo](http://help.github.com/fork-a-repo/), fork louisstow/Cra
# Pushes the new branch to your own github fork
6. git push origin <descriptive_name>
-Following [Send pull requests](http://help.github.com/send-pull-requests/), make a pull request from pengyu/Crafty:\<descriptive\_name\> to louisstow/Crafty:\<descriptive\_name\>
+Following [Send pull requests](http://help.github.com/send-pull-requests/), make a pull request from pengyu/Crafty:\<descriptive\_name\> to craftyjs/Crafty:\<descriptive\_name\>
If you want to start working on another feature while waiting for the new branch to be merged, follow these steps:
View
@@ -1,6 +1,6 @@
{
"name": "crafty",
- "version": "0.4.5",
+ "version": "0.4.7",
"title": "Crafty game framework",
"author": {
"name": "Louis Stowasser",
@@ -23,7 +23,7 @@
"javascript"
],
"jsfiddle" : "disable",
- "homepage": "https://github.com/louisstow/Crafty",
+ "homepage": "https://github.com/craftyjs/Crafty",
"files": [
"src/license.txt",
"src/core.js",
View
@@ -107,13 +107,13 @@ Crafty.c("Image", {
if (!this.ready || !this._pattern) return;
var context = e.ctx;
-
+
context.fillStyle = this._pattern;
-
- //context.save();
- //context.translate(e.pos._x, e.pos._y);
- context.fillRect(this._x, this._y, this._w, this._h);
- //context.restore();
+
+ context.save();
+ context.translate(e.pos._x, e.pos._y);
+ context.fillRect(0, 0, this._w, this._h);
+ context.restore();
} else if (e.type === "DOM") {
if (this.__image)
e.style.background = "url(" + this.__image + ") " + this._repeat;

0 comments on commit 81a7564

Please sign in to comment.