Patrick Stephen

Results 81 comments of Patrick Stephen

I'll respond to a few points you make, noting first that these things may be true for languages where immutability was built in from the start. > It's a way...

WebGL's internals work a lot differently from Canvas and DOM's. There's a restriction on total number of elements, adding and removing elements works differently, and things like .color('red') don't work,...

When I modified the plunkr, I just used what Crafty already used for checking support, so I don't know if there's an issue there. But making all your graphics use...

~~How could [this snippet](http://requirebin.com/?gist=78cd172fd9ff015b19a9) be changed so the WebGL paddle had color?~~ Nevermind, yes, WebGL is fine with Color. I had hoped the default example on the github front page...

Why would you pass in width and height as strings? What's the use case? Further, [Draggable](https://github.com/craftyjs/Crafty/blob/develop/src/controls/controls.js#L10) doesn't reference height or width at all. The issue is probably elsewhere.

So [attr](https://github.com/craftyjs/Crafty/blob/develop/src/core/core.js#L565) is very generalized with its arguments, so sanitizing probably shouldn't happen there. Maybe [here](https://github.com/craftyjs/Crafty/blob/develop/src/spatial/2d.js#L788)? If every 2d property should be a number, do this... ``` _setter2d: function (name,...

If your concern is that the zoom doesn't modify the viewport's coordinates it uses for clampToEntities appropriately, you should either (1) roll your own area the viewport can't exist in...

Try [Crafty.viewport.clampToEntities](https://jsfiddle.net/0btLn8ep/2/), not Crafty.clampToEntities. (As far as scaling goes, I've just found it very difficult to work with scaling / zooming while having other components or otherwise trying to modify...

You should be. The way that Crafty scales and zooms doesn't work well with other viewport functions, though. A proper investigation into what the disconnect is between how Crafty scales...

Is there a standard place to submit games we make for demo consideration?