Crafty icon indicating copy to clipboard operation
Crafty copied to clipboard

JavaScript Game Engine

Results 68 Crafty issues
Sort by recently updated
recently updated
newest added

Can @starwed as the largest contributor answer please?

Just want to point out that the code below works if your component has DOM, but not Canvas (and obviously not WebGL, which doesn't seem to support text yet): `Crafty.e("Text").text("hi\nthere")`...

Text is still missing in order to have all display components run on any display backend (see [comment](https://github.com/craftyjs/Crafty/issues/969#issuecomment-154839533)). Possible implementations: - Render to 2d Canvas texture, then render texture via...

render: webgl

If I [`scale`](http://craftyjs.com/api/Crafty-viewport.html#Crafty-viewport-scale) the viewport, [`centerOn`](http://craftyjs.com/api/Crafty-viewport.html#Crafty-viewport-centerOn) does not center the scene correctly (see [example](https://stackoverflow.com/q/62980065/1065654)). Is this a bug or have I misunderstood the behavior?

When using canvas to display pictures, the edges of pictures are blurred It looks like this There is my code Crafty.init(SCREEN_WIDTH, SCREEN_HEIGHT, document.querySelector("#game")); Crafty.sprite(621, 621, "img/wheel.png", { wheel: [0, 0]...

https://github.com/craftyjs/Crafty/blob/f4a79d79c2fe31375e3818ed43d501f100641f5f/src/graphics/webgl-layer.js#L209-L225 I'm investigating if I could extend the Particles component with WebGL support. Of examples seen elsewhere, the trick is to create a texture buffer, and have one shader shuffling...

Hi! May i use CraftyJS in my TypeScript project? Thx!

Hello guys. How can i import crafty js to another js file for using it ?

Hello again o7 I'm having this issue where whenever the player entity is on a wall object and tries to move in a different direction while moving into the wall,...

To be honest, using the `.attr` property(?) is sorta annoying to use. Why not have it a function? It only takes up to 4 integers, so I think using it...