{"comment":{"created_at":"2011-10-18T15:38:47Z","body":"Corrected, I'm closing the issue.\r\nFor information, this was due to auto-reformatting of the code in the HTML, provided code example in the zip file was correct.\r\n","updated_at":"2011-10-18T15:38:47Z","url":"https://api.github.com/repos/obiot/melonJS/issues/comments/2443310","id":2443310,"user":{"avatar_url":"https://secure.gravatar.com/avatar/263abc7f7632e477ce5042dc5b9437cf?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"263abc7f7632e477ce5042dc5b9437cf","url":"https://api.github.com/users/obiot","id":579995,"login":"obiot"}},"action":"created","issue":{"number":22,"created_at":"2011-10-17T14:06:33Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"There are some issues I encountered in the tutorial that caused quite a few headaches.\r\n\r\nThe first one I came upon was a syntax error in the enemy Entity code.  There is a >= with a space between the > and =.  The typo is in the update function in the else...if.\r\n\r\n\r\n```java\r\n // manage the enemy movement\r\n    update: function() {\r\n        // ... code before\r\n\r\n        if (this.alive) {\r\n            if (this.walkLeft && this.pos.x < = this.startX) {\r\n                this.walkLeft = false;\r\n            } else if (!this.walkLeft && this.pos.x > = this.endX) { //******  > = should be >= ******\r\n                this.walkLeft = true;\r\n            }\r\n\r\n            //... code after\r\n    }\r\n```\r\n\r\nThe next issue I came across was the lack of explanation of Objects and Entities.  I think just a couple lines explaining how to add and edit an entity to the object layer would make it much easier to follow for a newcomer to the engine.  I got lost here for a while and had to backtrack to figure out where I went wrong.\r\n\r\nThanks!","comments":4,"title":"Issues in Tutorial","updated_at":"2011-10-18T15:38:47Z","url":"https://api.github.com/repos/obiot/melonJS/issues/22","id":1928742,"assignee":null,"milestone":null,"closed_at":"2011-10-18T15:38:47Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/8252e49ecd19890c15b3066dc641008f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8252e49ecd19890c15b3066dc641008f","url":"https://api.github.com/users/austynmahoney","id":1133292,"login":"austynmahoney"},"html_url":"https://github.com/obiot/melonJS/issues/22","labels":[],"state":"closed"},"legacy":{"issue_id":1928742,"comment_id":2443310}}