grapefruitjs / grapefruit

Outdated, I recommend you use photonstorm/phaser instead!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Collisions sometimes bug the game

krazyjakee opened this issue · comments

Using V0.1.1 on chrome (latest).

See this link: https://jquest-c9-krazyjakee.c9.io/index.html

When you click a tile, it should set the tile as being collideable but doesn't always for some reason (tile click event here: https://jquest-c9-krazyjakee.c9.io/js/map.jquest.js).

Use WASD to walk around.

The main issue is that sometimes when the player hits tiles that are close together it crashes the game leaving this error in the console...

Uncaught Error: Assertion failed: Internal Error: Attempting to set body's angle to NaN 

The issue can be easily recreated by placing a blocked tile over the character sprite, it will produce the same error (I presume for the same reasons).