Patrick Stephen

Results 81 comments of Patrick Stephen

The most recent jam game I've done is probably stable enough - http://ludumdare.com/compo/ludum-dare-34/?action=preview&uid=54627 I did a couple other jam games but they suffer from serious display and speed bugs which,...

To add and remove things from the list of rendered webgl elements, you'll want to use `this.program.registerEntity(this)` and `this.program.unregisterEntity(this)`. Adding and removing the WebGL component as a whole will definitely...

~~Unless it's been removed, Crafty.DrawManager has docs over on the [site](http://craftyjs.com/api/Crafty-DrawManager.html)~~. Sorry, `Crafty.DrawManager.onScreen` has been replaced with `Crafty.viewport.onScreen` in 7.0. As for your error, require WebGL when you initialize the...

What version of Crafty are you using? I know there have been some changes to how WebGL works in the past couple of months and I don't know if those...

Well if you don't give something Color you can't render it as a colored box...

![image](https://cloud.githubusercontent.com/assets/4564184/13208005/44be49d2-d8da-11e5-8588-9d67dcbfc93e.png) It logs perfectly fine for me. Are you sure your browser supports WebGL? https://jsfiddle.net/Sythe2o0/9mq2rydj/3/

I'd recommend reverting to before the recent changes to webgl and seeing if you stop getting the glDrawElements: range out of bounds for buffer error. Otherwise, I imagine any given...

In the code snippet you gave me, the logs showed up and the entities had this.program. Check that the browser you are using supports webgl and that you're using a...

The slowdown probably isn't just from the number of elements, but also from the fact that they are all simultaneously moving and none of them are being undrawn when they...

@mucaho While we used a node server, we didn't have any crafty code server-side, only client-side, sorry. We didn't use require.