I've been trying to fix this for about 3 days now, and I can't seem to find why it doesn't work.  I've got this function, which loads an image, and loads through all the pixels to create a grid of walls for A* pathfinding. I'm usi...
i've some problems with craftyjs, collision and polygons.  Here is my code: http://jsfiddle.net/haenx/85mhj/  As you can see, the player will hit the enemy each time both boxes are overlapping. But the given polygon has another form and it semms...
I'm trying to add a button to an app that uses Crafty, but, unlike the other buttons, I want this one to redirect the user to a different URL.  Notice that no-one ever taught me how to use Coffee or JavaScript, so I'm really new.  I'm try...
I am working on a top down video game with the crafty.js game library and I keep having to repeat a piece of code to make borders and the background sprite, So i want to put it into its own seperate function and call it, the problem is whenever I do...
This is a follow-up question to this  I started using the localStorage function, and am unsure whether or not its working as intended.  I want to overwrite a boolean in my JSON file.  Player hits an exit in a stage, then it triggers the load of the n...
I'm using http://craftyjs.com/ for the Github Game Off, and I'm having some trouble with animation. The first time I start the animation (when I initialize the player entity in the main scene) it works. But when I set the animation via my Cus...
I am trying to create multiple hitbox areas in my game, but I can't find any documentation or examples of how to work with them. The scenario is, my "Hero" have 2 hitbox, one on his feet and another on his body. If he hits an enemy with t...
I'm not sure anybody out there will be able to help with this, but here goes. I'm currently refactoring a game I'm writing with CraftyJS (an excellent component based game engine) to use RequireJS. Everything's been going pretty well,...
If I change the e1 attribute y to 1 or some other positive value this code works, but if the y is 0 or negative it fails. There are no errors but the shape does not appear. If I draw other kind of shapes, same kind of problem occurs. Anyway, rotation...
I'm playing around with the Crafty.js game engine. I have a small game where the player is a ball and he drops down to platforms. Every time he hits the next platform, he gains a point. The score is stored as a variable and displayed on screen. I...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.