Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
"JavaScript (sometimes abbreviated JS) is a prototype-based scripting language that is dynamic, weakly typed and has first-class functions. It is a multi-paradigm language, supporting object-oriented, imperative, and functional programming styles." From Wikipedia. http://en.wikipedia.org/wiki/JavaScript
1
vote
1
answer
67
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 .checkHits() against the obstacles ("obs") the player wil …
0
votes
Accepted
How to Prevent Entities Snapping Through Platforms
I found a solution on the crafty.js forums. This post explains this code (posted by mucaho):
.bind("CheckLanding", function(ground) {
if (this._y + this._h > ground._y + ground._h) // disallow lan …
0
votes
Accepted
Image Not Loading Crafty.js
It turns out that the image was to large for the size I wanted it to be, so I was only seeing the corner of it (which was blank).
1
vote
1
answer
103
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 cl …
0
votes
1
answer
212
views
How to Detect Collision Between Entity and Viewport
I am using Crafty.js. I want the player to die when they hit the side of the viewport (they need to keep moving to stay alive). How do I detect a collision between the player entity and the side/edge …