Questions tagged [crafty]
Crafty is a Javascript-based HTML5 game engine. http://craftyjs.com/
15 questions
1 vote
1 answer
89 views
How to Prevent Entities Snapping Through Platforms
I am using crafty.js to make a platformer. I assigned the main player entity the default jumping controls and movement with .twoway() and used ...
1 vote
1 answer
117 views
Image Not Loading Crafty.js
I am experimenting with Crafty.js, and I have called .image() on an entity, and the image is not loading. When I look through the web inspector, I can see that the cloud entity exists, and that the ...
0 votes
1 answer
190 views
Crafty - How to get the id of the collision element?
As the topic says, I want to know how to get the ID of an active colliding entity. My Player Entity is called with Crafty.e("Player") Please notice, that I do ...
0 votes
1 answer
2k views
Loading tile maps from files on the fly in Crafty JS
I'm fairly new to Crafty and have been having problems loading large world maps. So i have a world split up into multiple js files. They are represented by two arrays of tiles: one for background (...
1 vote
2 answers
502 views
Optimize DOM game performance
I am working on a game developed on DOM using Crafty JS framework, and Greensock GSAP JS (http://www.greensock.com/gsap-js/) for animations. It is my first time working with these technologies. I ...
-4 votes
1 answer
208 views
How do I detect when one sprite is moving away from another? [closed]
I'm currently working with crafty.js. I need to know how to detect when one sprite is moving away from another sprite.
2 votes
1 answer
192 views
Stop music in crafty.js
How do I stop a looping music file from playing in crafty.js? I want the music to stop playing once a gameover condition has been reached.
1 vote
1 answer
2k views
Crafty.js multiplayer platform game, keeping players in sync
I'm using crafty.js to create a very simple platform game. It doesn't need to stop cheating, it's actually just seeing other players move around, and it doesn't need to have collision detection ...